diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-29 17:48:34 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-29 17:49:02 -0700 |
| commit | d6067db06267e37dec65202667741bc1b63fe980 (patch) | |
| tree | a693698a60b30a7d0ca2764056858c8b74066cd7 /src/codegen/c.zig | |
| parent | 5ff01bd820ea08005a422f046ad5bbad663b0dab (diff) | |
| download | zig-d6067db06267e37dec65202667741bc1b63fe980.tar.gz zig-d6067db06267e37dec65202667741bc1b63fe980.zip | |
stage2: implement `@popCount` for non-vectors
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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, |
