aboutsummaryrefslogtreecommitdiff
path: root/test/vla-deref.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/vla-deref.qbe')
-rw-r--r--test/vla-deref.qbe12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/vla-deref.qbe b/test/vla-deref.qbe
new file mode 100644
index 0000000..f9da148
--- /dev/null
+++ b/test/vla-deref.qbe
@@ -0,0 +1,12 @@
+export
+function w $main() {
+@start.1
+ %.1 =l alloc4 4
+@body.2
+ storew 3, %.1
+ %.2 =w loadw %.1
+ %.3 =l extsw %.2
+ %.4 =l mul %.3, 1
+ %.5 =l alloc4 %.4
+ ret 0
+}