[Bug gas/22352] New: GAS doesn't complain about same register used for destination and index in AVX512 gather insn when destination is XMM

2017-10-26 Thread craig.topper at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22352

Bug ID: 22352
   Summary: GAS doesn't complain about same register used for
destination and index in AVX512 gather insn when
destination is XMM
   Product: binutils
   Version: 2.30 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: craig.topper at gmail dot com
  Target Milestone: ---

I think some cases were missed from the fix for bug 16489. This instruction
doesn't emit a warning

 vpgatherqd (%r14, %ymm11,8), %xmm11 {%k1}

while this instruction does emit a warning

 vpgatherqd (%r14, %zmm11,8), %ymm11 {%k1}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/22352] GAS doesn't complain about same register used for destination and index in AVX512 gather insn when destination is XMM

2017-10-26 Thread craig.topper at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22352

Craig Topper  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com,
   ||michael.v.zolotukhin@gmail.
   ||com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/22352] GAS doesn't complain about same register used for destination and index in AVX512 gather insn when destination is XMM

2017-10-26 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22352

--- Comment #1 from H.J. Lu  ---
(In reply to Craig Topper from comment #0)
> I think some cases were missed from the fix for bug 16489. This instruction
> doesn't emit a warning
> 
>  vpgatherqd (%r14, %ymm11,8), %xmm11 {%k1}

This was added later and check wasn't updated.  I will fix it.

> while this instruction does emit a warning
> 
>  vpgatherqd (%r14, %zmm11,8), %ymm11 {%k1}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/22352] GAS doesn't complain about same register used for destination and index in AVX512 gather insn when destination is XMM

2017-10-26 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22352

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.30

--- Comment #3 from H.J. Lu  ---
Fixed for 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/22352] GAS doesn't complain about same register used for destination and index in AVX512 gather insn when destination is XMM

2017-10-26 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22352

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=514f60231cb5a0a070712729a7c29447cae86453

commit 514f60231cb5a0a070712729a7c29447cae86453
Author: H.J. Lu 
Date:   Thu Oct 26 11:16:41 2017 -0700

x86: Check invalid XMM register in AVX512 gathers

Extend invalid register check for AVX512 gathers to XMM register.

PR gas/22352
* config/tc-i386.c (check_VecOperands): Also check XMM register
for invalid register in AVX512 gathers.
* testsuite/gas/i386/vgather-check.s: Add tests for AVX512
gathers with XMM register.
* testsuite/gas/i386/x86-64-vgather-check.s: Likewise.
* testsuite/gas/i386/vgather-check-error.l: Updated.
* testsuite/gas/i386/vgather-check-none.d: Likewise.
* testsuite/gas/i386/vgather-check-warn.d: Likewise.
* testsuite/gas/i386/vgather-check-warn.e: Likewise.
* testsuite/gas/i386/vgather-check.d: Likewise.
* testsuite/gas/i386/x86-64-vgather-check-error.l: Likewise.
* testsuite/gas/i386/x86-64-vgather-check-none.d: Likewise.
* testsuite/gas/i386/x86-64-vgather-check-warn.d: Likewise.
* testsuite/gas/i386/x86-64-vgather-check-warn.e: Likewise.
* testsuite/gas/i386/x86-64-vgather-check.d: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils