qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 3cabc10e7daad7024b77f78837979e39f5b721af
parent 3bec2c6087adb791a862ddd8a1bfa25978f97b0c
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 13 Apr 2016 19:47:59 -0400

add regression test for fixarg bug

Diffstat:
Atest/fixarg.ssa | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/test/fixarg.ssa 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); } +# <<<