forked from OSchip/llvm-project
Add obvious missing case to switch. PR10497.
llvm-svn: 136130
This commit is contained in:
parent
5a1d214c4a
commit
06b8b571b2
|
@ -524,12 +524,11 @@ void DAGTypeLegalizer::SplitVecRes_BITCAST(SDNode *N, SDValue &Lo,
|
|||
|
||||
// Handle some special cases efficiently.
|
||||
switch (getTypeAction(InVT)) {
|
||||
default:
|
||||
assert(false && "Unknown type action!");
|
||||
case TargetLowering::TypeLegal:
|
||||
case TargetLowering::TypePromoteInteger:
|
||||
case TargetLowering::TypeSoftenFloat:
|
||||
case TargetLowering::TypeScalarizeVector:
|
||||
case TargetLowering::TypeWidenVector:
|
||||
break;
|
||||
case TargetLowering::TypeExpandInteger:
|
||||
case TargetLowering::TypeExpandFloat:
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
; RUN: llc < %s -march=x86 -mattr=-sse2,+sse | grep addps
|
||||
|
||||
; PR10497
|
||||
; (This is primarily checking that this construct doesn't crash.)
|
||||
define void @a(<2 x float>* %a, <2 x i32>* %b) {
|
||||
%cc = load <2 x float>* %a
|
||||
%c = fadd <2 x float> %cc, %cc
|
||||
%dd = bitcast <2 x float> %c to <2 x i32>
|
||||
%d = add <2 x i32> %dd, %dd
|
||||
store <2 x i32> %d, <2 x i32>* %b
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue