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");
22const Cpu = std.Target.Cpu;
33
44pub const Feature = enum {
5 @"16bit_mode",
6 @"32bit_mode",
75 @"3dnow",
86 @"3dnowa",
97 @"64bit",
10 @"64bit_mode",
118 adx,
129 aes,
1310 avx,
......@@ -138,16 +135,6 @@ pub const all_features = blk: {
138135 const len = @typeInfo(Feature).Enum.fields.len;
139136 std.debug.assert(len <= Cpu.Feature.Set.needed_bit_count);
140137 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 };
151138 result[@enumToInt(Feature.@"3dnow")] = .{
152139 .llvm_name = "3dnow",
153140 .description = "Enable 3DNow! instructions",
......@@ -167,11 +154,6 @@ pub const all_features = blk: {
167154 .description = "Support 64-bit instructions",
168155 .dependencies = featureSet(&[_]Feature{}),
169156 };
170 result[@enumToInt(Feature.@"64bit_mode")] = .{
171 .llvm_name = "64bit-mode",
172 .description = "64-bit mode (x86_64)",
173 .dependencies = featureSet(&[_]Feature{}),
174 };
175157 result[@enumToInt(Feature.adx)] = .{
176158 .llvm_name = "adx",
177159 .description = "Support ADX instructions",