diff options
author | Devang Patel <dpatel@apple.com> | 2012-01-19 17:53:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2012-01-19 17:53:25 +0000 |
commit | ac0f0486022fb1798579c9a550154e839770efa9 (patch) | |
tree | db5c8126098077345abe0946c788d39456e34e94 /test/MC | |
parent | 73dd8bbce3ff54c318233027fb5e29f8298e01d6 (diff) | |
download | external_llvm-ac0f0486022fb1798579c9a550154e839770efa9.zip external_llvm-ac0f0486022fb1798579c9a550154e839770efa9.tar.gz external_llvm-ac0f0486022fb1798579c9a550154e839770efa9.tar.bz2 |
Post process 'xor', 'or' and 'cmp' instructions and select better encoding, if available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/X86/intel-syntax-encoding.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax-encoding.s b/test/MC/X86/intel-syntax-encoding.s new file mode 100644 index 0000000..0d1b2fa --- /dev/null +++ b/test/MC/X86/intel-syntax-encoding.s @@ -0,0 +1,22 @@ +// RUN: llvm-mc -x86-asm-syntax=intel -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s + +// CHECK: encoding: [0x66,0x83,0xf0,0x0c] + xor ax, 12 +// CHECK: encoding: [0x83,0xf0,0x0c] + xor eax, 12 +// CHECK: encoding: [0x48,0x83,0xf0,0x0c] + xor rax, 12 + +// CHECK: encoding: [0x66,0x83,0xc8,0x0c] + or ax, 12 +// CHECK: encoding: [0x83,0xc8,0x0c] + or eax, 12 +// CHECK: encoding: [0x48,0x83,0xc8,0x0c] + or rax, 12 + +// CHECK: encoding: [0x66,0x83,0xf8,0x0c] + cmp ax, 12 +// CHECK: encoding: [0x83,0xf8,0x0c] + cmp eax, 12 +// CHECK: encoding: [0x48,0x83,0xf8,0x0c] + cmp rax, 12 |