diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2008-06-03 17:31:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2008-06-03 17:31:52 +0000 |
commit | cb19c0328d94a02c4754cc3d7b4ae2a28f888c46 (patch) | |
tree | 019f2214ff7061334785caf59911468bb7a51e25 /gas/testsuite | |
parent | 4ecab7d4c2ad7a2bafc49e731fd22e9a74713d89 (diff) | |
download | gdb-cb19c0328d94a02c4754cc3d7b4ae2a28f888c46.zip gdb-cb19c0328d94a02c4754cc3d7b4ae2a28f888c46.tar.gz gdb-cb19c0328d94a02c4754cc3d7b4ae2a28f888c46.tar.bz2 |
gas/
2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (set_sse_check): New.
(md_pseudo_table): Add "sse_check".
gas/testsuite/
2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run sse-check-none and
x86-64-sse-check-none.
* gas/i386/sse-check-none.d: New.
* gas/i386/sse-check-none.s: Likewise.
* gas/i386/x86-64-sse-check-none.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/sse-check-none.d | 16 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/sse-check-none.s | 21 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-sse-check-none.d | 17 |
5 files changed, 65 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index dcc8f91..e5738e0 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2008-06-03 H.J. Lu <hongjiu.lu@intel.com> + + * gas/i386/i386.exp: Run sse-check-none and + x86-64-sse-check-none. + + * gas/i386/sse-check-none.d: New. + * gas/i386/sse-check-none.s: Likewise. + * gas/i386/x86-64-sse-check-none.d: Likewise. + 2008-06-03 Paul Brook <paul@codesourcery.com> * gas/arm/thumb32.d: Update expected output. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 9805db7..0afe9eb 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -125,6 +125,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "sse2avx" run_list_test "inval-avx" "-al" run_dump_test "sse-check" + run_dump_test "sse-check-none" run_dump_test "sse-check-warn" run_list_test "sse-check-error" "-msse-check=error -I${srcdir}/$subdir -al" run_dump_test "sse-noavx" @@ -261,6 +262,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-sse2avx" run_list_test "x86-64-inval-avx" "-al" run_dump_test "x86-64-sse-check" + run_dump_test "x86-64-sse-check-none" run_dump_test "x86-64-sse-check-warn" run_list_test "x86-64-sse-check-error" "-msse-check=error -I${srcdir}/$subdir -al" run_dump_test "x86-64-sse-noavx" diff --git a/gas/testsuite/gas/i386/sse-check-none.d b/gas/testsuite/gas/i386/sse-check-none.d new file mode 100644 index 0000000..87189f6 --- /dev/null +++ b/gas/testsuite/gas/i386/sse-check-none.d @@ -0,0 +1,16 @@ +#as: -msse-check=error +#objdump: -dw +#name: i386 SSE check (.sse_check none) + +.*: file format .* + +Disassembly of section .text: + +0+ <_start>: +[ ]*[a-f0-9]+: 0f 58 ca addps %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f 58 ca addpd %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f d0 ca addsubpd %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f 38 01 ca phaddw %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f 38 15 c1 blendvpd %xmm0,%xmm1,%xmm0 +[ ]*[a-f0-9]+: 66 0f 38 37 c1 pcmpgtq %xmm1,%xmm0 +#pass diff --git a/gas/testsuite/gas/i386/sse-check-none.s b/gas/testsuite/gas/i386/sse-check-none.s new file mode 100644 index 0000000..336dd9f --- /dev/null +++ b/gas/testsuite/gas/i386/sse-check-none.s @@ -0,0 +1,21 @@ +# Check SSE instructions + + .sse_check none + .text +_start: + +# SSE instruction + addps %xmm2,%xmm1 + +# SSE2 instruction + addpd %xmm2,%xmm1 + +# SSE3 instruction + addsubpd %xmm2,%xmm1 + +# SSSE3 instruction + phaddw %xmm2,%xmm1 + +# SSE4 instructions + blendvpd %xmm0,%xmm1,%xmm0 + pcmpgtq %xmm1,%xmm0 diff --git a/gas/testsuite/gas/i386/x86-64-sse-check-none.d b/gas/testsuite/gas/i386/x86-64-sse-check-none.d new file mode 100644 index 0000000..ef38d8a --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-sse-check-none.d @@ -0,0 +1,17 @@ +#source: sse-check-none.s +#as: -msse-check=error +#objdump: -dw +#name: x86-64 SSE check (.sse_check none) + +.*: file format .* + +Disassembly of section .text: + +0+ <_start>: +[ ]*[a-f0-9]+: 0f 58 ca addps %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f 58 ca addpd %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f d0 ca addsubpd %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f 38 01 ca phaddw %xmm2,%xmm1 +[ ]*[a-f0-9]+: 66 0f 38 15 c1 blendvpd %xmm0,%xmm1,%xmm0 +[ ]*[a-f0-9]+: 66 0f 38 37 c1 pcmpgtq %xmm1,%xmm0 +#pass |