[llvm-branch-commits] [llvm-branch] r104759 - in /llvm/branches/Apple/whitney: lib/Target/X86/X86Instr64bit.td test/MC/AsmParser/X86/x86_64-new-encoder.s

Daniel Dunbar daniel at zuster.org
Wed May 26 15:28:32 PDT 2010


Author: ddunbar
Date: Wed May 26 17:28:32 2010
New Revision: 104759

URL: http://llvm.org/viewvc/llvm-project?rev=104759&view=rev
Log:
The BT64ri8 record in X86Instr64bit.td was missing a REX_W which is required for the 64-bit version of the Bit Test instruction.

Modified:
    llvm/branches/Apple/whitney/lib/Target/X86/X86Instr64bit.td
    llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s

Modified: llvm/branches/Apple/whitney/lib/Target/X86/X86Instr64bit.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/X86Instr64bit.td?rev=104759&r1=104758&r2=104759&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/X86Instr64bit.td (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/X86Instr64bit.td Wed May 26 17:28:32 2010
@@ -1313,7 +1313,8 @@
 
 def BT64ri8 : Ii8<0xBA, MRM4r, (outs), (ins GR64:$src1, i64i8imm:$src2),
                 "bt{q}\t{$src2, $src1|$src1, $src2}",
-                [(set EFLAGS, (X86bt GR64:$src1, i64immSExt8:$src2))]>, TB;
+                [(set EFLAGS, (X86bt GR64:$src1, i64immSExt8:$src2))]>, TB,
+		REX_W;
 // Note that these instructions don't need FastBTMem because that
 // only applies when the other operand is in a register. When it's
 // an immediate, bt is still fast.

Modified: llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s?rev=104759&r1=104758&r2=104759&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s (original)
+++ llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s Wed May 26 17:28:32 2010
@@ -126,3 +126,8 @@
 // CHECK: jne
 // CHECK: encoding: [0x75,A]
         jnz 0
+
+// rdar://8017515
+btq $0x01,%rdx
+// CHECK: btq	$1, %rdx
+// CHECK:  encoding: [0x48,0x0f,0xba,0xe2,0x01]





More information about the llvm-branch-commits mailing list