[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 22 14:33:23 PDT 2005
Changes in directory llvm/lib/Target/IA64:
IA64ISelPattern.cpp updated: 1.59 -> 1.60
---
Log message:
Fix a crash I introduced into the IA64 backend with my copyfromreg change.
It used to crash on any function that took float arguments.
---
Diffs of the changes: (+3 -1)
IA64ISelPattern.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/IA64/IA64ISelPattern.cpp
diff -u llvm/lib/Target/IA64/IA64ISelPattern.cpp:1.59 llvm/lib/Target/IA64/IA64ISelPattern.cpp:1.60
--- llvm/lib/Target/IA64/IA64ISelPattern.cpp:1.59 Mon Aug 22 13:28:09 2005
+++ llvm/lib/Target/IA64/IA64ISelPattern.cpp Mon Aug 22 16:33:11 2005
@@ -202,7 +202,9 @@
argPreg[count] = args_FP[used_FPArgs++];
argOpc[count] = IA64::FMOV;
argt = newroot = DAG.getCopyFromReg(DAG.getRoot(), argVreg[count],
- getValueType(I->getType()));
+ MVT::f64);
+ if (I->getType() == Type::FloatTy)
+ argt = DAG.getNode(ISD::FP_ROUND, MVT::f32, argt);
break;
case MVT::i1: // NOTE: as far as C abi stuff goes,
// bools are just boring old ints
More information about the llvm-commits
mailing list