24 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=thumb7 -mcpu=swift | FileCheck %s3 4define <4 x i32> @PR13837(<4 x float> %in) {5; CHECK-LABEL: @PR13837(6; CHECK-NEXT: [[TMP1:%.*]] = fptosi <4 x float> [[IN:%.*]] to <4 x i32>7; CHECK-NEXT: ret <4 x i32> [[TMP1]]8;9 %t0 = extractelement <4 x float> %in, i64 010 %t1 = extractelement <4 x float> %in, i64 111 %t2 = extractelement <4 x float> %in, i64 212 %t3 = extractelement <4 x float> %in, i64 313 %c0 = fptosi float %t0 to i3214 %c1 = fptosi float %t1 to i3215 %c2 = fptosi float %t2 to i3216 %c3 = fptosi float %t3 to i3217 %v0 = insertelement <4 x i32> undef, i32 %c0, i32 018 %v1 = insertelement <4 x i32> %v0, i32 %c1, i32 119 %v2 = insertelement <4 x i32> %v1, i32 %c2, i32 220 %v3 = insertelement <4 x i32> %v2, i32 %c3, i32 321 ret <4 x i32> %v322}23 24