brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · b4069b5 Raw
31 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse | FileCheck %s3 4define <3 x float> @fadd(<3 x float> %v, float %d) {5; CHECK-LABEL: fadd:6; CHECK:       # %bb.0:7; CHECK-NEXT:    shufps {{.*#+}} xmm1 = xmm1[0,0,0,0]8; CHECK-NEXT:    addps %xmm1, %xmm09; CHECK-NEXT:    retq10  %ins = insertelement <3 x float> undef, float %d, i32 011  %splat = shufflevector <3 x float> %ins, <3 x float> undef, <3 x i32> zeroinitializer12  %add = fadd <3 x float> %splat, %v13  ret <3 x float> %add14}15 16; PR29114: https://llvm.org/bugs/show_bug.cgi?id=2911417 18define <3 x float> @fdiv(<3 x float> %v, float %d) {19; CHECK-LABEL: fdiv:20; CHECK:       # %bb.0:21; CHECK-NEXT:    shufps {{.*#+}} xmm1 = xmm1[0,0,0,0]22; CHECK-NEXT:    divps %xmm0, %xmm123; CHECK-NEXT:    movaps %xmm1, %xmm024; CHECK-NEXT:    retq25  %ins = insertelement <3 x float> undef, float %d, i32 026  %splat = shufflevector <3 x float> %ins, <3 x float> undef, <3 x i32> zeroinitializer27  %div = fdiv <3 x float> %splat, %v28  ret <3 x float> %div29}30 31