From b55377a5ab34ba17336d25a9336a3bc18f535c43 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Tue, 24 Oct 2023 12:08:26 -0400 Subject: 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 --- src/Module.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Module.zig') 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 -- cgit v1.2.3