aboutsummaryrefslogtreecommitdiff
path: root/test/copy.ssa
blob: 5c2a4d0384d3617234ce0fa8178f2459961cc0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export function w $f() {
@start
	%x0 =w loadsb $a
	# the extension must not be eliminated
	# even though the load already extended
	%x1 =l extsb %x0
	%c =w ceql %x1, -1
	ret %c
}

# >>> driver
# char a = -1;
# extern int f();
# int main() { return !(f() == 1); }
# <<<