[llvm] [AArch64] Fold vector select with power-of-2 bit-test to CMTST+BSP (PR #209100)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 16 23:31:38 PDT 2026
================
@@ -0,0 +1,55 @@
+; Test: (X & Mask) == Mask, for a power-of-2 Mask, folds to CMTST
+; instead of AND+CMEQ when used as a select condition inside a BSL/BSP fold.
+; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=+neon < %s | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
----------------
davemgreen wrote:
I think the note usually should be the first line in the file, as it it used for the auto generate scripts.
https://github.com/llvm/llvm-project/pull/209100
More information about the llvm-commits
mailing list