authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-21 12:14:36-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-21 12:14:36-05:00
log6793af8d8b370cefc0a1fccbcf1c9fd1a24c7378
treea3e97d41bd91feceb4b144659d690b1a282c795a
parent327ad0ae89c168a5e035f92f86617a29697bf6d8
signature Commit is signed but in an unrecognized format.

these are not real cpu features


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

lib/std/target/x86.zig-24
...@@ -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,
...@@ -134,20 +131,6 @@ pub const all_features = blk: {...@@ -134,20 +131,6 @@ pub const all_features = blk: {
134 const len = @typeInfo(Feature).Enum.fields.len;131 const len = @typeInfo(Feature).Enum.fields.len;
135 std.debug.assert(len <= Cpu.Feature.Set.bit_count);132 std.debug.assert(len <= Cpu.Feature.Set.bit_count);
136 var result: [len]Cpu.Feature = undefined;133 var result: [len]Cpu.Feature = undefined;
137 result[@enumToInt(Feature.@"16bit_mode")] = .{
138 .index = @enumToInt(Feature.@"16bit_mode"),
139 .name = @tagName(Feature.@"16bit_mode"),
140 .llvm_name = "16bit-mode",
141 .description = "16-bit mode (i8086)",
142 .dependencies = featureSet(&[_]Feature{}),
143 };
144 result[@enumToInt(Feature.@"32bit_mode")] = .{
145 .index = @enumToInt(Feature.@"32bit_mode"),
146 .name = @tagName(Feature.@"32bit_mode"),
147 .llvm_name = "32bit-mode",
148 .description = "32-bit mode (80386)",
149 .dependencies = featureSet(&[_]Feature{}),
150 };
151 result[@enumToInt(Feature.@"3dnow")] = .{134 result[@enumToInt(Feature.@"3dnow")] = .{
152 .index = @enumToInt(Feature.@"3dnow"),135 .index = @enumToInt(Feature.@"3dnow"),
153 .name = @tagName(Feature.@"3dnow"),136 .name = @tagName(Feature.@"3dnow"),
...@@ -173,13 +156,6 @@ pub const all_features = blk: {...@@ -173,13 +156,6 @@ pub const all_features = blk: {
173 .description = "Support 64-bit instructions",156 .description = "Support 64-bit instructions",
174 .dependencies = featureSet(&[_]Feature{}),157 .dependencies = featureSet(&[_]Feature{}),
175 };158 };
176 result[@enumToInt(Feature.@"64bit_mode")] = .{
177 .index = @enumToInt(Feature.@"64bit_mode"),
178 .name = @tagName(Feature.@"64bit_mode"),
179 .llvm_name = "64bit-mode",
180 .description = "64-bit mode (x86_64)",
181 .dependencies = featureSet(&[_]Feature{}),
182 };
183 result[@enumToInt(Feature.adx)] = .{159 result[@enumToInt(Feature.adx)] = .{
184 .index = @enumToInt(Feature.adx),160 .index = @enumToInt(Feature.adx),
185 .name = @tagName(Feature.adx),161 .name = @tagName(Feature.adx),