145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgbits 64
245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgdefault abs
345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org;extern label1
445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orglabel1:
545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orglabel2:
645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, 0x1000              ; 32-bit imm
845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, 0x1122334455667788  ; 64-bit imm (larger than signed 32-bit)
945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org;mov rax, 0x80000000          ; 64-bit imm (larger than signed 32-bit)
1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, label1              ; 32-bit imm  <--- not 64-bit!
1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, label2              ; 32-bit imm  <--- not 64-bit!
1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, qword 0x1000        ; 64-bit imm
1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, qword label1        ; 64-bit imm
1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov rax, qword label2        ; 64-bit imm
1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov qword [rax], 0x1000      ; 32-bit imm
1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov qword [rax], 0x1122334455667788  ; 32-bit imm, overflow warning
1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org;mov qword [rax], 0x80000000  ; 32-bit imm, overflow warning
1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov qword [rax], label1      ; 32-bit imm (matches default above)
2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov qword [rax], label2      ; 32-bit imm (matches default above)
2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgadd rax, 0x1000              ; 32-bit imm
2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgadd rax, 0x1122334455667788  ; 32-bit imm, overflow warning
2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org;add rax, 0x80000000          ; 32-bit imm, overflow warning
2545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgadd rax, label1              ; 32-bit imm (matches default above)
2645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgadd rax, label2              ; 32-bit imm (matches default above)
2745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
2845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [0x1000], rax            ; 32-bit disp
2945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [abs 0x1122334455667788], rax ; 64-bit disp
3045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [label1], rax            ; 32-bit disp
3145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [label2], rax            ; 32-bit disp
3245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [qword 0x1000], rax      ; 64-bit disp
3345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [qword label1], rax      ; 64-bit disp
3445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgmov [qword label2], rax      ; 64-bit disp
3545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
36