1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s -mtriple sparc | FileCheck %s -check-prefixes=CHECK-32
3 ; RUN: llc < %s -mtriple sparc64 | FileCheck %s -check-prefixes=CHECK-64
5 declare dso_local void @main()
7 define dso_local void @naked() naked "frame-pointer"="all" {
8 ; CHECK-32-LABEL: naked:
9 ; CHECK-32: .cfi_startproc
10 ; CHECK-32-NEXT: ! %bb.0:
11 ; CHECK-32-NEXT: call main
14 ; CHECK-64-LABEL: naked:
15 ; CHECK-64: .cfi_startproc
16 ; CHECK-64-NEXT: ! %bb.0:
17 ; CHECK-64-NEXT: call main
23 define dso_local void @normal() "frame-pointer"="all" {
24 ; CHECK-32-LABEL: normal:
25 ; CHECK-32: .cfi_startproc
26 ; CHECK-32-NEXT: ! %bb.0:
27 ; CHECK-32-NEXT: save %sp, -96, %sp
28 ; CHECK-32-NEXT: .cfi_def_cfa_register %fp
29 ; CHECK-32-NEXT: .cfi_window_save
30 ; CHECK-32-NEXT: .cfi_register %o7, %i7
31 ; CHECK-32-NEXT: call main
34 ; CHECK-64-LABEL: normal:
35 ; CHECK-64: .cfi_startproc
36 ; CHECK-64-NEXT: ! %bb.0:
37 ; CHECK-64-NEXT: save %sp, -176, %sp
38 ; CHECK-64-NEXT: .cfi_def_cfa_register %fp
39 ; CHECK-64-NEXT: .cfi_window_save
40 ; CHECK-64-NEXT: .cfi_register %o7, %i7
41 ; CHECK-64-NEXT: call main