summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-08-09 18:42:57 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-08-09 18:47:05 +0400
commit753a60de639051c2523115d3773ad549520483cb (patch)
tree622fbadaf9f6fa2e2db616570fdb026dbadf91f6 /test
parente091d6ed62fd2f7e2def56e23c7d6f32c693d1ca (diff)
downloadnasm-753a60de639051c2523115d3773ad549520483cb.tar.gz
nasm-753a60de639051c2523115d3773ad549520483cb.tar.bz2
nasm-753a60de639051c2523115d3773ad549520483cb.zip
test: Add br3041451 testcase
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/br3041451.asm59
1 files changed, 59 insertions, 0 deletions
diff --git a/test/br3041451.asm b/test/br3041451.asm
new file mode 100644
index 0000000..c8b0f3a
--- /dev/null
+++ b/test/br3041451.asm
@@ -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
+