1 ; RUN: llc < %s -mtriple=arm64-eabi -mcpu=generic -aarch64-neon-syntax=apple | FileCheck %s
3 define void @test0f(float* nocapture %x, float %a) #0 {
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
11 ; CHECK: movi.2d v[[TEMP:[0-9]+]], #0
12 ; CHECK: mov.s v[[TEMP]][0], v{{[0-9]+}}[0]
13 ; CHECK: str q[[TEMP]], [x0]
19 define void @test1f(float* nocapture %x, float %a) #0 {
21 %0 = insertelement <4 x float> <float undef, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, float %a, i32 0
22 %1 = bitcast float* %x to <4 x float>*
23 store <4 x float> %0, <4 x float>* %1, align 16
27 ; CHECK: fmov.4s v[[TEMP:[0-9]+]], #1.0
28 ; CHECK: mov.s v[[TEMP]][0], v0[0]
29 ; CHECK: str q[[TEMP]], [x0]