[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-readobj / note-generic.s
blob7b3b85fc56b9251855fa820d43eaaf1a462c9376
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 at file offset 0x00000040 with length 0x00000010:
8 // GNU-NEXT: Owner Data size Description
9 // GNU-NEXT: XYZ 0x00000000 NT_VERSION (version)
11 // GNU: Displaying notes found at file offset 0x00000050 with length 0x00000010:
12 // GNU-NEXT: Owner Data size Description
13 // GNU-NEXT: XYZ 0x00000000 NT_ARCH (architecture)
15 // GNU: Displaying notes found at file offset 0x00000060 with length 0x00000010:
16 // GNU-NEXT: Owner Data size Description
17 // GNU-NEXT: XYZ 0x00000000 OPEN
19 // GNU: Displaying notes found at file offset 0x00000070 with length 0x00000010:
20 // GNU-NEXT: Owner Data size Description
21 // GNU-NEXT: XYZ 0x00000000 func
23 // LLVM: Notes [
24 // LLVM-NEXT: NoteSection {
25 // LLVM-NEXT: Offset: 0x40
26 // LLVM-NEXT: Size: 0x10
27 // LLVM-NEXT: Note {
28 // LLVM-NEXT: Owner: XYZ
29 // LLVM-NEXT: Data size: 0x0
30 // LLVM-NEXT: Type: NT_VERSION (version)
31 // LLVM-NEXT: }
32 // LLVM-NEXT: }
33 // LLVM-NEXT: NoteSection {
34 // LLVM-NEXT: Offset: 0x50
35 // LLVM-NEXT: Size: 0x10
36 // LLVM-NEXT: Note {
37 // LLVM-NEXT: Owner: XYZ
38 // LLVM-NEXT: Data size: 0x0
39 // LLVM-NEXT: Type: NT_ARCH (architecture)
40 // LLVM-NEXT: }
41 // LLVM-NEXT: }
42 // LLVM-NEXT: NoteSection {
43 // LLVM-NEXT: Offset: 0x60
44 // LLVM-NEXT: Size: 0x10
45 // LLVM-NEXT: Note {
46 // LLVM-NEXT: Owner: XYZ
47 // LLVM-NEXT: Data size: 0x0
48 // LLVM-NEXT: Type: OPEN
49 // LLVM-NEXT: }
50 // LLVM-NEXT: }
51 // LLVM-NEXT: NoteSection {
52 // LLVM-NEXT: Offset: 0x70
53 // LLVM-NEXT: Size: 0x10
54 // LLVM-NEXT: Note {
55 // LLVM-NEXT: Owner: XYZ
56 // LLVM-NEXT: Data size: 0x0
57 // LLVM-NEXT: Type: func
58 // LLVM-NEXT: }
59 // LLVM-NEXT: }
60 // LLVM-NEXT: ]
62 .section ".note.version", "a"
63 .align 4
64 .long 4 /* namesz */
65 .long 0 /* descsz */
66 .long 1 /* type = NT_VERSION */
67 .asciz "XYZ"
68 .section ".note.arch", "a"
69 .align 4
70 .long 4 /* namesz */
71 .long 0 /* descsz */
72 .long 2 /* type = NT_ARCH*/
73 .asciz "XYZ"
74 .section ".note.open", "a"
75 .align 4
76 .long 4 /* namesz */
77 .long 0 /* descsz */
78 .long 0x100 /* type = NT_GNU_BUILD_ATTRIBUTE_OPEN*/
79 .asciz "XYZ"
80 .section ".note.func", "a"
81 .align 4
82 .long 4 /* namesz */
83 .long 0 /* descsz */
84 .long 0x101 /* type = NT_GNU_BUILD_ATTRIBUTE_FUNC*/
85 .asciz "XYZ"