[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

Chris Lattner sabre at nondot.org
Fri Jun 8 22:02:12 PDT 2007



Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.406 -> 1.407
---
Log message:

fix mmx handling bug


---
Diffs of the changes:  (+4 -1)

 X86ISelLowering.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.406 llvm/lib/Target/X86/X86ISelLowering.cpp:1.407
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.406	Thu May 24 09:33:05 2007
+++ llvm/lib/Target/X86/X86ISelLowering.cpp	Sat Jun  9 00:01:50 2007
@@ -1183,7 +1183,10 @@
         RC = X86::FR64RegisterClass;
       else {
         assert(MVT::isVector(RegVT));
-        RC = X86::VR128RegisterClass;
+        if (MVT::getSizeInBits(RegVT) == 64)
+          RC = X86::VR64RegisterClass;
+        else
+          RC = X86::VR128RegisterClass;
       }
 
       unsigned Reg = AddLiveIn(DAG.getMachineFunction(), VA.getLocReg(), RC);






More information about the llvm-commits mailing list