Bug 20141 - .arch .avx512f doesn't enable upper 16 vector registers
Summary: .arch .avx512f doesn't enable upper 16 vector registers
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.27
: P2 normal
Target Milestone: 2.27
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-24 19:01 UTC by H.J. Lu
Modified: 2016-05-25 22:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2016-05-24 19:01:57 UTC
[hjl@gnu-6 tmp]$ cat b.s
.arch corei7
.arch .avx512f
vmovntdq	%zmm16, (%rcx)
[hjl@gnu-6 tmp]$ gcc -c b.s
b.s: Assembler messages:
b.s:3: Error: bad register name `%zmm16'
[hjl@gnu-6 tmp]$ 

There should be no error.
Comment 1 cvs-commit@gcc.gnu.org 2016-05-25 17:54:51 UTC
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:

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

commit f1360d5830fc7695cd26214257c62f34b73070c8
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed May 25 10:49:25 2016 -0700

    Enable VREX for AVX512 directives
    
    Enable VREX for AVX512 instructions with upper 16 vector registers.
    
    gas/
    
    	PR gas/20141
    	* testsuite/gas/i386/i386.exp: Run x86-64-pr20141.
    	* testsuite/gas/i386/x86-64-pr20141.d: New file.
    	* testsuite/gas/i386/x86-64-pr20141.s: Likewise.
    
    opcodes/
    
    	PR gas/20141
    	* i386-gen.c (cpu_flag_init): Add CpuVREX to CPU_AVX512F_FLAGS,
    	CPU_AVX512CD_FLAGS, CPU_AVX512ER_FLAGS and CPU_AVX512PF_FLAGS.
    	* i386-init.h: Regenerated.
Comment 2 H.J. Lu 2016-05-25 22:37:22 UTC
Fixed for 2.27.