authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-04 15:16:44-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-04 15:16:44-05:00
log1530e82b6b67611e78caade2a31bcb536f212730
tree495a32ca706ac3f75d0aa3ef281e1f3100003ea9
parent73256dda91d0d5b3d13016d15f2c4465a69cd7d4
signaturelock-open Commit is signed but in an unrecognized format.

re-apply: these are not real CPU features

The commit 70ee818d21c44ec0031b997916694327eb9fc37f (update target CPUs and features with llvm10's data) accidentally reverted 6793af8d8b370cefc0a1fccbcf1c9fd1a24c7378. This un-reverts it.

1 files changed, 0 insertions(+), 18 deletions(-)

lib/std/target/x86.zig-18
...@@ -2,12 +2,9 @@ const std = @import("../std.zig");...@@ -2,12 +2,9 @@ const std = @import("../std.zig");
2const Cpu = std.Target.Cpu;2const Cpu = std.Target.Cpu;
33
4pub const Feature = enum {4pub const Feature = enum {
5 @"16bit_mode",
6 @"32bit_mode",
7 @"3dnow",5 @"3dnow",
8 @"3dnowa",6 @"3dnowa",
9 @"64bit",7 @"64bit",
10 @"64bit_mode",
11 adx,8 adx,
12 aes,9 aes,
13 avx,10 avx,
...@@ -138,16 +135,6 @@ pub const all_features = blk: {...@@ -138,16 +135,6 @@ pub const all_features = blk: {
138 const len = @typeInfo(Feature).Enum.fields.len;135 const len = @typeInfo(Feature).Enum.fields.len;
139 std.debug.assert(len <= Cpu.Feature.Set.needed_bit_count);136 std.debug.assert(len <= Cpu.Feature.Set.needed_bit_count);
140 var result: [len]Cpu.Feature = undefined;137 var result: [len]Cpu.Feature = undefined;
141 result[@enumToInt(Feature.@"16bit_mode")] = .{
142 .llvm_name = "16bit-mode",
143 .description = "16-bit mode (i8086)",
144 .dependencies = featureSet(&[_]Feature{}),
145 };
146 result[@enumToInt(Feature.@"32bit_mode")] = .{
147 .llvm_name = "32bit-mode",
148 .description = "32-bit mode (80386)",
149 .dependencies = featureSet(&[_]Feature{}),
150 };
151 result[@enumToInt(Feature.@"3dnow")] = .{138 result[@enumToInt(Feature.@"3dnow")] = .{
152 .llvm_name = "3dnow",139 .llvm_name = "3dnow",
153 .description = "Enable 3DNow! instructions",140 .description = "Enable 3DNow! instructions",
...@@ -167,11 +154,6 @@ pub const all_features = blk: {...@@ -167,11 +154,6 @@ pub const all_features = blk: {
167 .description = "Support 64-bit instructions",154 .description = "Support 64-bit instructions",
168 .dependencies = featureSet(&[_]Feature{}),155 .dependencies = featureSet(&[_]Feature{}),
169 };156 };
170 result[@enumToInt(Feature.@"64bit_mode")] = .{
171 .llvm_name = "64bit-mode",
172 .description = "64-bit mode (x86_64)",
173 .dependencies = featureSet(&[_]Feature{}),
174 };
175 result[@enumToInt(Feature.adx)] = .{157 result[@enumToInt(Feature.adx)] = .{
176 .llvm_name = "adx",158 .llvm_name = "adx",
177 .description = "Support ADX instructions",159 .description = "Support ADX instructions",