diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-09 21:47:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-09 21:47:19 +0000 |
commit | 9e8528fc5cd7426884c1708d921d4608ac3878b7 (patch) | |
tree | c6d803f03f7a4f3fc5996a107a5ef91f04aaebd7 /test | |
parent | 415326b4edcc967dfb03c5ab41923b195e7c3cb1 (diff) | |
download | llvm-9e8528fc5cd7426884c1708d921d4608ac3878b7.tar.gz llvm-9e8528fc5cd7426884c1708d921d4608ac3878b7.tar.bz2 llvm-9e8528fc5cd7426884c1708d921d4608ac3878b7.tar.xz |
fix X86 encoder to output [disp] only addresses with no SIB byte
in X86-32 mode. This is still required in x86-64 mode to avoid
forming [disp+rip] encoding. Rewrite the SIB byte decision logic
to be actually understandable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/X86/x86_32-encoding.s | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-encoding.s b/test/MC/AsmParser/X86/x86_32-encoding.s index 5161527ff0..e38df9e3b9 100644 --- a/test/MC/AsmParser/X86/x86_32-encoding.s +++ b/test/MC/AsmParser/X86/x86_32-encoding.s @@ -4,5 +4,8 @@ fisttpl 3735928559(%ebx,%ecx,8) # CHECK: encoding: [0xdb,0x8c,0xcb,0xef,0xbe,0xad,0xde] sbbb $0xfe,0xdeadbeef(%ebx,%ecx,8) +# CHECK: encoding: [0x80,0x9c,0xcb,0xef,0xbe,0xad,0xde,0xfe] + +psllw 69, %mm3 +# CHECK: encoding: [0x0f,0xf1,0x1d,0x45,0x00,0x00,0x00] -# CHECK: encoding: [0x80,0x9c,0xcb,0xef,0xbe,0xad,0xde,0xfe]
\ No newline at end of file |