Skip to content

Commit

Permalink
Implement ptr_mask intrinsic in cg gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin authored and antoyo committed Feb 28, 2023
1 parent b3f2942 commit a7f6e7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/intrinsic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
return;
}

sym::ptr_mask => self.and(args[0].immediate(), args[1].immediate()),

_ if name_str.starts_with("simd_") => {
match generic_simd_intrinsic(self, name, callee_ty, args, ret_ty, llret_ty, span) {
Ok(llval) => llval,
Expand Down

0 comments on commit a7f6e7e

Please sign in to comment.