From 3cabc10e7daad7024b77f78837979e39f5b721af Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 13 Apr 2016 19:47:59 -0400 Subject: add regression test for fixarg bug --- test/fixarg.ssa | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/fixarg.ssa 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); } +# <<< -- cgit 1.4.1