diff options
author | Michael Forney <mforney@mforney.org> | 2021-03-28 15:48:08 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-03-31 02:55:26 -0700 |
commit | 207e3e4e683ed1c825db317fc07071e83d890932 (patch) | |
tree | 0e60481ac385b9278cb3c3084b23bcf3b65db8bd /test/float-to-uint64.qbe | |
parent | 4b74d8aa68fca6692782a47277e1dade5a2b039e (diff) |
qbe: Switch to fixed-size instruction struct
Move jump and phi instructions to struct block, and function arguments
to their own instruction.
This will facilitate allocating instructions as an array.
Diffstat (limited to 'test/float-to-uint64.qbe')
-rw-r--r-- | test/float-to-uint64.qbe | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/float-to-uint64.qbe b/test/float-to-uint64.qbe index b19ff32..dbe746e 100644 --- a/test/float-to-uint64.qbe +++ b/test/float-to-uint64.qbe @@ -4,15 +4,15 @@ function l $f() { @body.2 %.1 =s call $g() %.2 =w cges %.1, s_9223372036854775808 - jnz %.2, @ftou_big.4, @ftou_small.3 -@ftou_small.3 + jnz %.2, @ftou_big.5, @ftou_small.4 +@ftou_small.4 %.3 =l stosi %.1 - jmp @ftou_join.5 -@ftou_big.4 + jmp @ftou_join.3 +@ftou_big.5 %.4 =s sub %.1, s_9223372036854775808 %.5 =l stosi %.4 %.6 =l xor %.5, 9223372036854775808 -@ftou_join.5 - %.7 =l phi @ftou_small.3 %.3, @ftou_big.4 %.6 +@ftou_join.3 + %.7 =l phi @ftou_small.4 %.3, @ftou_big.5 %.6 ret %.7 } |