1; RUN: llc -march=arm64 -mcpu=generic -aarch64-neon-syntax=apple < %s | FileCheck %s 2 3define void @test0f(float* nocapture %x, float %a) #0 { 4entry: 5 %0 = insertelement <4 x float> <float undef, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %a, i32 0 6 %1 = bitcast float* %x to <4 x float>* 7 store <4 x float> %0, <4 x float>* %1, align 16 8 ret void 9 10 ; CHECK-LABEL: test0f 11 ; CHECK: movi.2d v[[TEMP:[0-9]+]], #0000000000000000 12 ; CHECK: ins.s v[[TEMP]][0], v{{[0-9]+}}[0] 13 ; CHECK: str q[[TEMP]], [x0] 14 ; CHECK: ret 15 16 17} 18 19 20define void @test1f(float* nocapture %x, float %a) #0 { 21entry: 22 %0 = insertelement <4 x float> <float undef, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, float %a, i32 0 23 %1 = bitcast float* %x to <4 x float>* 24 store <4 x float> %0, <4 x float>* %1, align 16 25 ret void 26 27 ; CHECK-LABEL: test1f 28 ; CHECK: fmov s[[TEMP:[0-9]+]], #1.0000000 29 ; CHECK: dup.4s v[[TEMP2:[0-9]+]], v[[TEMP]][0] 30 ; CHECK: ins.s v[[TEMP2]][0], v0[0] 31 ; CHECK: str q[[TEMP2]], [x0] 32 ; CHECK: ret 33} 34