diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 19:47:59 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 22:21:58 -0400 |
commit | 3cabc10e7daad7024b77f78837979e39f5b721af (patch) | |
tree | 15a4d19d674e57f302c101d118ae1c7f87cdf51a /test | |
parent | 3bec2c6087adb791a862ddd8a1bfa25978f97b0c (diff) | |
download | roux-3cabc10e7daad7024b77f78837979e39f5b721af.tar.gz |
add regression test for fixarg bug
Diffstat (limited to 'test')
-rw-r--r-- | test/fixarg.ssa | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/fixarg.ssa b/test/fixarg.ssa new file mode 100644 index 0000000..85824fd --- /dev/null +++ b/test/fixarg.ssa @@ -0,0 +1,15 @@ +# regression test for 3bec2c60 + +export +function w $test() { +@start + %x1 =l alloc8 8 + %x2 =l alloc8 8 + %r =w cnel %x1, %x2 # both operands need fixing + ret %r +} + +# >>> driver +# extern int test(); +# int main() { return !(test() == 1); } +# <<< |