1; RUN: llc < %s -mtriple=arm64-apple-ios | FileCheck %s 2 3; CHECK-LABEL: _test: 4; CHECK-DAG: fmov.2d v0, #2.00000000 5; CHECK-DAG: and [[MASK_IDX:x[0-9]+]], x1, #0x3 6; CHECK-DAG: mov x9, sp 7; CHECK-DAG: str q0, [sp], #16 8; CHECK-DAG: bfi [[PTR:x[0-9]+]], [[MASK_IDX]], #2, #2 9; CHECK: ldr s0, {{\[}}[[PTR]]{{\]}} 10; CHECK: str s0, [x0] 11 12define void @test(float * %p1, i32 %v1) { 13entry: 14 %v2 = extractelement <3 x float> <float 0.000000e+00, float 2.000000e+00, float 0.000000e+00>, i32 %v1 15 store float %v2, float* %p1, align 4 16 ret void 17} 18 19; CHECK-LABEL: _test2 20; CHECK: movi.16b v0, #63 21; CHECK-DAG: and [[MASK_IDX:x[0-9]+]], x1, #0x3 22; CHECK-DAG: str q0, [sp], #16 23; CHECK-DAG: mov x9, sp 24; CHECK-DAG: bfi [[PTR:x[0-9]+]], [[MASK_IDX]], #2, #2 25; CHECK: ldr s0, {{\[}}[[PTR]]{{\]}} 26; CHECK: str s0, [x0] 27 28define void @test2(float * %p1, i32 %v1) { 29entry: 30 %v2 = extractelement <3 x float> <float 0.7470588088035583, float 0.7470588088035583, float 0.7470588088035583>, i32 %v1 31 store float %v2, float* %p1, align 4 32 ret void 33} 34 35 36%"st1" = type { %"subst1", %"subst1", %"subst1" } 37%"subst1" = type { %float4 } 38%float4 = type { float, float, float, float } 39 40@_gv = external unnamed_addr global %"st1", align 8 41 42define internal void @nvcast_f32_v8i8() { 43; CHECK-LABEL: _nvcast_f32_v8i8 44; CHECK: movi.8b v[[REG:[0-9]+]], #254 45; CHECK: str d[[REG]] 46entry: 47 store <2 x float> <float 0xC7DFDFDFC0000000, float 0xC7DFDFDFC0000000>, <2 x float>* bitcast (%"st1"* @_gv to <2 x float>*), align 8 48 ret void 49} 50