| 1 |
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown < %s | \ |
| 2 |
; RUN: FileCheck %s |
| 3 |
|
| 4 |
@glob = local_unnamed_addr global <4 x float> zeroinitializer, align 4 |
| 5 |
|
| 6 |
; Function Attrs: norecurse nounwind |
| 7 |
define void @test(float %a, ptr nocapture readonly %b) { |
| 8 |
; CHECK-LABEL: test |
| 9 |
; CHECK: xscvdpspn [[REG:[0-9]+]], 1 |
| 10 |
; CHECK: xxspltw {{[0-9]+}}, [[REG]], 0 |
| 11 |
entry: |
| 12 |
%splat.splatinsert = insertelement <4 x float> undef, float %a, i32 0 |
| 13 |
%splat.splat = shufflevector <4 x float> %splat.splatinsert, <4 x float> undef, <4 x i32> zeroinitializer |
| 14 |
%0 = load <4 x float>, ptr %b, align 4 |
| 15 |
%mul = fmul <4 x float> %splat.splat, %0 |
| 16 |
store <4 x float> %mul, ptr @glob, align 4 |
| 17 |
ret void |
| 18 |
} |