[Mlir-commits] [mlir] [mlir][arith] adding comparison regression tests (PR #96974)

Jakub Kuderski llvmlistbot at llvm.org
Thu Jun 27 20:39:27 PDT 2024


================
@@ -0,0 +1,61 @@
+// Tests comparison operations.
+// These tests are intended to be target agnostic: they should yield the same results 
+// regardless of the target platform.
+
+// RUN: mlir-opt %s --convert-scf-to-cf --convert-cf-to-llvm --convert-vector-to-llvm \
+// RUN:             --convert-func-to-llvm --convert-arith-to-llvm | \
+// RUN:   mlir-cpu-runner -e entry -entry-point-result=void \
+// RUN:                   --shared-libs=%mlir_c_runner_utils | \
+// RUN:   FileCheck %s --match-full-lines
+
+func.func @signed_comparison_on_i1s() {
+    // signed comparisons on i1s
+    // slt 0 1 = false, sle 0 1 = false, sgt 0 1 = true, sge 0 1 = true
----------------
kuhar wrote:

Also here -- could you re-indent?

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


More information about the Mlir-commits mailing list