mirror of
https://github.com/jeremysrand/llvm-65816.git
synced 2024-11-17 16:07:00 +00:00
36 lines
1.7 KiB
LLVM
36 lines
1.7 KiB
LLVM
; RUN: llc < %s | FileCheck %s
|
|
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
; Function Attrs: nounwind
|
|
define void @foo() #0 {
|
|
entry:
|
|
call void @llvm.eh.unwind.init(), !dbg !9
|
|
ret void, !dbg !10
|
|
}
|
|
|
|
; CHECK: @foo
|
|
; CHECK-NOT: .cfi_offset vrsave
|
|
; CHECK: blr
|
|
|
|
; Function Attrs: nounwind
|
|
declare void @llvm.eh.unwind.init() #0
|
|
|
|
attributes #0 = { nounwind }
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!8, !11}
|
|
|
|
!0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.4", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !3, metadata !2, metadata !2, metadata !""} ; [ DW_TAG_compile_unit ] [/tmp/unwind-dw2.c] [DW_LANG_C99]
|
|
!1 = metadata !{metadata !"/tmp/unwind-dw2.c", metadata !"/tmp"}
|
|
!2 = metadata !{i32 0}
|
|
!3 = metadata !{metadata !4}
|
|
!4 = metadata !{i32 786478, metadata !1, metadata !5, metadata !"foo", metadata !"foo", metadata !"", i32 1, metadata !6, i1 false, i1 true, i32 0, i32 0, null, i32 0, i1 false, void ()* @foo, null, null, metadata !2, i32 1} ; [ DW_TAG_subprogram ] [line 1] [def] [foo]
|
|
!5 = metadata !{i32 786473, metadata !1} ; [ DW_TAG_file_type ] [/tmp/unwind-dw2.c]
|
|
!6 = metadata !{i32 786453, i32 0, null, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !7, i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
|
!7 = metadata !{null}
|
|
!8 = metadata !{i32 2, metadata !"Dwarf Version", i32 3}
|
|
!9 = metadata !{i32 2, i32 0, metadata !4, null}
|
|
!10 = metadata !{i32 3, i32 0, metadata !4, null}
|
|
!11 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|