-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Zig Version
0.14.0-dev.2198+e5f5229fd
Steps to Reproduce and Observed Behavior
imulr8r8.zig
:
export fn foo(a: i8) i8 {
return @mod(a, 1);
}
run zig build-lib -fno-llvm -fno-lld imulr8r8.zig
observe:
error(x86_64_encoder): no encoding found for: none imul r8 r8 none none
imulr8r8.zig:1:8: error: CodeGen failed to find a viable instruction. This is a bug in the Zig compiler.
export fn foo(a: i8) i8 {
~~~~~~~^~~~~~~~~~~~~~~~
Expected Behavior
That this function compiles
Metadata
Metadata
Assignees
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior