21 lines · plain
1; RUN: llc -mtriple=i686-- -mattr=+sse2 < %s | FileCheck %s2 3; Make sure that we don't generate an illegal i64 extract after LegalizeType.4; CHECK: shll5 6 7define void @test_cl(ptr %dst, ptr %src, i32 %idx) {8entry:9 %arrayidx = getelementptr inbounds <4 x i64>, ptr %src, i32 %idx10 %0 = load <4 x i64> , ptr %arrayidx, align 3211 %arrayidx1 = getelementptr inbounds <4 x i64>, ptr %dst, i32 %idx12 %1 = load <4 x i64> , ptr %arrayidx1, align 3213 %2 = extractelement <4 x i64> %1, i32 014 %and = and i64 %2, 6315 %3 = insertelement <4 x i64> undef, i64 %and, i32 0 16 %splat = shufflevector <4 x i64> %3, <4 x i64> undef, <4 x i32> zeroinitializer17 %shl = shl <4 x i64> %0, %splat18 store <4 x i64> %shl, ptr %arrayidx1, align 3219 ret void20}21