x86: Add a test for missing broadcast

For

	.intel_syntax noprefix
	vcvtps2qq xmm0, DWORD PTR [rax]

we should get

Error: broadcast is needed for operand of such type for `vcvtps2qq'

	* testsuite/gas/i386/inval-avx512f.s: Add a test for missing
	broadcast.
	* testsuite/gas/i386/x86-64-inval-avx512f.s: Likewise.
	* testsuite/gas/i386/inval-avx512f.l: Updated.
	* testsuite/gas/i386/x86-64-inval-avx512f.l: Likewise.
This commit is contained in:
H.J. Lu 2018-07-23 06:32:20 -07:00
parent c265869848
commit e2b7fbc46d
5 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2018-07-23 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/gas/i386/inval-avx512f.s: Add a test for missing
broadcast.
* testsuite/gas/i386/x86-64-inval-avx512f.s: Likewise.
* testsuite/gas/i386/inval-avx512f.l: Updated.
* testsuite/gas/i386/x86-64-inval-avx512f.l: Likewise.
2018-07-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (i386_error): Remove

View File

@ -100,6 +100,7 @@
.*:155: Error: .*vaddpd.*
.*:156: Error: .*vaddpd.*
.*:157: Error: .*vaddpd.*
.*:159: Error: .*vcvtps2qq.*
GAS LISTING .*
@ -282,3 +283,5 @@ GAS LISTING .*
#...
[ ]*156[ ]+vaddpd xmm2, xmm1, QWORD PTR \[eax\]\{1to8\}
[ ]*157[ ]+vaddpd xmm2, xmm1, QWORD PTR \[eax\]\{1to16\}
[ ]*158[ ]*
[ ]*159[ ]+vcvtps2qq xmm0, DWORD PTR \[eax\]

View File

@ -155,3 +155,5 @@ _start:
vaddpd xmm2, xmm1, QWORD PTR [eax]{1to4}
vaddpd xmm2, xmm1, QWORD PTR [eax]{1to8}
vaddpd xmm2, xmm1, QWORD PTR [eax]{1to16}
vcvtps2qq xmm0, DWORD PTR [eax]

View File

@ -38,6 +38,7 @@
.*:52: Error: .*
.*:55: Error: .*
.*:56: Error: .*
.*:58: Error: .*
GAS LISTING .*
@ -97,3 +98,6 @@ GAS LISTING .*
[ ]*54[ ]+\.intel_syntax noprefix
[ ]*55[ ]+vaddps zmm2\{rcx\}, zmm1, zmm0
[ ]*56[ ]+vaddps zmm2\{z\}, zmm1, zmm0
[ ]*57[ ]*
GAS LISTING .*
[ ]*58[ ]+vcvtps2qq xmm0, DWORD PTR \[rax\]

View File

@ -54,3 +54,5 @@ _start:
.intel_syntax noprefix
vaddps zmm2{rcx}, zmm1, zmm0
vaddps zmm2{z}, zmm1, zmm0
vcvtps2qq xmm0, DWORD PTR [rax]