[Mlir-commits] [mlir] [MLIR][NVVM] Fixed assertion failure for insufficient parsing validation of nvvm dialect PureSpecialRangeableRegisterOp (PR #163434)
Mehdi Amini
llvmlistbot at llvm.org
Tue Oct 14 12:29:52 PDT 2025
================
@@ -559,3 +559,13 @@ llvm.func @clusterlaunchcontrol_query_cancel_get_first_cta_id_invalid_return_typ
%res = nvvm.clusterlaunchcontrol.query.cancel query = get_first_cta_id_x, %try_cancel_response : i1
llvm.return
}
+
+
+// -----
+
+// Test for range validation - invalid range where lower == upper but not at extremes
+func.func @invalid_range_equal_bounds() {
+ // expected-error @below {{invalid range attribute: range must be a valid constant range}}
+ %0 = nvvm.read.ptx.sreg.warpsize range <i32, 32, 32> : i32
----------------
joker-eph wrote:
Can you please test the other cases that you test in the code?
https://github.com/llvm/llvm-project/pull/163434
More information about the Mlir-commits
mailing list