[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td X86RegisterInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 10 14:09:48 PST 2005
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.td updated: 1.114 -> 1.115
X86RegisterInfo.cpp updated: 1.96 -> 1.97
---
Log message:
Add conditional moves for the parity flag.
---
Diffs of the changes: (+36 -0)
Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.114 llvm/lib/Target/X86/X86InstrInfo.td:1.115
--- llvm/lib/Target/X86/X86InstrInfo.td:1.114 Sun Jan 2 19:27:59 2005
+++ llvm/lib/Target/X86/X86InstrInfo.td Mon Jan 10 16:09:33 2005
@@ -486,6 +486,34 @@
(ops R32:$dst, R32:$src1, i32mem:$src2),
"cmovns {$src2, $dst|$dst, $src2}">, TB;
+def CMOVP16rr : I<0x4A, MRMSrcReg, // if parity, R16 = R16
+ (ops R16:$dst, R16:$src1, R16:$src2),
+ "cmovp {$src2, $dst|$dst, $src2}">, TB, OpSize;
+def CMOVP16rm : I<0x4A, MRMSrcMem, // if parity, R16 = [mem16]
+ (ops R16:$dst, R16:$src1, i16mem:$src2),
+ "cmovp {$src2, $dst|$dst, $src2}">, TB, OpSize;
+def CMOVP32rr : I<0x4A, MRMSrcReg, // if parity, R32 = R32
+ (ops R32:$dst, R32:$src1, R32:$src2),
+ "cmovp {$src2, $dst|$dst, $src2}">, TB;
+def CMOVP32rm : I<0x4A, MRMSrcMem, // if parity, R32 = [mem32]
+ (ops R32:$dst, R32:$src1, i32mem:$src2),
+ "cmovp {$src2, $dst|$dst, $src2}">, TB;
+
+
+def CMOVNP16rr : I<0x4B, MRMSrcReg, // if !parity, R16 = R16
+ (ops R16:$dst, R16:$src1, R16:$src2),
+ "cmovnp {$src2, $dst|$dst, $src2}">, TB, OpSize;
+def CMOVNP16rm : I<0x4B, MRMSrcMem, // if !parity, R16 = [mem16]
+ (ops R16:$dst, R16:$src1, i16mem:$src2),
+ "cmovnp {$src2, $dst|$dst, $src2}">, TB, OpSize;
+def CMOVNP32rr : I<0x4B, MRMSrcReg, // if !parity, R32 = R32
+ (ops R32:$dst, R32:$src1, R32:$src2),
+ "cmovnp {$src2, $dst|$dst, $src2}">, TB;
+def CMOVNP32rm : I<0x4B, MRMSrcMem, // if !parity, R32 = [mem32]
+ (ops R32:$dst, R32:$src1, i32mem:$src2),
+ "cmovnp {$src2, $dst|$dst, $src2}">, TB;
+
+
def CMOVL16rr : I<0x4C, MRMSrcReg, // if <s, R16 = R16
(ops R16:$dst, R16:$src1, R16:$src2),
"cmovl {$src2, $dst|$dst, $src2}">, TB, OpSize;
@@ -1355,12 +1383,16 @@
(ops RST:$op), "fcmovbe {$op, %ST(0)|%ST(0), $op}">, DA;
def FCMOVE : FPI<0xC8, AddRegFrm, CondMovFP,
(ops RST:$op), "fcmove {$op, %ST(0)|%ST(0), $op}">, DA;
+ def FCMOVP : FPI<0xD8, AddRegFrm, CondMovFP,
+ (ops RST:$op), "fcmovu {$op, %ST(0)|%ST(0), $op}">, DA;
def FCMOVAE : FPI<0xC0, AddRegFrm, CondMovFP,
(ops RST:$op), "fcmovae {$op, %ST(0)|%ST(0), $op}">, DB;
def FCMOVA : FPI<0xD0, AddRegFrm, CondMovFP,
(ops RST:$op), "fcmova {$op, %ST(0)|%ST(0), $op}">, DB;
def FCMOVNE : FPI<0xC8, AddRegFrm, CondMovFP,
(ops RST:$op), "fcmovne {$op, %ST(0)|%ST(0), $op}">, DB;
+ def FCMOVNP : FPI<0xD8, AddRegFrm, CondMovFP,
+ (ops RST:$op), "fcmovnu {$op, %ST(0)|%ST(0), $op}">, DB;
}
// Floating point loads & stores...
Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.96 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.97
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.96 Sat Jan 1 20:37:46 2005
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Mon Jan 10 16:09:33 2005
@@ -276,6 +276,10 @@
case X86::CMOVS32rr: return MakeRMInst(X86::CMOVS32rm , FrameIndex, MI);
case X86::CMOVNS16rr: return MakeRMInst(X86::CMOVNS16rm , FrameIndex, MI);
case X86::CMOVNS32rr: return MakeRMInst(X86::CMOVNS32rm , FrameIndex, MI);
+ case X86::CMOVP16rr: return MakeRMInst(X86::CMOVP16rm , FrameIndex, MI);
+ case X86::CMOVP32rr: return MakeRMInst(X86::CMOVP32rm , FrameIndex, MI);
+ case X86::CMOVNP16rr: return MakeRMInst(X86::CMOVNP16rm , FrameIndex, MI);
+ case X86::CMOVNP32rr: return MakeRMInst(X86::CMOVNP32rm , FrameIndex, MI);
case X86::CMOVL16rr: return MakeRMInst(X86::CMOVL16rm , FrameIndex, MI);
case X86::CMOVL32rr: return MakeRMInst(X86::CMOVL32rm , FrameIndex, MI);
case X86::CMOVGE16rr: return MakeRMInst(X86::CMOVGE16rm , FrameIndex, MI);
More information about the llvm-commits
mailing list