From d6067db06267e37dec65202667741bc1b63fe980 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 29 Oct 2021 17:48:34 -0700 Subject: stage2: implement `@popCount` for non-vectors --- src/codegen/c.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/codegen/c.zig') diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 3ab74a85be..8e046264aa 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -1107,6 +1107,7 @@ fn genBody(f: *Function, body: []const Air.Inst.Index) error{ AnalysisFail, OutO .get_union_tag => try airGetUnionTag(f, inst), .clz => try airBuiltinCall(f, inst, "clz"), .ctz => try airBuiltinCall(f, inst, "ctz"), + .popcount => try airBuiltinCall(f, inst, "popcount"), .int_to_float, .float_to_int, -- cgit v1.2.3