From e2b7fbc46d08605bd2807678475e01be42e589e6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 23 Jul 2018 06:32:20 -0700 Subject: [PATCH] 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. --- gas/ChangeLog | 8 ++++++++ gas/testsuite/gas/i386/inval-avx512f.l | 3 +++ gas/testsuite/gas/i386/inval-avx512f.s | 2 ++ gas/testsuite/gas/i386/x86-64-inval-avx512f.l | 4 ++++ gas/testsuite/gas/i386/x86-64-inval-avx512f.s | 2 ++ 5 files changed, 19 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 39d627d8faf..c96e9eab4e5 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +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 diff --git a/gas/testsuite/gas/i386/inval-avx512f.l b/gas/testsuite/gas/i386/inval-avx512f.l index 2ee767a2dc0..b61a9050f5a 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 21698bd5af6..d5217769314 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 80d63013fd0..7aa4d5d1d89 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 2ef31fed11b..91bf562ccd2 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] -- 2.30.2