37 lines · plain
1; RUN: llc -filetype=asm --aarch64-enable-sink-fold=true %s -o - | FileCheck %s2 3target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"4target triple = "aarch64--linux-gnueabihf"5 6; int7; main(void)8; {9; return -1;10; }11 12; CHECK: test.c:4:513; CHECK: mov14 15; Function Attrs: nounwind16define i32 @main() !dbg !4 {17entry:18 %retval = alloca i32, align 419 store i32 0, ptr %retval20 ret i32 -1, !dbg !1121}22 23!llvm.dbg.cu = !{!0}24!llvm.module.flags = !{!8, !9}25 26!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug)27!1 = !DIFile(filename: "test.c", directory: "/home/user/clang/build")28!2 = !{}29!4 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)30!5 = !DISubroutineType(types: !6)31!6 = !{!7}32!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)33!8 = !{i32 2, !"Dwarf Version", i32 4}34!9 = !{i32 2, !"Debug Info Version", i32 3}35!10 = !{i32 1, !"wchar_size", i32 4}36!11 = !DILocation(line: 4, column: 5, scope: !4)37