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