[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-readobj / note-amd.s
blobdf82b16b782598f8cd6aff4b33965e560ac3cf71
1 // REQUIRES: x86-registered-target
2 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.o
4 // RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM
5 // RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU
7 // GNU: Displaying notes found
8 // GNU-NEXT: Owner Data size Description
9 // GNU-NEXT: AMD 0x00000000 NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
10 // GNU-NEXT: HSA Metadata:
11 // GNU-NEXT: {{^ +$}}
12 // GNU-NEXT: AMD 0x00000000 NT_AMD_AMDGPU_ISA (ISA Version)
13 // GNU-NEXT: ISA Version:
14 // GNU-NEXT: {{^ +$}}
15 // GNU-NEXT: Displaying notes found
16 // GNU-NEXT: Owner Data size Description
17 // GNU-NEXT: AMD 0x0000000a NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
18 // GNU-NEXT: HSA Metadata:
19 // GNU-NEXT: meta_blah
20 // GNU-NEXT: AMD 0x00000009 NT_AMD_AMDGPU_ISA (ISA Version)
21 // GNU-NEXT: ISA Version:
22 // GNU-NEXT: isa_blah
23 // GNU-NEXT: Displaying notes found
24 // GNU-NEXT: Owner Data size Description
25 // GNU-NEXT: AMD 0x00000000 NT_AMD_AMDGPU_PAL_METADATA (PAL Metadata)
27 // LLVM: Notes [
28 // LLVM-NEXT: NoteSection {
29 // LLVM-NEXT: Offset:
30 // LLVM-NEXT: Size:
31 // LLVM-NEXT: Note {
32 // LLVM-NEXT: Owner: AMD
33 // LLVM-NEXT: Data size: 0x0
34 // LLVM-NEXT: Type: NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
35 // LLVM-NEXT: HSA Metadata:
36 // LLVM-NEXT: }
37 // LLVM-NEXT: Note {
38 // LLVM-NEXT: Owner: AMD
39 // LLVM-NEXT: Data size: 0x0
40 // LLVM-NEXT: Type: NT_AMD_AMDGPU_ISA (ISA Version)
41 // LLVM-NEXT: ISA Version:
42 // LLVM-NEXT: }
43 // LLVM-NEXT: }
44 // LLVM-NEXT: NoteSection {
45 // LLVM-NEXT: Offset:
46 // LLVM-NEXT: Size:
47 // LLVM-NEXT: Note {
48 // LLVM-NEXT: Owner: AMD
49 // LLVM-NEXT: Data size: 0xA
50 // LLVM-NEXT: Type: NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
51 // LLVM-NEXT: HSA Metadata: meta_blah
52 // LLVM-NEXT: }
53 // LLVM-NEXT: Note {
54 // LLVM-NEXT: Owner: AMD
55 // LLVM-NEXT: Data size: 0x9
56 // LLVM-NEXT: Type: NT_AMD_AMDGPU_ISA (ISA Version)
57 // LLVM-NEXT: ISA Version: isa_blah
58 // LLVM-NEXT: }
59 // LLVM-NEXT: }
60 // LLVM-NEXT: NoteSection {
61 // LLVM-NEXT: Offset:
62 // LLVM-NEXT: Size:
63 // LLVM-NEXT: Note {
64 // LLVM-NEXT: Owner: AMD
65 // LLVM-NEXT: Data size: 0x0
66 // LLVM-NEXT: Type: NT_AMD_AMDGPU_PAL_METADATA (PAL Metadata)
67 // LLVM-NEXT: }
68 // LLVM-NEXT: }
69 // LLVM-NEXT: ]
71 .section ".note.no.desc", "a"
72 .align 4
73 .long 4 /* namesz */
74 .long 0 /* descsz */
75 .long 10 /* type = NT_AMD_AMDGPU_HSA_METADATA */
76 .asciz "AMD"
77 .long 4 /* namesz */
78 .long 0 /* descsz */
79 .long 11 /* type = NT_AMD_AMDGPU_ISA */
80 .asciz "AMD"
81 .section ".note.desc", "a"
82 .align 4
83 .long 4 /* namesz */
84 .long end.meta - begin.meta /* descsz */
85 .long 10 /* type = NT_AMD_AMDGPU_HSA_METADATA */
86 .asciz "AMD"
87 begin.meta:
88 .asciz "meta_blah"
89 end.meta:
90 .align 4
91 .long 4 /* namesz */
92 .long end.isa - begin.isa /* descsz */
93 .long 11 /* type = NT_AMD_AMDGPU_ISA */
94 .asciz "AMD"
95 begin.isa:
96 .asciz "isa_blah"
97 end.isa:
98 .align 4
99 .section ".note.other", "a"
100 .align 4
101 .long 4 /* namesz */
102 .long 0 /* descsz */
103 .long 12 /* type = NT_AMD_AMDGPU_PAL_METADATA */
104 .asciz "AMD"