1 ; RUN: llc -mtriple=arm64-apple-ios -mcpu=cyclone < %s | FileCheck %s 2 ; rdar://11481771 3 ; rdar://13713797 4 5 define void @t1() nounwind ssp { 6 entry: 7 ; CHECK-LABEL: t1: 8 ; CHECK-NOT: fmov 9 ; CHECK: movi.2d v0, #0000000000000000 10 ; CHECK: movi.2d v1, #0000000000000000 11 ; CHECK: movi.2d v2, #0000000000000000 12 ; CHECK: movi.2d v3, #0000000000000000 13 tail call void @bar(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00) nounwind 14 ret void 15 } 16 17 define void @t2() nounwind ssp { 18 entry: 19 ; CHECK-LABEL: t2: 20 ; CHECK-NOT: mov w0, wzr 21 ; CHECK: movz w0, #0 22 ; CHECK: movz w1, #0 23 tail call void @bari(i32 0, i32 0) nounwind 24 ret void 25 } 26 27 define void @t3() nounwind ssp { 28 entry: 29 ; CHECK-LABEL: t3: 30 ; CHECK-NOT: mov x0, xzr 31 ; CHECK: movz x0, #0 32 ; CHECK: movz x1, #0 33 tail call void @barl(i64 0, i64 0) nounwind 34 ret void 35 } 36 37 define void @t4() nounwind ssp { 38 ; CHECK-LABEL: t4: 39 ; CHECK-NOT: fmov 40 ; CHECK: movi.2d v0, #0000000000000000 41 ; CHECK: movi.2d v1, #0000000000000000 42 tail call void @barf(float 0.000000e+00, float 0.000000e+00) nounwind 43 ret void 44 } 45 46 declare void @bar(double, double, double, double) 47 declare void @bari(i32, i32) 48 declare void @barl(i64, i64) 49 declare void @barf(float, float) 50