diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ptwrite-intel.d | 18 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ptwrite.d | 18 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/ptwrite.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-ptwrite-intel.d | 23 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-ptwrite.d | 23 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-ptwrite.s | 18 |
7 files changed, 116 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 61b6b2711d9..a546c2619ce 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -366,6 +366,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "ospke" run_dump_test "rdpid" run_dump_test "rdpid-intel" + run_dump_test "ptwrite" + run_dump_test "ptwrite-intel" run_list_test "avx512vl-1" "-al" run_list_test "avx512vl-2" "-al" @@ -767,6 +769,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-ospke" run_dump_test "x86-64-rdpid" run_dump_test "x86-64-rdpid-intel" + run_dump_test "x86-64-ptwrite" + run_dump_test "x86-64-ptwrite-intel" run_dump_test "x86-64-fence-as-lock-add-yes" run_dump_test "x86-64-fence-as-lock-add-no" run_dump_test "x86-64-pr20141" diff --git a/gas/testsuite/gas/i386/ptwrite-intel.d b/gas/testsuite/gas/i386/ptwrite-intel.d new file mode 100644 index 00000000000..d39609aef7d --- /dev/null +++ b/gas/testsuite/gas/i386/ptwrite-intel.d @@ -0,0 +1,18 @@ +#as: +#objdump: -dw -Mintel +#name: i386 PTWRITE insns (Intel disassembly) +#source: ptwrite.s + +.*: +file format .* + + +Disassembly of section \.text: + +0+ <_start>: + +[a-f0-9]+: f3 0f ae e1 ptwrite ecx + +[a-f0-9]+: f3 0f ae e1 ptwrite ecx + +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[ecx\] + +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[ecx\] + +[a-f0-9]+: f3 0f ae e1 ptwrite ecx + +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[ecx\] +#pass diff --git a/gas/testsuite/gas/i386/ptwrite.d b/gas/testsuite/gas/i386/ptwrite.d new file mode 100644 index 00000000000..399c7404293 --- /dev/null +++ b/gas/testsuite/gas/i386/ptwrite.d @@ -0,0 +1,18 @@ +#as: +#objdump: -dw +#name: i386 PTWRITE insns +#source: ptwrite.s + +.*: +file format .* + + +Disassembly of section \.text: + +0+ <_start>: + +[a-f0-9]+: f3 0f ae e1 ptwrite %ecx + +[a-f0-9]+: f3 0f ae e1 ptwrite %ecx + +[a-f0-9]+: f3 0f ae 21 ptwritel \(%ecx\) + +[a-f0-9]+: f3 0f ae 21 ptwritel \(%ecx\) + +[a-f0-9]+: f3 0f ae e1 ptwrite %ecx + +[a-f0-9]+: f3 0f ae 21 ptwritel \(%ecx\) +#pass diff --git a/gas/testsuite/gas/i386/ptwrite.s b/gas/testsuite/gas/i386/ptwrite.s new file mode 100644 index 00000000000..3aa4be7c847 --- /dev/null +++ b/gas/testsuite/gas/i386/ptwrite.s @@ -0,0 +1,12 @@ +# Check 32bit PTWRITE instructions + + .text +_start: + ptwrite %ecx + ptwritel %ecx + ptwrite (%ecx) + ptwritel (%ecx) + + .intel_syntax noprefix + ptwrite ecx + ptwrite DWORD PTR [ecx] diff --git a/gas/testsuite/gas/i386/x86-64-ptwrite-intel.d b/gas/testsuite/gas/i386/x86-64-ptwrite-intel.d new file mode 100644 index 00000000000..37e79459f71 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-ptwrite-intel.d @@ -0,0 +1,23 @@ +#as: +#objdump: -dw -Mintel +#name: x86_64 PTWRITE insns (Intel disassembly) +#source: x86-64-ptwrite.s + +.*: +file format .* + + +Disassembly of section \.text: + +0+ <_start>: + +[a-f0-9]+: f3 0f ae e1 ptwrite ecx + +[a-f0-9]+: f3 0f ae e1 ptwrite ecx + +[a-f0-9]+: f3 48 0f ae e1 ptwrite rcx + +[a-f0-9]+: f3 48 0f ae e1 ptwrite rcx + +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[rcx\] + +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[rcx\] + +[a-f0-9]+: f3 48 0f ae 21 ptwrite QWORD PTR \[rcx\] + +[a-f0-9]+: f3 0f ae e1 ptwrite ecx + +[a-f0-9]+: f3 48 0f ae e1 ptwrite rcx + +[a-f0-9]+: f3 0f ae 21 ptwrite DWORD PTR \[rcx\] + +[a-f0-9]+: f3 48 0f ae 21 ptwrite QWORD PTR \[rcx\] +#pass diff --git a/gas/testsuite/gas/i386/x86-64-ptwrite.d b/gas/testsuite/gas/i386/x86-64-ptwrite.d new file mode 100644 index 00000000000..75183b0f9eb --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-ptwrite.d @@ -0,0 +1,23 @@ +#as: +#objdump: -dw +#name: x86_64 PTWRITE insns +#source: x86-64-ptwrite.s + +.*: +file format .* + + +Disassembly of section \.text: + +0+ <_start>: + +[a-f0-9]+: f3 0f ae e1 ptwrite %ecx + +[a-f0-9]+: f3 0f ae e1 ptwrite %ecx + +[a-f0-9]+: f3 48 0f ae e1 ptwrite %rcx + +[a-f0-9]+: f3 48 0f ae e1 ptwrite %rcx + +[a-f0-9]+: f3 0f ae 21 ptwritel \(%rcx\) + +[a-f0-9]+: f3 0f ae 21 ptwritel \(%rcx\) + +[a-f0-9]+: f3 48 0f ae 21 ptwriteq \(%rcx\) + +[a-f0-9]+: f3 0f ae e1 ptwrite %ecx + +[a-f0-9]+: f3 48 0f ae e1 ptwrite %rcx + +[a-f0-9]+: f3 0f ae 21 ptwritel \(%rcx\) + +[a-f0-9]+: f3 48 0f ae 21 ptwriteq \(%rcx\) +#pass diff --git a/gas/testsuite/gas/i386/x86-64-ptwrite.s b/gas/testsuite/gas/i386/x86-64-ptwrite.s new file mode 100644 index 00000000000..956a437ba85 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-ptwrite.s @@ -0,0 +1,18 @@ +# Check 64bit PTWRITE instructions + + .text +_start: + ptwrite %ecx + ptwritel %ecx + ptwrite %rcx + ptwriteq %rcx + ptwrite (%rcx) + ptwritel (%rcx) + ptwriteq (%rcx) + + .intel_syntax noprefix + ptwrite ecx + ptwrite rcx + ptwrite DWORD PTR [rcx] + ptwritel DWORD PTR [rcx] + ptwrite QWORD PTR [rcx] |