summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/note-gnu-property.s
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-02-13 23:18:05 +0000
committerFangrui Song <maskray@google.com>2019-02-13 23:18:05 +0000
commit91ab9bf32cc5d20919bcc1989bde3eca1a3c1764 (patch)
tree8bdee4d17661b1f1bd066fdbf3b85237f182b3d3 /llvm/test/tools/llvm-readobj/note-gnu-property.s
parentb5fe6fdbc43662ddb04f9da5b84d7ef26db85bec (diff)
downloadbcm5719-llvm-91ab9bf32cc5d20919bcc1989bde3eca1a3c1764.tar.gz
bcm5719-llvm-91ab9bf32cc5d20919bcc1989bde3eca1a3c1764.zip
[llvm-readobj] Dump GNU_PROPERTY_X86_ISA_1_{NEEDED,USED} notes in .note.gnu.property
Reviewers: grimar, rupprecht Reviewed By: rupprecht Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58175 llvm-svn: 353991
Diffstat (limited to 'llvm/test/tools/llvm-readobj/note-gnu-property.s')
-rw-r--r--llvm/test/tools/llvm-readobj/note-gnu-property.s22
1 files changed, 18 insertions, 4 deletions
diff --git a/llvm/test/tools/llvm-readobj/note-gnu-property.s b/llvm/test/tools/llvm-readobj/note-gnu-property.s
index 1d35274bf2e..c41c8ac3cdf 100644
--- a/llvm/test/tools/llvm-readobj/note-gnu-property.s
+++ b/llvm/test/tools/llvm-readobj/note-gnu-property.s
@@ -3,15 +3,17 @@
// RUN: llvm-readobj -elf-output-style GNU --notes %t | FileCheck %s --check-prefix=GNU
// RUN: llvm-readobj -elf-output-style LLVM --notes %t | FileCheck %s --check-prefix=LLVM
-// GNU: Displaying notes found at file offset 0x00000040 with length 0x000000d8:
+// GNU: Displaying notes found at file offset 0x00000040 with length 0x000000f8:
// GNU-NEXT: Owner Data size Description
-// GNU-NEXT: GNU 0x000000c8 NT_GNU_PROPERTY_TYPE_0 (property note)
+// GNU-NEXT: GNU 0x000000e8 NT_GNU_PROPERTY_TYPE_0 (property note)
// GNU-NEXT: Properties: stack size: 0x100
// GNU-NEXT: stack size: 0x100
// GNU-NEXT: no copy on protected
// GNU-NEXT: x86 feature: SHSTK
// GNU-NEXT: x86 feature: IBT, SHSTK
// GNU-NEXT: x86 feature: <None>
+// GNU-NEXT: x86 ISA needed: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD
+// GNU-NEXT: x86 ISA used: AVX512ER, AVX512PF, AVX512VL, AVX512DQ, AVX512BW, AVX512_4FMAPS, AVX512_4VNNIW, AVX512_BITALG, AVX512_IFMA, AVX512_VBMI, AVX512_VBMI2, AVX512_VNNI
// GNU-NEXT: x86 feature needed: x86, x87
// GNU-NEXT: x86 feature used: XSAVEOPT, XSAVEC
// GNU-NEXT: <application-specific type 0xfefefefe>
@@ -25,10 +27,10 @@
// LLVM: Notes [
// LLVM-NEXT: NoteSection {
// LLVM-NEXT: Offset: 0x40
-// LLVM-NEXT: Size: 0xD8
+// LLVM-NEXT: Size: 0xF8
// LLVM-NEXT: Note {
// LLVM-NEXT: Owner: GNU
-// LLVM-NEXT: Data size: 0xC8
+// LLVM-NEXT: Data size: 0xE8
// LLVM-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note)
// LLVM-NEXT: Property [
// LLVM-NEXT: stack size: 0x100
@@ -37,6 +39,8 @@
// LLVM-NEXT: x86 feature: SHSTK
// LLVM-NEXT: x86 feature: IBT, SHSTK
// LLVM-NEXT: x86 feature: <None>
+// LLVM-NEXT: x86 ISA needed: CMOV, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2, FMA, AVX512F, AVX512CD
+// LLVM-NEXT: x86 ISA used: AVX512ER, AVX512PF, AVX512VL, AVX512DQ, AVX512BW, AVX512_4FMAPS, AVX512_4VNNIW, AVX512_BITALG, AVX512_IFMA, AVX512_VBMI, AVX512_VBMI2, AVX512_VNNI
// LLVM-NEXT: x86 feature needed: x86, x87
// LLVM-NEXT: x86 feature used: XSAVEOPT, XSAVEC
// LLVM-NEXT: <application-specific type 0xfefefefe>
@@ -91,6 +95,16 @@ begin:
.long 0 /* Empty flags, not an error */
.p2align 3 /* Align to 8 byte for 64 bit */
+ .long 0xc0008000 /* Type: GNU_PROPERTY_X86_ISA_1_NEEDED */
+ .long 4 /* Data size */
+ .long 0x00000fff /* CMOV, ... */
+ .p2align 3 /* Align to 8 byte for 64 bit */
+
+ .long 0xc0010000 /* Type: GNU_PROPERTY_X86_ISA_1_USED */
+ .long 4 /* Data size */
+ .long 0x00fff000 /* AVX512_ER, ... */
+ .p2align 3 /* Align to 8 byte for 64 bit */
+
.long 0xc0008001 /* Type: GNU_PROPERTY_X86_FEATURE_2_NEEDED */
.long 4 /* Data size */
.long 0x00000003 /* X86 X87 */
OpenPOWER on IntegriCloud