aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/CodeGen.zig
diff options
context:
space:
mode:
authorDavid Rubin <87927264+Rexicon226@users.noreply.github.com>2024-05-22 08:51:16 -0700
committerGitHub <noreply@github.com>2024-05-22 10:51:16 -0500
commita7de02e05216db9a04e438703ddf1b6b12f3fbef (patch)
treebf70046bbcf24c00bf201c0638f2f90543a62df5 /src/arch/x86_64/CodeGen.zig
parented75f62568f64c0d3859aab35aaf5289c3f07026 (diff)
downloadzig-a7de02e05216db9a04e438703ddf1b6b12f3fbef.tar.gz
zig-a7de02e05216db9a04e438703ddf1b6b12f3fbef.zip
implement `@expect` builtin (#19658)
* implement `@expect` * add docs * add a second arg for expected bool * fix typo * move `expect` to use BinOp * update to newer langref format
Diffstat (limited to 'src/arch/x86_64/CodeGen.zig')
-rw-r--r--src/arch/x86_64/CodeGen.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index cc6e014080..4ecb39611f 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -2014,6 +2014,8 @@ fn genBody(self: *Self, body: []const Air.Inst.Index) InnerError!void {
.abs => try self.airAbs(inst),
+ .expect => unreachable,
+
.add_with_overflow => try self.airAddSubWithOverflow(inst),
.sub_with_overflow => try self.airAddSubWithOverflow(inst),
.mul_with_overflow => try self.airMulWithOverflow(inst),