From 36635660b40573f6a0c19d50dfdd9277589030de Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 27 Mar 2016 15:00:45 -0400 Subject: extract tests out of src --- test/align.ssa | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/align.ssa (limited to 'test/align.ssa') diff --git a/test/align.ssa b/test/align.ssa new file mode 100644 index 0000000..84d1fb9 --- /dev/null +++ b/test/align.ssa @@ -0,0 +1,16 @@ +function $test() { +@start + %x =l alloc16 16 + %y =l add %x, 8 + %m =w rem %y, 16 + storew %m, %y + %n =w loadw %y + storew %n, $a + ret +} + +# >>> driver +# extern void test(void); +# int a; +# int main() { test(); return !(a == 8 || a == -8); } +# <<< -- cgit 1.4.1