brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 8c68432 Raw
34 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 62; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu -slp-threshold=-5 < %s | FileCheck %s3 4declare float @llvm.fmuladd.f32(float, float, float)5 6define void @test(ptr %quat, float %call13) {7; CHECK-LABEL: define void @test(8; CHECK-SAME: ptr [[QUAT:%.*]], float [[CALL13:%.*]]) {9; CHECK-NEXT:  [[ENTRY:.*:]]10; CHECK-NEXT:    [[CALL121:%.*]] = load volatile float, ptr null, align 411; CHECK-NEXT:    [[TMP0:%.*]] = call float @llvm.fmuladd.f32(float [[CALL13]], float 0.000000e+00, float 0.000000e+00)12; CHECK-NEXT:    [[TMP1:%.*]] = call float @llvm.fmuladd.f32(float [[CALL121]], float 0.000000e+00, float 0.000000e+00)13; CHECK-NEXT:    [[TMP2:%.*]] = fadd float [[TMP1]], 0.000000e+0014; CHECK-NEXT:    [[TMP3:%.*]] = insertelement <2 x float> poison, float [[CALL13]], i32 015; CHECK-NEXT:    [[TMP4:%.*]] = shufflevector <2 x float> [[TMP3]], <2 x float> poison, <2 x i32> zeroinitializer16; CHECK-NEXT:    [[TMP5:%.*]] = insertelement <2 x float> poison, float [[TMP2]], i32 017; CHECK-NEXT:    [[TMP6:%.*]] = insertelement <2 x float> [[TMP5]], float [[TMP0]], i32 118; CHECK-NEXT:    [[TMP7:%.*]] = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> [[TMP4]], <2 x float> zeroinitializer, <2 x float> [[TMP6]])19; CHECK-NEXT:    store <2 x float> [[TMP7]], ptr [[QUAT]], align 420; CHECK-NEXT:    ret void21;22entry:23  %call121 = load volatile float, ptr null, align 424  %0 = call float @llvm.fmuladd.f32(float %call13, float 0.000000e+00, float 0.000000e+00)25  %1 = call float @llvm.fmuladd.f32(float %call13, float 0.000000e+00, float %0)26  %2 = call float @llvm.fmuladd.f32(float %call121, float 0.000000e+00, float 0.000000e+00)27  %3 = fadd float %2, 0.000000e+0028  %4 = call float @llvm.fmuladd.f32(float %call13, float 0.000000e+00, float %3)29  %arrayidx43.i = getelementptr i8, ptr %quat, i64 430  store float %1, ptr %arrayidx43.i, align 431  store float %4, ptr %quat, align 432  ret void33}34