br3041451.asm 759 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ;Testname=br3041451; Arguments=-Ox -fbin -obr3041451.bin; Files=stdout stderr br3041451.bin
  2. [bits 64]
  3. ;
  4. ; HIT: Maximum possible value
  5. %assign i 0
  6. %rep ((1<<62)-1)
  7. mov rax, i
  8. %assign i i+1
  9. %if i == 2
  10. %exitrep
  11. %endif
  12. %endrep
  13. ;
  14. ; MISS: It's negative
  15. %assign i 0
  16. %rep 0xffffFFFFffffFFFE
  17. mov rax, 0xffffFFFFffffFFFE
  18. %assign i i+1
  19. %if i == 2
  20. %exitrep
  21. %endif
  22. %endrep
  23. ;
  24. ; MISS: It's negative
  25. %assign i 0
  26. %rep 0xffffFFFFffffFFFF
  27. db i
  28. %assign i i+1
  29. %if i == 2
  30. %exitrep
  31. %endif
  32. %endrep
  33. ;
  34. ; MISS: It's negative
  35. %assign i 0
  36. %rep -2
  37. db i
  38. %assign i i+1
  39. %if i == 2
  40. %exitrep
  41. %endif
  42. %endrep
  43. ;
  44. ; MISS: It's negative
  45. %assign i 0
  46. %rep -1
  47. db i
  48. %assign i i+1
  49. %if i == 2
  50. %exitrep
  51. %endif
  52. %endrep