1cee313d2SEric Christopher; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2*3be72f40SBjorn Pettersson; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=thumb7 -mcpu=swift | FileCheck %s 3cee313d2SEric Christopher 4cee313d2SEric Christopherdefine <4 x i32> @PR13837(<4 x float> %in) { 5cee313d2SEric Christopher; CHECK-LABEL: @PR13837( 6cee313d2SEric Christopher; CHECK-NEXT: [[TMP1:%.*]] = fptosi <4 x float> [[IN:%.*]] to <4 x i32> 7ab2c499dSAnton Afanasyev; CHECK-NEXT: ret <4 x i32> [[TMP1]] 8cee313d2SEric Christopher; 9cee313d2SEric Christopher %t0 = extractelement <4 x float> %in, i64 0 10cee313d2SEric Christopher %t1 = extractelement <4 x float> %in, i64 1 11cee313d2SEric Christopher %t2 = extractelement <4 x float> %in, i64 2 12cee313d2SEric Christopher %t3 = extractelement <4 x float> %in, i64 3 13cee313d2SEric Christopher %c0 = fptosi float %t0 to i32 14cee313d2SEric Christopher %c1 = fptosi float %t1 to i32 15cee313d2SEric Christopher %c2 = fptosi float %t2 to i32 16cee313d2SEric Christopher %c3 = fptosi float %t3 to i32 17cee313d2SEric Christopher %v0 = insertelement <4 x i32> undef, i32 %c0, i32 0 18cee313d2SEric Christopher %v1 = insertelement <4 x i32> %v0, i32 %c1, i32 1 19cee313d2SEric Christopher %v2 = insertelement <4 x i32> %v1, i32 %c2, i32 2 20cee313d2SEric Christopher %v3 = insertelement <4 x i32> %v2, i32 %c3, i32 3 21cee313d2SEric Christopher ret <4 x i32> %v3 22cee313d2SEric Christopher} 23cee313d2SEric Christopher 24