diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-09-08 04:30:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-09-08 04:30:51 +0000 |
| commit | 4703cb4a9636d66336be9a333f09a19c7def7126 (patch) | |
| tree | ae21520213b78183060c31df5d5a9f44ba61379e /llvm/test | |
| parent | 535d3b4e097d2f571bbbc26a1c2794ad67421c4d (diff) | |
| download | bcm5719-llvm-4703cb4a9636d66336be9a333f09a19c7def7126.tar.gz bcm5719-llvm-4703cb4a9636d66336be9a333f09a19c7def7126.zip | |
fix the encoding of the "jump on *cx" family of instructions,
rdar://8061602
llvm-svn: 113343
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/AsmParser/X86/x86_32-new-encoder.s | 11 | ||||
| -rw-r--r-- | llvm/test/MC/AsmParser/X86/x86_64-new-encoder.s | 11 | ||||
| -rw-r--r-- | llvm/test/MC/MachO/jcc.s | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/llvm/test/MC/AsmParser/X86/x86_32-new-encoder.s b/llvm/test/MC/AsmParser/X86/x86_32-new-encoder.s index e3aa1887ef8..e4674b7b980 100644 --- a/llvm/test/MC/AsmParser/X86/x86_32-new-encoder.s +++ b/llvm/test/MC/AsmParser/X86/x86_32-new-encoder.s @@ -423,3 +423,14 @@ retl // CHECK: lcalll $2, $4660 // CHECK: encoding: [0x9a,0x34,0x12,0x00,0x00,0x02,0x00] lcalll $0x2, $0x1234 + + +// rdar://8061602 +L1: + jcxz L1 +// CHECK: jcxz L1 +// CHECK: encoding: [0x67,0xe3,A] + jecxz L1 +// CHECK: jecxz L1 +// CHECK: encoding: [0xe3,A] + diff --git a/llvm/test/MC/AsmParser/X86/x86_64-new-encoder.s b/llvm/test/MC/AsmParser/X86/x86_64-new-encoder.s index 9f94d8404f4..3644147b167 100644 --- a/llvm/test/MC/AsmParser/X86/x86_64-new-encoder.s +++ b/llvm/test/MC/AsmParser/X86/x86_64-new-encoder.s @@ -157,3 +157,14 @@ btq $0x01,%rdx // CHECK: btq $61, -216(%rbp) // CHECK: encoding: [0x48,0x0f,0xba,0xa5,0x28,0xff,0xff,0xff,0x3d] btq $61, -216(%rbp) + + +// rdar://8061602 +L1: + jecxz L1 +// CHECK: jecxz L1 +// CHECK: encoding: [0x67,0xe3,A] + jrcxz L1 +// CHECK: jrcxz L1 +// CHECK: encoding: [0xe3,A] + diff --git a/llvm/test/MC/MachO/jcc.s b/llvm/test/MC/MachO/jcc.s index 7640429a79d..9ed46b111a4 100644 --- a/llvm/test/MC/MachO/jcc.s +++ b/llvm/test/MC/MachO/jcc.s @@ -10,7 +10,7 @@ 1: nop jc 1f 1: nop - jcxz 1f + jecxz 1f 1: nop jecxz 1f 1: nop |

