1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-- < %s | FileCheck %s
4 define <4 x float> @repeated_fp_divisor(float %a, <4 x float> %b) {
5 ; CHECK-LABEL: repeated_fp_divisor:
7 ; CHECK-NEXT: xscvdpspn 0, 1
8 ; CHECK-NEXT: addis 3, 2, .LCPI0_0@toc@ha
9 ; CHECK-NEXT: addi 3, 3, .LCPI0_0@toc@l
10 ; CHECK-NEXT: lvx 3, 0, 3
11 ; CHECK-NEXT: addis 3, 2, .LCPI0_1@toc@ha
12 ; CHECK-NEXT: addi 3, 3, .LCPI0_1@toc@l
13 ; CHECK-NEXT: lvx 4, 0, 3
14 ; CHECK-NEXT: xxspltw 0, 0, 0
15 ; CHECK-NEXT: xvresp 1, 0
16 ; CHECK-NEXT: xvnmsubasp 35, 0, 1
17 ; CHECK-NEXT: xvmulsp 0, 34, 36
18 ; CHECK-NEXT: xvmaddasp 1, 1, 35
19 ; CHECK-NEXT: xvmulsp 34, 0, 1
21 %ins = insertelement <4 x float> undef, float %a, i32 0
22 %splat = shufflevector <4 x float> %ins, <4 x float> undef, <4 x i32> zeroinitializer
23 %t1 = fmul fast <4 x float> %b, <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0x3FF028F5C0000000>
24 %mul = fdiv fast <4 x float> %t1, %splat