diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-15 15:09:23 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-15 15:09:48 -0700 |
| commit | d4a0d5f959b88ffc23edc4593bc75b6168acaea9 (patch) | |
| tree | 0353583e171a4c9ac92f50b4976595c51d58c32f /src/Compilation.zig | |
| parent | ea4d2759a51f2805e8345fe85500feefef3f504c (diff) | |
| download | zig-d4a0d5f959b88ffc23edc4593bc75b6168acaea9.tar.gz zig-d4a0d5f959b88ffc23edc4593bc75b6168acaea9.zip | |
Sema: implement `@truncate` for SIMD vectors
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 5e02d8dba2..c3d349b527 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4513,8 +4513,6 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca const target = comp.getTarget(); const generic_arch_name = target.cpu.arch.genericName(); const use_stage1 = build_options.is_stage1 and comp.bin_file.options.use_stage1; - const stage2_x86_cx16 = target.cpu.arch == .x86_64 and - std.Target.x86.featureSetHas(target.cpu.features, .cx16); const zig_backend: std.builtin.CompilerBackend = blk: { if (use_stage1) break :blk .stage1; @@ -4540,8 +4538,6 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca \\pub const zig_backend = std.builtin.CompilerBackend.{}; \\/// Temporary until self-hosted supports the `cpu.arch` value. \\pub const stage2_arch: std.Target.Cpu.Arch = .{}; - \\/// Temporary until self-hosted can call `std.Target.x86.featureSetHas` at comptime. - \\pub const stage2_x86_cx16 = {}; \\ \\pub const output_mode = std.builtin.OutputMode.{}; \\pub const link_mode = std.builtin.LinkMode.{}; @@ -4557,7 +4553,6 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca build_options.version, std.zig.fmtId(@tagName(zig_backend)), std.zig.fmtId(@tagName(target.cpu.arch)), - stage2_x86_cx16, std.zig.fmtId(@tagName(comp.bin_file.options.output_mode)), std.zig.fmtId(@tagName(comp.bin_file.options.link_mode)), comp.bin_file.options.is_test, |
