~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/switch-long-long.qbe -rw-r--r-- 590 bytes
34ae0d48Michael Forney Add tests for char/wchar_t signedness 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export
function w $main() {
@start.1
@body.2
	jmp @switch_cond.3
@switch_case.5
	ret 1
@switch_case.6
	ret 0
@switch_cond.3
	%.1 =w ceql 1249835483136, 0
	jnz %.1, @switch_case.5, @switch_ne.7
@switch_ne.7
	%.2 =w cultl 1249835483136, 0
	jnz %.2, @switch_lt.8, @switch_gt.9
@switch_lt.8
	jmp @switch_join.4
@switch_gt.9
	%.3 =w ceql 1249835483136, 1249835483136
	jnz %.3, @switch_case.6, @switch_ne.10
@switch_ne.10
	%.4 =w cultl 1249835483136, 1249835483136
	jnz %.4, @switch_lt.11, @switch_gt.12
@switch_lt.11
	jmp @switch_join.4
@switch_gt.12
	jmp @switch_join.4
@switch_join.4
	ret 2
}