From: H.J. Lu Date: Mon, 23 Jul 2018 13:32:20 +0000 (-0700) Subject: x86: Add a test for missing broadcast X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~1292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2b7fbc46d08605bd2807678475e01be42e589e6;p=platform%2Fupstream%2Fbinutils.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 39d627d..c96e9ea 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,13 @@ 2018-07-23 H.J. Lu + * 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 + * config/tc-i386.c (i386_error): Remove broadcast_not_on_src_operand. (match_template): Likewse. diff --git a/gas/testsuite/gas/i386/inval-avx512f.l b/gas/testsuite/gas/i386/inval-avx512f.l index 2ee767a..b61a905 100644 --- a/gas/testsuite/gas/i386/inval-avx512f.l +++ b/gas/testsuite/gas/i386/inval-avx512f.l @@ -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\] diff --git a/gas/testsuite/gas/i386/inval-avx512f.s b/gas/testsuite/gas/i386/inval-avx512f.s index 21698bd..d521776 100644 --- a/gas/testsuite/gas/i386/inval-avx512f.s +++ b/gas/testsuite/gas/i386/inval-avx512f.s @@ -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] diff --git a/gas/testsuite/gas/i386/x86-64-inval-avx512f.l b/gas/testsuite/gas/i386/x86-64-inval-avx512f.l index 80d6301..7aa4d5d 100644 --- a/gas/testsuite/gas/i386/x86-64-inval-avx512f.l +++ b/gas/testsuite/gas/i386/x86-64-inval-avx512f.l @@ -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\] diff --git a/gas/testsuite/gas/i386/x86-64-inval-avx512f.s b/gas/testsuite/gas/i386/x86-64-inval-avx512f.s index 2ef31fe..91bf562 100644 --- a/gas/testsuite/gas/i386/x86-64-inval-avx512f.s +++ b/gas/testsuite/gas/i386/x86-64-inval-avx512f.s @@ -54,3 +54,5 @@ _start: .intel_syntax noprefix vaddps zmm2{rcx}, zmm1, zmm0 vaddps zmm2{z}, zmm1, zmm0 + + vcvtps2qq xmm0, DWORD PTR [rax]