git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112175
91177308-0d34-0410-b5e6-
96231b3b80d8
break;
case TargetLowering::Expand:
if (!TLI.isLoadExtLegal(ISD::EXTLOAD, SrcVT)) {
+ // FIXME: If SrcVT isn't legal, then this introduces an illegal
+ // type.
SDValue Load = DAG.getLoad(SrcVT, dl, Tmp1, Tmp2, LD->getSrcValue(),
LD->getSrcValueOffset(),
LD->isVolatile(), LD->isNonTemporal(),
%c = trunc <8 x i32> %a to <8 x i16> ; <<8 x i16>> [#uses=1]
ret <8 x i16> %c
}
+
+; PR7993
+;define <4 x i32> @test3(<4 x i16> %a) nounwind {
+; %c = sext <4 x i16> %a to <4 x i32> ; <<4 x i32>> [#uses=1]
+; ret <4 x i32> %c
+;}
-; RUN: llc < %s -march=x86-64
-; RUN: llc < %s -march=x86-64 -disable-mmx
+; RUN: llc < %s -march=x86-64 -mcpu=core2
+; RUN: llc < %s -march=x86-64 -mcpu=core2 -disable-mmx
+
define <8 x i32> @a(<8 x i16> %a) nounwind {
%c = sext <8 x i16> %a to <8 x i32>