1 ; RUN: llc -O0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs -mtriple=arm64-apple-darwin < %s | FileCheck %s
4 define void @t0() nounwind ssp {
11 define i32 @t1(i32 %a) nounwind ssp {
14 ; CHECK: str w0, [sp, #12]
15 ; CHECK-NEXT: ldr w0, [sp, #12]
17 %a.addr = alloca i32, align 4
18 store i32 %a, i32* %a.addr, align 4
19 %tmp = load i32, i32* %a.addr, align 4
23 define i64 @t2(i64 %a) nounwind ssp {
26 ; CHECK: str x0, [sp, #8]
27 ; CHECK-NEXT: ldr x0, [sp, #8]
29 %a.addr = alloca i64, align 8
30 store i64 %a, i64* %a.addr, align 8
31 %tmp = load i64, i64* %a.addr, align 8
35 define signext i16 @ret_i16(i16 signext %a) nounwind {
38 ; CHECK: sxth w0, {{w[0-9]+}}
39 %a.addr = alloca i16, align 1
40 store i16 %a, i16* %a.addr, align 1
41 %0 = load i16, i16* %a.addr, align 1
45 define signext i8 @ret_i8(i8 signext %a) nounwind {
48 ; CHECK: sxtb w0, {{w[0-9]+}}
49 %a.addr = alloca i8, align 1
50 store i8 %a, i8* %a.addr, align 1
51 %0 = load i8, i8* %a.addr, align 1
55 define signext i1 @ret_i1(i1 signext %a) nounwind {
58 ; CHECK: and [[REG:w[0-9]+]], {{w[0-9]+}}, #0x1
59 ; CHECK: sbfx w0, [[REG]], #0, #1
60 %a.addr = alloca i1, align 1
61 store i1 %a, i1* %a.addr, align 1
62 %0 = load i1, i1* %a.addr, align 1