[llvm] [GlobalIsel] Add G_SCMP and G_UCMP instructions (PR #98894)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 12:42:08 PDT 2024
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/98894 at github.com>
================
@@ -0,0 +1,26 @@
+# RUN: not --crash llc -verify-machineinstrs -run-pass none -mtriple=arm64 -o /dev/null %s 2>&1 | FileCheck %s
+# REQUIRES: aarch64-registered-target
+
+---
+name: test_uscmp
+body: |
+ bb.0:
+
+ %12:_(p0) = G_IMPLICIT_DEF
+ %13:_(p0) = G_IMPLICIT_DEF
+ ; CHECK: Generic scmp/ucmp does not support pointers
+ %14:_(p0) = G_SCMP %12, %13
----------------
arsenm wrote:
Checking the operands separately from the result would be better
https://github.com/llvm/llvm-project/pull/98894
More information about the llvm-commits
mailing list