[llvm] [AArch64][GlobalISel] Added support for neon right shifts (PR #170832)
Nathan Corbyn via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 16 03:16:38 PST 2025
================
@@ -1857,6 +1857,111 @@ bool AArch64LegalizerInfo::legalizeIntrinsic(LegalizerHelper &Helper,
return LowerBinOp(TargetOpcode::G_SAVGFLOOR);
case Intrinsic::aarch64_neon_srhadd:
return LowerBinOp(TargetOpcode::G_SAVGCEIL);
+ case Intrinsic::aarch64_neon_sqshrn: {
+ if (!MRI.getType(MI.getOperand(0).getReg()).isVector())
+ return false;
+ // Create right shift instruction. Get v. register the output is written
+ // to
----------------
cofibrant wrote:
I maybe would have said 'applied to' instead of 'taking in' but otherwise looks good
https://github.com/llvm/llvm-project/pull/170832
More information about the llvm-commits
mailing list