1 ; RUN: llc < %s -mtriple=thumbv7s-apple-ios7.0.0 | FileCheck %s
3 define arm_aapcs_vfpcc { <8 x half>, <8 x half> } @f1() {
6 ; CHECK-NEXT: vmov.f64 d8, #5.000000e-01
7 ; CHECK-NEXT: vmov.i32 d8, #0x0
8 ; CHECK-NEXT: vmov.i32 d0, #0x0
9 ; CHECK-NEXT: vmov.i32 d1, #0x0
10 ; CHECK-NEXT: vmov.i32 d2, #0x0
11 ; CHECK-NEXT: vmov.i32 d3, #0x0
12 ; CHECK-NEXT: vmov.i32 d4, #0x0
13 ; CHECK-NEXT: vmov.i32 d5, #0x0
14 ; CHECK-NEXT: vmov.i32 d6, #0x0
15 ; CHECK-NEXT: vmov.i32 d7, #0x0
16 ; CHECK-NEXT: vmov.f32 s1, s16
17 ; CHECK-NEXT: vmov.f32 s3, s16
18 ; CHECK-NEXT: vmov.f32 s5, s16
19 ; CHECK-NEXT: vmov.f32 s7, s16
20 ; CHECK-NEXT: vmov.f32 s9, s16
21 ; CHECK-NEXT: vmov.f32 s11, s16
22 ; CHECK-NEXT: vmov.f32 s13, s16
23 ; CHECK-NEXT: vmov.f32 s15, s16
24 ; CHECK-NEXT: vpop {d8}
26 ret { <8 x half>, <8 x half> } zeroinitializer
29 define swiftcc { <8 x half>, <8 x half> } @f2() {
32 ; CHECK-NEXT: vmov.f64 d8, #5.000000e-01
33 ; CHECK-NEXT: vmov.i32 d8, #0x0
34 ; CHECK-NEXT: vmov.i32 d0, #0x0
35 ; CHECK-NEXT: vmov.i32 d1, #0x0
36 ; CHECK-NEXT: vmov.i32 d2, #0x0
37 ; CHECK-NEXT: vmov.i32 d3, #0x0
38 ; CHECK-NEXT: vmov.i32 d4, #0x0
39 ; CHECK-NEXT: vmov.i32 d5, #0x0
40 ; CHECK-NEXT: vmov.i32 d6, #0x0
41 ; CHECK-NEXT: vmov.i32 d7, #0x0
42 ; CHECK-NEXT: vmov.f32 s1, s16
43 ; CHECK-NEXT: vmov.f32 s3, s16
44 ; CHECK-NEXT: vmov.f32 s5, s16
45 ; CHECK-NEXT: vmov.f32 s7, s16
46 ; CHECK-NEXT: vmov.f32 s9, s16
47 ; CHECK-NEXT: vmov.f32 s11, s16
48 ; CHECK-NEXT: vmov.f32 s13, s16
49 ; CHECK-NEXT: vmov.f32 s15, s16
50 ; CHECK-NEXT: vpop {d8}
52 ret { <8 x half>, <8 x half> } zeroinitializer
55 define fastcc { <8 x half>, <8 x half> } @f3() {
58 ; CHECK-NEXT: vmov.f64 d8, #5.000000e-01
59 ; CHECK-NEXT: vmov.i32 d8, #0x0
60 ; CHECK-NEXT: vmov.i32 d0, #0x0
61 ; CHECK-NEXT: vmov.i32 d1, #0x0
62 ; CHECK-NEXT: vmov.i32 d2, #0x0
63 ; CHECK-NEXT: vmov.i32 d3, #0x0
64 ; CHECK-NEXT: vmov.i32 d4, #0x0
65 ; CHECK-NEXT: vmov.i32 d5, #0x0
66 ; CHECK-NEXT: vmov.i32 d6, #0x0
67 ; CHECK-NEXT: vmov.i32 d7, #0x0
68 ; CHECK-NEXT: vmov.f32 s1, s16
69 ; CHECK-NEXT: vmov.f32 s3, s16
70 ; CHECK-NEXT: vmov.f32 s5, s16
71 ; CHECK-NEXT: vmov.f32 s7, s16
72 ; CHECK-NEXT: vmov.f32 s9, s16
73 ; CHECK-NEXT: vmov.f32 s11, s16
74 ; CHECK-NEXT: vmov.f32 s13, s16
75 ; CHECK-NEXT: vmov.f32 s15, s16
76 ; CHECK-NEXT: vpop {d8}
79 ret { <8 x half>, <8 x half> } zeroinitializer
82 define void @extract_insert(ptr %dst) optnone noinline {
83 ; CHECK-LABEL: extract_insert:
84 ; CHECK: vmov.i32 d0, #0x0
85 ; CHECK: vcvtb.f16.f32 s0, s0
87 ; CHECK: strh r1, [r0]
88 %splat.splatinsert = insertelement <1 x half> zeroinitializer, half 0xH0000, i32 0
92 store <1 x half> %splat.splatinsert, ptr %dst