summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-22 00:28:59 +0000
committerChris Lattner <sabre@nondot.org>2010-02-22 00:28:59 +0000
commitdb8d6678e97f4d83a3082efe12671542cc0a1f40 (patch)
treecae7e66d8123b6e045819b0cea8e43a453b43187 /llvm/lib/Target/X86/X86ISelLowering.cpp
parent9fd97c3690c2e1f22bc6024f6012a173475872dd (diff)
downloadbcm5719-llvm-db8d6678e97f4d83a3082efe12671542cc0a1f40.tar.gz
bcm5719-llvm-db8d6678e97f4d83a3082efe12671542cc0a1f40.zip
fix an incorrect VT: eflags is always i32. The bug was causing us to
create an X86ISD::Cmp node with result type i64 on the CodeGen/X86/shift-i256.ll testcase and the new isel was assert on it downstream. llvm-svn: 96768
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 750087a2815..3831066719b 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -5245,7 +5245,7 @@ SDValue X86TargetLowering::LowerShift(SDValue Op, SelectionDAG &DAG) {
SDValue AndNode = DAG.getNode(ISD::AND, dl, MVT::i8, ShAmt,
DAG.getConstant(VTBits, MVT::i8));
- SDValue Cond = DAG.getNode(X86ISD::CMP, dl, VT,
+ SDValue Cond = DAG.getNode(X86ISD::CMP, dl, MVT::i32,
AndNode, DAG.getConstant(0, MVT::i8));
SDValue Hi, Lo;
OpenPOWER on IntegriCloud