diff options
author | John-Mark Gurney <jmg@FreeBSD.org> | 2013-02-19 21:35:17 +0000 |
---|---|---|
committer | John-Mark Gurney <jmg@FreeBSD.org> | 2013-02-19 21:35:17 +0000 |
commit | c9ad52275536cc08e683ebbfcb958340104e3ff1 (patch) | |
tree | 01f357c0c9d87373e8f3b34763ea44d82fa08dca /contrib/binutils/gas | |
parent | 0a7a780eee27bfb92b03e34899de5e1e4b82b4d5 (diff) | |
download | src-c9ad52275536cc08e683ebbfcb958340104e3ff1.tar.gz src-c9ad52275536cc08e683ebbfcb958340104e3ff1.zip |
add support for AES and PCLMULQDQ instructions to binutils...
Thanks to Mike Belopuhov for the pointer to the OpenBSD patch, though
OpenBSD's gcc is very different that it only helped w/ where to modify,
not how... Thanks to jhb for some early reviews...
Reviewed by: imp, kib
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=247012
Diffstat (limited to 'contrib/binutils/gas')
-rw-r--r-- | contrib/binutils/gas/config/tc-i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/binutils/gas/config/tc-i386.c b/contrib/binutils/gas/config/tc-i386.c index 9af47c56e9d1..5ba2ce29c2b0 100644 --- a/contrib/binutils/gas/config/tc-i386.c +++ b/contrib/binutils/gas/config/tc-i386.c @@ -3981,7 +3981,7 @@ output_insn (void) SSE4 instructions have 3 bytes. We may use one more higher byte to specify a prefix the instruction requires. Exclude instructions which are in both SSE4 and ABM. */ - if ((i.tm.cpu_flags & (CpuSSSE3 | CpuSSE4)) != 0 + if ((i.tm.cpu_flags & (CpuSSSE3 | CpuSSE4 | CpuAES | CpuPCLMUL)) != 0 && (i.tm.cpu_flags & CpuABM) == 0) { if (i.tm.base_opcode & 0xff000000) @@ -4033,7 +4033,7 @@ output_insn (void) } else { - if ((i.tm.cpu_flags & (CpuSSSE3 | CpuSSE4)) != 0 + if ((i.tm.cpu_flags & (CpuSSSE3 | CpuSSE4 | CpuAES | CpuPCLMUL)) != 0 && (i.tm.cpu_flags & CpuABM) == 0) { p = frag_more (3); |