summary refs log tree commit diff
path: root/test/align.ssa
blob: 84d1fb97dcd9b0b90e37c178a193c1406f36b598 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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); }
# <<<