[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / BPF / BTF / func-void.ll
blob4979f401ccc8e4a0609da3883c108a7dad2d8273
1 ; RUN: llc -march=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
2 ; RUN: llc -march=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
4 ; Source code:
5 ;   void f1(void) {}
6 ; Compilation flag:
7 ;   clang -target bpf -O2 -g -S -emit-llvm t.c
9 ; Function Attrs: norecurse nounwind readnone
10 define dso_local void @f1() local_unnamed_addr #0 !dbg !7 {
11   ret void, !dbg !10
14 ; CHECK:             .section        .BTF,"",@progbits
15 ; CHECK-NEXT:        .short  60319                   # 0xeb9f
16 ; CHECK-NEXT:        .byte   1
17 ; CHECK-NEXT:        .byte   0
18 ; CHECK-NEXT:        .long   24
19 ; CHECK-NEXT:        .long   0
20 ; CHECK-NEXT:        .long   24
21 ; CHECK-NEXT:        .long   24
22 ; CHECK-NEXT:        .long   19
23 ; CHECK-NEXT:        .long   0                       # BTF_KIND_FUNC_PROTO(id = 1)
24 ; CHECK-NEXT:        .long   218103808               # 0xd000000
25 ; CHECK-NEXT:        .long   0
26 ; CHECK-NEXT:        .long   1                       # BTF_KIND_FUNC(id = 2)
27 ; CHECK-NEXT:        .long   201326592               # 0xc000000
28 ; CHECK-NEXT:        .long   1
29 ; CHECK-NEXT:        .byte   0                       # string offset=0
30 ; CHECK-NEXT:        .ascii  "f1"                    # string offset=1
31 ; CHECK-NEXT:        .byte   0
32 ; CHECK-NEXT:        .ascii  ".text"                 # string offset=4
33 ; CHECK-NEXT:        .byte   0
34 ; CHECK-NEXT:        .ascii  "/tmp/t.c"              # string offset=10
35 ; CHECK-NEXT:        .byte   0
36 ; CHECK-NEXT:        .section        .BTF.ext,"",@progbits
37 ; CHECK-NEXT:        .short  60319                   # 0xeb9f
38 ; CHECK-NEXT:        .byte   1
39 ; CHECK-NEXT:        .byte   0
40 ; CHECK-NEXT:        .long   32
41 ; CHECK-NEXT:        .long   0
42 ; CHECK-NEXT:        .long   20
43 ; CHECK-NEXT:        .long   20
44 ; CHECK-NEXT:        .long   28
45 ; CHECK-NEXT:        .long   48
46 ; CHECK-NEXT:        .long   0
47 ; CHECK-NEXT:        .long   8                       # FuncInfo
48 ; CHECK-NEXT:        .long   4                       # FuncInfo section string offset=4
49 ; CHECK-NEXT:        .long   1
50 ; CHECK-NEXT:        .long   .Lfunc_begin0
51 ; CHECK-NEXT:        .long   2
52 ; CHECK-NEXT:        .long   16                      # LineInfo
53 ; CHECK-NEXT:        .long   4                       # LineInfo section string offset=4
54 ; CHECK-NEXT:        .long   1
55 ; CHECK-NEXT:        .long   .Ltmp{{[0-9]+}}
56 ; CHECK-NEXT:        .long   10
57 ; CHECK-NEXT:        .long   0
58 ; CHECK-NEXT:        .long   1040                    # Line 1 Col 16
60 attributes #0 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
62 !llvm.dbg.cu = !{!0}
63 !llvm.module.flags = !{!3, !4, !5}
64 !llvm.ident = !{!6}
66 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0 (trunk 345562) (llvm/trunk 345560)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
67 !1 = !DIFile(filename: "t.c", directory: "/tmp")
68 !2 = !{}
69 !3 = !{i32 2, !"Dwarf Version", i32 4}
70 !4 = !{i32 2, !"Debug Info Version", i32 3}
71 !5 = !{i32 1, !"wchar_size", i32 4}
72 !6 = !{!"clang version 8.0.0 (trunk 345562) (llvm/trunk 345560)"}
73 !7 = distinct !DISubprogram(name: "f1", scope: !1, file: !1, line: 1, type: !8, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !2)
74 !8 = !DISubroutineType(types: !9)
75 !9 = !{null}
76 !10 = !DILocation(line: 1, column: 16, scope: !7)