1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=thumb7 -mcpu=swift | FileCheck %s 3 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 0 10 %t1 = extractelement <4 x float> %in, i64 1 11 %t2 = extractelement <4 x float> %in, i64 2 12 %t3 = extractelement <4 x float> %in, i64 3 13 %c0 = fptosi float %t0 to i32 14 %c1 = fptosi float %t1 to i32 15 %c2 = fptosi float %t2 to i32 16 %c3 = fptosi float %t3 to i32 17 %v0 = insertelement <4 x i32> undef, i32 %c0, i32 0 18 %v1 = insertelement <4 x i32> %v0, i32 %c1, i32 1 19 %v2 = insertelement <4 x i32> %v1, i32 %c2, i32 2 20 %v3 = insertelement <4 x i32> %v2, i32 %c3, i32 3 21 ret <4 x i32> %v3 22} 23 24