[llvm] [RISCV] Add new tests for RISCV zicond extension (PR #143580)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 07:16:54 PDT 2025


================
@@ -0,0 +1,181 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=riscv32 -O2 -verify-machineinstrs -mattr=+b,+zicond < %s | FileCheck %s -check-prefix=RV32ZICOND
+; RUN: llc -mtriple=riscv64 -O2 -verify-machineinstrs -mattr=+b,+zicond < %s | FileCheck %s -check-prefix=RV64ZICOND
+
+; (and (icmp x. 0, ne), (icmp y, 0, ne)) -> (czero.eqz (icmp x, 0, ne), y)
----------------
mgudim wrote:

condition is the last operand of czero.eqz

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


More information about the llvm-commits mailing list