1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s -mtriple csky | FileCheck %s -check-prefixes=CHECK
4 declare dso_local void @main()
6 define dso_local void @naked() naked "frame-pointer"="all" {
9 ; CHECK-NEXT: lrw a0, [.LCPI0_0]
10 ; CHECK-NEXT: jsr16 a0
11 ; CHECK-NEXT: .p2align 1
12 ; CHECK-NEXT: # %bb.1:
13 ; CHECK-NEXT: .p2align 2, 0x0
14 ; CHECK-NEXT: .LCPI0_0:
15 ; CHECK-NEXT: .long main
20 define dso_local void @normal() "frame-pointer"="all" {
21 ; CHECK-LABEL: normal:
23 ; CHECK-NEXT: subi16 sp, sp, 8
24 ; CHECK-NEXT: .cfi_def_cfa_offset 8
25 ; CHECK-NEXT: st32.w lr, (sp, 4) # 4-byte Folded Spill
26 ; CHECK-NEXT: st32.w l4, (sp, 0) # 4-byte Folded Spill
27 ; CHECK-NEXT: .cfi_offset lr, -4
28 ; CHECK-NEXT: .cfi_offset l4, -8
29 ; CHECK-NEXT: mov16 l4, sp
30 ; CHECK-NEXT: .cfi_def_cfa_register l4
31 ; CHECK-NEXT: subi16 sp, sp, 4
32 ; CHECK-NEXT: lrw a0, [.LCPI1_0]
33 ; CHECK-NEXT: jsr16 a0
34 ; CHECK-NEXT: .p2align 1
35 ; CHECK-NEXT: # %bb.1:
36 ; CHECK-NEXT: .p2align 2, 0x0
37 ; CHECK-NEXT: .LCPI1_0:
38 ; CHECK-NEXT: .long main