mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
fix std.Target.Arch.parseCpuFeatureSet unit test
This commit is contained in:
parent
3227aec848
commit
0c477f3c79
@ -1172,7 +1172,9 @@ pub const Target = union(enum) {
|
||||
};
|
||||
|
||||
test "parseCpuFeatureSet" {
|
||||
const set = try @as(Target.Arch, .x86_64).parseCpuFeatureSet("-sse,-avx,-cx8");
|
||||
const arch: Target.Arch = .x86_64;
|
||||
const baseline = arch.getBaselineCpuFeatures();
|
||||
const set = try arch.parseCpuFeatureSet(baseline.cpu, "-sse,-avx,-cx8");
|
||||
std.testing.expect(!Target.x86.featureSetHas(set, .sse));
|
||||
std.testing.expect(!Target.x86.featureSetHas(set, .avx));
|
||||
std.testing.expect(!Target.x86.featureSetHas(set, .cx8));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user