Skip to content

Commit

Permalink
[CIR][CIRGen][Builtin][Neon] Lower neon_vhsub_v, neon_vhsubq_v (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghehg authored Nov 11, 2024
1 parent e6b2808 commit f395453
Show file tree
Hide file tree
Showing 2 changed files with 318 additions and 253 deletions.
7 changes: 6 additions & 1 deletion clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,12 @@ mlir::Value CIRGenFunction::emitCommonNeonBuiltinExpr(
: "aarch64.neon.shadd";
break;
}

case NEON::BI__builtin_neon_vhsub_v:
case NEON::BI__builtin_neon_vhsubq_v: {
intrincsName = (intrinicId != altLLVMIntrinsic) ? "aarch64.neon.uhsub"
: "aarch64.neon.shsub";
break;
}
case NEON::BI__builtin_neon_vqmovn_v: {
intrincsName = (intrinicId != altLLVMIntrinsic) ? "aarch64.neon.uqxtn"
: "aarch64.neon.sqxtn";
Expand Down
Loading

0 comments on commit f395453

Please sign in to comment.