Nemanja Ivanovic | 77e34f1 | 2018-02-01 21:09:04 +0000 | [diff] [blame] | 1 | ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown < %s | \ |
| 2 | ; RUN: FileCheck %s |
| 3 | |
| 4 | @glob = common local_unnamed_addr global <4 x float> zeroinitializer, align 4 |
| 5 | |
| 6 | ; Function Attrs: norecurse nounwind |
| 7 | define void @test(float %a, <4 x float>* 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>, <4 x float>* %b, align 4 |
| 15 | %mul = fmul <4 x float> %splat.splat, %0 |
| 16 | store <4 x float> %mul, <4 x float>* @glob, align 4 |
| 17 | ret void |
| 18 | } |