diff options
Diffstat (limited to 'test/vla.qbe')
-rw-r--r-- | test/vla.qbe | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/vla.qbe b/test/vla.qbe new file mode 100644 index 0000000..6c4f6bc --- /dev/null +++ b/test/vla.qbe @@ -0,0 +1,18 @@ +export +function w $g() { +@start.1 +@body.2 + ret 1 +} +export +function l $f() { +@start.3 +@body.4 + %.1 =w call $g() + %.2 =w extsh %.1 + %.3 =w add 10, %.2 + %.4 =l extsw %.3 + %.5 =l mul %.4, 8 + %.6 =l alloc8 %.5 + ret %.5 +} |