aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-10-24 12:08:26 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-10-25 04:28:30 -0400
commitb55377a5ab34ba17336d25a9336a3bc18f535c43 (patch)
tree1111a2b1f4f3f808a4f08b554c16be97be3d3b66 /src/Module.zig
parent030da45c8e8437d31e7443077f8f2493d334a7d1 (diff)
downloadzig-b55377a5ab34ba17336d25a9336a3bc18f535c43.tar.gz
zig-b55377a5ab34ba17336d25a9336a3bc18f535c43.zip
x86_64: pass more tests
* 128-bit integer multiplication with overflow * more instruction encodings used by std inline asm * implement the `try_ptr` air instruction * follow correct stack frame abi * enable full panic handler * enable stack traces
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 78304869c3..1f80669f2e 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -5846,7 +5846,8 @@ pub const Feature = enum {
pub fn backendSupportsFeature(mod: Module, feature: Feature) bool {
return switch (feature) {
.panic_fn => mod.comp.bin_file.options.target.ofmt == .c or
- mod.comp.bin_file.options.use_llvm,
+ mod.comp.bin_file.options.use_llvm or
+ mod.comp.bin_file.options.target.cpu.arch == .x86_64,
.panic_unwrap_error => mod.comp.bin_file.options.target.ofmt == .c or
mod.comp.bin_file.options.use_llvm,
.safety_check_formatted => mod.comp.bin_file.options.target.ofmt == .c or