[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 11 21:15:07 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.388 -> 1.389
---
Log message:
Fix mmx paddq, add support for the 'y' register class, though it isn't tested.
---
Diffs of the changes: (+5 -1)
X86ISelLowering.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.388 llvm/lib/Target/X86/X86ISelLowering.cpp:1.389
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.388 Mon Apr 9 18:31:19 2007
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Wed Apr 11 23:14:49 2007
@@ -321,6 +321,7 @@
setOperationAction(ISD::ADD, MVT::v8i8, Legal);
setOperationAction(ISD::ADD, MVT::v4i16, Legal);
setOperationAction(ISD::ADD, MVT::v2i32, Legal);
+ setOperationAction(ISD::ADD, MVT::v1i64, Legal);
setOperationAction(ISD::SUB, MVT::v8i8, Legal);
setOperationAction(ISD::SUB, MVT::v4i16, Legal);
@@ -4636,7 +4637,10 @@
else if (VT == MVT::i8)
return std::make_pair(0U, X86::GR8RegisterClass);
break;
- // FIXME: not handling MMX registers yet ('y' constraint).
+ case 'y': // MMX_REGS if MMX allowed.
+ if (!Subtarget->hasMMX()) break;
+ return std::make_pair(0U, X86::VR64RegisterClass);
+ break;
case 'Y': // SSE_REGS if SSE2 allowed
if (!Subtarget->hasSSE2()) break;
// FALL THROUGH.
More information about the llvm-commits
mailing list