1 ; RUN: llc < %s -mtriple=x86_64-linux -remarks-section -pass-remarks-output=%/t.yaml | FileCheck -DPATH=%/t.yaml %s
2 ; RUN: llc < %s -mtriple=x86_64-darwin -remarks-section -pass-remarks-output=%/t.yaml | FileCheck --check-prefix=CHECK-DARWIN -DPATH=%/t.yaml %s
3 ; RUN: llc < %s -mtriple=x86_64-darwin -remarks-section -remarks-yaml-string-table -pass-remarks-output=%/t.yaml | FileCheck --check-prefix=CHECK-DARWIN-STRTAB -DPATH=%/t.yaml %s
7 ; CHECK: .section .remarks,"e",@progbits
9 ; CHECK-NEXT: .ascii "REMARKS"
13 ; CHECK-NEXT: .byte 0x00, 0x00, 0x00, 0x00
14 ; CHECK-NEXT: .byte 0x00, 0x00, 0x00, 0x00
15 ; The string table size:
16 ; CHECK-NEXT: .byte 0x00, 0x00, 0x00, 0x00
17 ; CHECK-NEXT: .byte 0x00, 0x00, 0x00, 0x00
20 ; The remark file path:
21 ; CHECK-NEXT: .ascii "[[PATH]]"
25 ; CHECK-DARWIN: .section __LLVM,__remarks,regular,debug
27 ; CHECK-DARWIN-NEXT: .ascii "REMARKS"
29 ; CHECK-DARWIN-NEXT: .byte 0
31 ; CHECK-DARWIN-NEXT: .byte 0x00, 0x00, 0x00, 0x00
32 ; CHECK-DARWIN-NEXT: .byte 0x00, 0x00, 0x00, 0x00
33 ; The string table size:
34 ; CHECK-DARWIN-NEXT: .byte 0x00, 0x00, 0x00, 0x00
35 ; CHECK-DARWIN-NEXT: .byte 0x00, 0x00, 0x00, 0x00
38 ; The remark file path:
39 ; CHECK-DARWIN-NEXT: .ascii "[[PATH]]"
41 ; CHECK-DARWIN-NEXT: .byte 0
43 ; CHECK-DARWIN-STRTAB: .section __LLVM,__remarks,regular,debug
45 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "REMARKS"
47 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
49 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0x00, 0x00, 0x00, 0x00
50 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0x00, 0x00, 0x00, 0x00
51 ; The size of the string table:
52 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0x71, 0x00, 0x00, 0x00
53 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0x00, 0x00, 0x00, 0x00
55 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "prologepilog"
56 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
57 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "StackSize"
58 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
59 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "func1"
60 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
61 ; CHECK-DARWIN-STRTAB-NEXT: .byte 48
62 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
63 ; CHECK-DARWIN-STRTAB-NEXT: .ascii " stack bytes in function"
64 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
65 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "asm-printer"
66 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
67 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "InstructionCount"
68 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
69 ; CHECK-DARWIN-STRTAB-NEXT: .byte 49
70 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
71 ; CHECK-DARWIN-STRTAB-NEXT: .ascii " instructions in function"
72 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
73 ; The remark file path:
74 ; CHECK-DARWIN-STRTAB-NEXT: .ascii "[[PATH]]"
76 ; CHECK-DARWIN-STRTAB-NEXT: .byte 0
77 define void @func1() {