[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,130 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
+
+define i8 @scmp.8.8(i8 %x, i8 %y) nounwind {
----------------
nikic wrote:

Here also signext/zeroext.

It also looks like the tests here regressed with the new expansion. Should probably implement the TLI hook for s390x as well?

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


More information about the llvm-commits mailing list