aboutsummaryrefslogtreecommitdiff
path: root/tests/builtin-va-copy.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'tests/builtin-va-copy.qbe')
-rw-r--r--tests/builtin-va-copy.qbe20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/builtin-va-copy.qbe b/tests/builtin-va-copy.qbe
new file mode 100644
index 0000000..7d88659
--- /dev/null
+++ b/tests/builtin-va-copy.qbe
@@ -0,0 +1,20 @@
+data $.La.2 = align 8 { z 24 }
+data $.Lb.3 = align 8 { z 24 }
+export
+function $f() {
+@start.1
+@body.2
+ %.1 =l loadl $.Lb.3
+ storel %.1, $.La.2
+ %.2 =l add $.Lb.3, 8
+ %.3 =l add $.La.2, 8
+ %.4 =l loadl %.2
+ storel %.4, %.3
+ %.5 =l add %.2, 8
+ %.6 =l add %.3, 8
+ %.7 =l loadl %.5
+ storel %.7, %.6
+ %.8 =l add %.5, 8
+ %.9 =l add %.6, 8
+ ret
+}