summaryrefslogtreecommitdiff
path: root/test/br3041451.asm
blob: c8b0f3a7bc9cc60d492f93cb624c6dc8e78955de (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;Testname=br3041451; Arguments=-Ox -fbin -obr3041451.bin; Files=stdout stderr br3041451.bin

	[bits 64]

	;
	; HIT: Maximum possible value
	%assign i 0
	%rep ((1<<62)-1)
		mov rax, i
		%assign i i+1
		%if i == 2
			%exitrep
		%endif
	%endrep

	;
	; MISS: It's negative
	%assign i 0
	%rep 0xffffFFFFffffFFFE
		mov rax, 0xffffFFFFffffFFFE
		%assign i i+1
		%if i == 2
			%exitrep
		%endif
	%endrep

	;
	; MISS: It's negative
	%assign i 0
	%rep 0xffffFFFFffffFFFF
		db i
		%assign i i+1
		%if i == 2
			%exitrep
		%endif
	%endrep 

	;
	; MISS: It's negative
	%assign i 0
	%rep -2
		db i
		%assign i i+1
		%if i == 2
			%exitrep
		%endif
	%endrep

	;
	; MISS: It's negative
	%assign i 0
	%rep -1
		db i
		%assign i i+1
		%if i == 2
			%exitrep
		%endif
	%endrep