[llvm] [SelectionDAG] Expand [US]CMP using arithmetic on boolean values instead of selects (PR #98774)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 01:14:05 PDT 2024


================
@@ -0,0 +1,108 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc --mtriple=loongarch64 -mattr=+d --verify-machineinstrs < %s | FileCheck %s
+
+define i8 @scmp.8.8(i8 %x, i8 %y) nounwind {
----------------
nikic wrote:

Same here, loongarch64 also uses signext/zeroext.

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


More information about the llvm-commits mailing list