diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-01-06 04:55:54 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-01-06 04:55:54 +0000 |
commit | 93c9401dff386e7684c859a6c67602a1f34d3402 (patch) | |
tree | 223ff3a1e043fda43e9190495e6789c60b2ea940 /test/MC/X86/address-size.s | |
parent | 3b83083711284c2cc50947ead90d9d049bbdcd4b (diff) | |
download | llvm-93c9401dff386e7684c859a6c67602a1f34d3402.tar.gz llvm-93c9401dff386e7684c859a6c67602a1f34d3402.tar.bz2 llvm-93c9401dff386e7684c859a6c67602a1f34d3402.tar.xz |
[x86] Add basic support for .code16
This is not really expected to work right yet. Mostly because we will
still emit the OpSize (0x66) prefix in all the wrong places, along with
a number of other corner cases. Those will all be fixed in the subsequent
commits.
Patch from David Woodhouse.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86/address-size.s')
-rw-r--r-- | test/MC/X86/address-size.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/X86/address-size.s b/test/MC/X86/address-size.s index 936cd579db..c9d04c4af3 100644 --- a/test/MC/X86/address-size.s +++ b/test/MC/X86/address-size.s @@ -17,3 +17,11 @@ // CHECK: encoding: [0x67,0xc7,0x00,0x78,0x56,0x34,0x12] movw $0x1234, 0x5678(%bp) // CHECK: encoding: [0x67,0x66,0xc7,0x86,0x78,0x56,0x34,0x12] + + .code16 + movb $0x0, (%si) +// CHECK: encoding: [0xc6,0x04,0x00] + movb $0x0, (%esi) +// CHECK: encoding: [0x67,0xc6,0x06,0x00] + movb $0x5a, (%di,%bp,1) +// CHECK: encoding: [0xc6,0x03,0x5a] |