[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-readobj / note-freebsd.s
blobfbb7ac147d91483ac230b254c2c953869c6d682b
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: FreeBSD 0x00000000 NT_THRMISC (thrmisc structure)
10 // GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_PROC (proc data)
11 // GNU-NEXT: Displaying notes found
12 // GNU-NEXT: Owner Data size Description
13 // GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_FILES (files data)
14 // GNU-NEXT: Displaying notes found
15 // GNU-NEXT: Owner Data size Description
16 // GNU-NEXT: FreeBSD 0x0000001c Unknown note type (0x00000003)
17 // GNU-NEXT: description data: 4c 6f 72 65 6d 20 69 70 73 75 6d 20 64 6f 6c 6f 72 20 73 69 74 20 61 6d 65 74 00 00
19 // LLVM: Notes [
20 // LLVM-NEXT: NoteSection {
21 // LLVM-NEXT: Offset:
22 // LLVM-NEXT: Size:
23 // LLVM-NEXT: Note {
24 // LLVM-NEXT: Owner: FreeBSD
25 // LLVM-NEXT: Data size: 0x0
26 // LLVM-NEXT: Type: NT_THRMISC (thrmisc structure)
27 // LLVM-NEXT: }
28 // LLVM-NEXT: Note {
29 // LLVM-NEXT: Owner: FreeBSD
30 // LLVM-NEXT: Data size: 0x0
31 // LLVM-NEXT: Type: NT_PROCSTAT_PROC (proc data)
32 // LLVM-NEXT: }
33 // LLVM-NEXT: }
34 // LLVM-NEXT: NoteSection {
35 // LLVM-NEXT: Offset: 0x68
36 // LLVM-NEXT: Size: 0x14
37 // LLVM-NEXT: Note {
38 // LLVM-NEXT: Owner: FreeBSD
39 // LLVM-NEXT: Data size: 0x0
40 // LLVM-NEXT: Type: NT_PROCSTAT_FILES (files data)
41 // LLVM-NEXT: }
42 // LLVM-NEXT: }
43 // LLVM-NEXT: NoteSection {
44 // LLVM-NEXT: Offset: 0x7C
45 // LLVM-NEXT: Size: 0x30
46 // LLVM-NEXT: Note {
47 // LLVM-NEXT: Owner: FreeBSD
48 // LLVM-NEXT: Data size: 0x1C
49 // LLVM-NEXT: Type: Unknown note type (0x00000003)
50 // LLVM-NEXT: Description data (
51 // LLVM-NEXT: 0000: 4C6F7265 6D206970 73756D20 646F6C6F |Lorem ipsum dolo|
52 // LLVM-NEXT: 0010: 72207369 7420616D 65740000 |r sit amet..|
53 // LLVM-NEXT: )
54 // LLVM-NEXT: }
55 // LLVM-NEXT: }
56 // LLVM-NEXT: ]
58 .section ".note.foo", "a"
59 .align 4
60 .long 8 /* namesz */
61 .long 0 /* descsz */
62 .long 7 /* type = NT_FREEBSD_THRMISC */
63 .asciz "FreeBSD"
64 .long 8 /* namesz */
65 .long 0 /* descsz */
66 .long 8 /* type = NT_FREEBSD_PROC */
67 .asciz "FreeBSD"
68 .section ".note.bar", "a"
69 .align 4
70 .long 8 /* namesz */
71 .long 0 /* descsz */
72 .long 9 /* type = NT_FREEBSD_FILES */
73 .asciz "FreeBSD"
74 .section ".note.baz", "a"
75 .align 4
76 .long 8 /* namesz */
77 .long end - begin /* descsz */
78 .long 3 /* type */
79 .asciz "FreeBSD"
80 begin:
81 .asciz "Lorem ipsum dolor sit amet"
82 .align 4
83 end: