26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -mtriple=x86_64-- -passes=slp-vectorizer -S < %s | FileCheck %s3 4; These conversions should be vectorized by reviews.llvm.org/D570595 6define dso_local <4 x float> @foo(<4 x i32> %0) {7; CHECK-LABEL: @foo(8; CHECK-NEXT: [[TMP0:%.*]] = shufflevector <4 x i32> [[TMP1:%.*]], <4 x i32> poison, <4 x i32> <i32 1, i32 1, i32 2, i32 3>9; CHECK-NEXT: [[TMP2:%.*]] = sitofp <4 x i32> [[TMP0]] to <4 x float>10; CHECK-NEXT: [[TMP3:%.*]] = shufflevector <4 x float> [[TMP2]], <4 x float> poison, <4 x i32> <i32 1, i32 0, i32 2, i32 3>11; CHECK-NEXT: ret <4 x float> [[TMP3]]12;13 %2 = extractelement <4 x i32> %0, i32 114 %3 = sitofp i32 %2 to float15 %4 = insertelement <4 x float> undef, float %3, i32 016 %5 = insertelement <4 x float> %4, float %3, i32 117 %6 = extractelement <4 x i32> %0, i32 218 %7 = sitofp i32 %6 to float19 %8 = insertelement <4 x float> %5, float %7, i32 220 %9 = extractelement <4 x i32> %0, i32 321 %10 = sitofp i32 %9 to float22 %11 = insertelement <4 x float> %8, float %10, i32 323 ret <4 x float> %1124}25 26