1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s -mtriple arm | FileCheck %s -check-prefixes=CHECK-ALE
3 ; RUN: llc < %s -mtriple armeb | FileCheck %s -check-prefixes=CHECK-ABE
4 ; RUN: llc < %s -mtriple thumb | FileCheck %s -check-prefixes=CHECK-TLE
5 ; RUN: llc < %s -mtriple thumbeb | FileCheck %s -check-prefixes=CHECK-TBE
7 declare dso_local void @main()
9 define dso_local void @naked() naked "frame-pointer"="all" {
10 ; CHECK-ALE-LABEL: naked:
12 ; CHECK-ALE-NEXT: bl main
14 ; CHECK-ABE-LABEL: naked:
16 ; CHECK-ABE-NEXT: bl main
18 ; CHECK-TLE-LABEL: naked:
20 ; CHECK-TLE-NEXT: bl main
22 ; CHECK-TBE-LABEL: naked:
24 ; CHECK-TBE-NEXT: bl main
29 define dso_local void @normal() "frame-pointer"="all" {
30 ; CHECK-ALE-LABEL: normal:
32 ; CHECK-ALE-NEXT: push {r11, lr}
33 ; CHECK-ALE-NEXT: mov r11, sp
34 ; CHECK-ALE-NEXT: bl main
36 ; CHECK-ABE-LABEL: normal:
38 ; CHECK-ABE-NEXT: push {r11, lr}
39 ; CHECK-ABE-NEXT: mov r11, sp
40 ; CHECK-ABE-NEXT: bl main
42 ; CHECK-TLE-LABEL: normal:
44 ; CHECK-TLE-NEXT: push {r7, lr}
45 ; CHECK-TLE-NEXT: add r7, sp, #0
46 ; CHECK-TLE-NEXT: bl main
48 ; CHECK-TBE-LABEL: normal:
50 ; CHECK-TBE-NEXT: push {r7, lr}
51 ; CHECK-TBE-NEXT: add r7, sp, #0
52 ; CHECK-TBE-NEXT: bl main