This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] PR gas/16140: gas generates nopl and nopw instructions with -march=k6_2
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Fri, 8 Nov 2013 09:45:41 -0800
- Subject: [PATCH] PR gas/16140: gas generates nopl and nopw instructions with -march=k6_2
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in this patch to master and 2.24 to remove CpuNop from
CPU_K6_2_FLAGS.
H.J.
---
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 15266ff..a3ceb28 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/16140
+ * i386-gen.c (cpu_flag_init): Remove CpuNop from CPU_K6_2_FLAGS.
+ * i386-init.h: Regenerated.
+
2013-11-05 Yufeng Zhang <yufeng.zhang@arm.com>
* aarch64-opc.c (F_DEPRECATED): New macro.
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 0bf14d9..62cfbad 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -81,7 +81,7 @@ static initializer cpu_flag_init[] =
{ "CPU_K6_FLAGS",
"Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|CpuSYSCALL|Cpu387|CpuMMX" },
{ "CPU_K6_2_FLAGS",
- "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|CpuSYSCALL|Cpu387|CpuNop|CpuMMX|Cpu3dnow" },
+ "Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|CpuSYSCALL|Cpu387|CpuMMX|Cpu3dnow" },
{ "CPU_ATHLON_FLAGS",
"Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuSYSCALL|Cpu387|Cpu687|CpuNop|CpuMMX|Cpu3dnow|Cpu3dnowA" },
{ "CPU_K8_FLAGS",
diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h
index fa638a9..579bb13 100644
--- a/opcodes/i386-init.h
+++ b/opcodes/i386-init.h
@@ -134,7 +134,7 @@
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
#define CPU_K6_2_FLAGS \
- { { 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, \
+ { { 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
--
1.8.3.1