diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-16 12:26:18 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-16 12:26:18 -0700 |
commit | de004660726acb148bf0022706b7019ca560172d (patch) | |
tree | de95581449d1db324c074859615501cf8f0bc5c3 /test/local-init.qbe | |
parent | 953e1e6f287d8bc00b2ef8d2197a20a549274eb3 (diff) |
tests -> test
Diffstat (limited to 'test/local-init.qbe')
-rw-r--r-- | test/local-init.qbe | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/local-init.qbe b/test/local-init.qbe new file mode 100644 index 0000000..8d7346a --- /dev/null +++ b/test/local-init.qbe @@ -0,0 +1,22 @@ +export +function $f() { +@start.1 + %.1 =l alloc8 32 +@body.2 + %.2 =l add %.1, 0 + %.3 =w copy 97 + storeb %.3, %.2 + %.4 =l add %.1, 1 + storeb 0, %.4 + %.5 =l add %.1, 2 + storeh 0, %.5 + %.6 =l add %.1, 4 + storew 0, %.6 + %.7 =l add %.1, 8 + storel 0, %.7 + %.8 =l add %.1, 16 + storel 0, %.8 + %.9 =l add %.1, 24 + storel 0, %.9 + ret +} |