diff options
| author | Craig Topper <craig.topper@gmail.com> | 2013-08-25 22:23:38 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2013-08-25 22:23:38 +0000 |
| commit | 18854173720bef72b1edb1be8485331cffa987d0 (patch) | |
| tree | e3f5321adcdaea3dbfed4530abf29bebbbff2a9c /llvm/test/MC/Disassembler/X86/intel-syntax.txt | |
| parent | a3644d60463b1d9e03c08384b0e279a9bd80236e (diff) | |
| download | bcm5719-llvm-18854173720bef72b1edb1be8485331cffa987d0.tar.gz bcm5719-llvm-18854173720bef72b1edb1be8485331cffa987d0.zip | |
First round of fixes for the x86 fixes for the x86 move accumulator from/to memory offset instructions.
-Assembly parser now properly check the size of the memory operation specified in intel syntax. So 'mov word ptr [5], al' is no longer accepted.
-x86-32 disassembly of these instructions no longer sign extends the 32-bit address immediate based on size.
-Intel syntax printing prints the ptr size and places brackets around the address immediate.
Known remaining issues with these instructions:
-Segment override prefix is not supported. PR16962 and PR16961.
-Immediate size should be changed by address size prefix.
llvm-svn: 189201
Diffstat (limited to 'llvm/test/MC/Disassembler/X86/intel-syntax.txt')
| -rw-r--r-- | llvm/test/MC/Disassembler/X86/intel-syntax.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/X86/intel-syntax.txt b/llvm/test/MC/Disassembler/X86/intel-syntax.txt index 6c0c239fb80..6a63102eaa7 100644 --- a/llvm/test/MC/Disassembler/X86/intel-syntax.txt +++ b/llvm/test/MC/Disassembler/X86/intel-syntax.txt @@ -119,3 +119,33 @@ # CHECK: xsaveopt64 opaque ptr [rax] 0x48 0x0f 0xae 0x30 + +# CHECK: movabs al, byte ptr [-6066930261531658096] +0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs al, byte ptr [-6066930261531658096] +0x48 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs ax, word ptr [-6066930261531658096] +0x66 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs eax, dword ptr [-6066930261531658096] +0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs rax, qword ptr [-6066930261531658096] +0x48 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs byte ptr [-6066930261531658096], al +0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs byte ptr [-6066930261531658096], al +0x48 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs word ptr [-6066930261531658096], ax +0x66 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs dword ptr [-6066930261531658096], eax +0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab + +# CHECK: movabs qword ptr [-6066930261531658096], rax +0x48 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab |

