[llvm] [ARM] Copy (SELECT_CC setgt, iN lhs, -1, 1, -1) -> (OR (ASR lhs, N-1), 1 from AArch64 to ARM (PR #146561)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 03:37:05 PDT 2025


================
@@ -0,0 +1,136 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=armv7a < %s | FileCheck %s --check-prefix=ARM
+; RUN: llc -mtriple=armv6m < %s | FileCheck %s --check-prefix=THUMB
+; RUN: llc -mtriple=armv7m < %s | FileCheck %s --check-prefix=THUMB2
----------------
davemgreen wrote:

Can you add a thumbv8.1m.main run line too? It should enable csel/csinc/csneg/csinv instrunctions, but can use the same THUMB2 checks if they are always the same now.

https://github.com/llvm/llvm-project/pull/146561


More information about the llvm-commits mailing list