37 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S --passes=slp-vectorizer -slp-threshold=-99999 -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s3 4define void @test(i16 %arg) {5; CHECK-LABEL: define void @test(6; CHECK-SAME: i16 [[ARG:%.*]]) {7; CHECK-NEXT: [[BB:.*:]]8; CHECK-NEXT: [[TMP0:%.*]] = insertelement <2 x i16> <i16 0, i16 poison>, i16 [[ARG]], i32 19; CHECK-NEXT: [[TMP1:%.*]] = sitofp <2 x i16> [[TMP0]] to <2 x float>10; CHECK-NEXT: [[TMP2:%.*]] = shufflevector <2 x float> [[TMP1]], <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 1>11; CHECK-NEXT: [[TMP3:%.*]] = shufflevector <4 x float> [[TMP2]], <4 x float> <float 0.000000e+00, float poison, float poison, float poison>, <4 x i32> <i32 4, i32 1, i32 poison, i32 poison>12; CHECK-NEXT: [[TMP4:%.*]] = shufflevector <4 x float> [[TMP3]], <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 1>13; CHECK-NEXT: [[TMP5:%.*]] = fadd <4 x float> zeroinitializer, [[TMP4]]14; CHECK-NEXT: [[TMP6:%.*]] = fsub <4 x float> zeroinitializer, [[TMP4]]15; CHECK-NEXT: [[TMP7:%.*]] = shufflevector <4 x float> [[TMP5]], <4 x float> [[TMP6]], <4 x i32> <i32 0, i32 5, i32 6, i32 7>16; CHECK-NEXT: [[TMP8:%.*]] = fsub <4 x float> [[TMP7]], [[TMP2]]17; CHECK-NEXT: store <4 x float> [[TMP8]], ptr addrspace(1) getelementptr inbounds (i8, ptr addrspace(1) null, i64 20), align 418; CHECK-NEXT: ret void19;20bb:21 %sitofp = sitofp i16 %arg to float22 %fadd = fadd float 0.000000e+00, 0.000000e+0023 %fsub = fsub float 0.000000e+00, %sitofp24 %fsub1 = fsub float 0.000000e+00, %sitofp25 %fsub2 = fsub float 0.000000e+00, %sitofp26 %sitofp3 = sitofp i16 0 to float27 %fsub4 = fsub float %fadd, %sitofp328 store float %fsub4, ptr addrspace(1) getelementptr inbounds (i8, ptr addrspace(1) null, i64 20), align 429 %fsub5 = fsub float %fsub, %sitofp30 store float %fsub5, ptr addrspace(1) getelementptr inbounds (i8, ptr addrspace(1) null, i64 24), align 431 %fsub6 = fsub float %fsub1, %sitofp32 store float %fsub6, ptr addrspace(1) getelementptr inbounds (i8, ptr addrspace(1) null, i64 28), align 433 %fsub7 = fsub float %fsub2, %sitofp34 store float %fsub7, ptr addrspace(1) getelementptr inbounds (i8, ptr addrspace(1) null, i64 32), align 435 ret void36}37