Skip to content

Commit 3186a56

Browse files
committed
requires P8 for 64-bit ops
1 parent 835c042 commit 3186a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9671,7 +9671,7 @@ SDValue PPCTargetLowering::LowerBUILD_VECTOR(SDValue Op,
96719671
if (SplatBitSize <= 32) {
96729672
SplatBits = APSplatBits.getZExtValue();
96739673
SextVal = SignExtend32(SplatBits, SplatBitSize);
9674-
} else if (SplatBitSize == 64) {
9674+
} else if (SplatBitSize == 64 && Subtarget.hasP8Altivec()) {
96759675
int64_t Splat64Val = APSplatBits.getSExtValue();
96769676
SplatBits = (uint64_t)Splat64Val;
96779677
SextVal = (int32_t)SplatBits;

0 commit comments

Comments
 (0)