1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse | FileCheck %s
4 define <3 x float> @fadd(<3 x float> %v, float %d) {
7 ; CHECK-NEXT: shufps {{.*#+}} xmm1 = xmm1[0,0,0,3]
8 ; CHECK-NEXT: addps %xmm1, %xmm0
10 %ins = insertelement <3 x float> undef, float %d, i32 0
11 %splat = shufflevector <3 x float> %ins, <3 x float> undef, <3 x i32> zeroinitializer
12 %add = fadd <3 x float> %splat, %v
16 ; PR29114: https://llvm.org/bugs/show_bug.cgi?id=29114
18 define <3 x float> @fdiv(<3 x float> %v, float %d) {
21 ; CHECK-NEXT: shufps {{.*#+}} xmm1 = xmm1[0,0,0,3]
22 ; CHECK-NEXT: divps %xmm0, %xmm1
23 ; CHECK-NEXT: movaps %xmm1, %xmm0
25 %ins = insertelement <3 x float> undef, float %d, i32 0
26 %splat = shufflevector <3 x float> %ins, <3 x float> undef, <3 x i32> zeroinitializer
27 %div = fdiv <3 x float> %splat, %v