mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
test: Add br3041451 testcase
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
e091d6ed62
commit
753a60de63
59
test/br3041451.asm
Normal file
59
test/br3041451.asm
Normal file
@ -0,0 +1,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
|
||||
|
Loading…
Reference in New Issue
Block a user