[Mlir-commits] [mlir] [mlir][tosa] Add input_unsigned attribute to CAST (PR #215838)

Maddy Dunn llvmlistbot at llvm.org
Mon Aug 17 03:21:19 PDT 2026


================
@@ -189,13 +189,26 @@ func.func @test_transition_from_i64(%arg0: tensor<1xi64>) -> tensor<1xi32> {
   // COMMON: %[[IDENTITY2:.*]] = tosa.identity %[[IDENTITY1]] : (tensor<1xi32>) -> tensor<1xi32>
   %1 = tosa.identity %0 : (tensor<1xi64>) -> tensor<1xi64>
   // COMMON: %[[OUT_CAST:.*]] = tosa.cast %[[IDENTITY2]] : (tensor<1xi32>) -> tensor<1xi32>
-  %2 = tosa.cast %1 : (tensor<1xi64>) -> tensor<1xi32>
+  %2 = tosa.cast %1 {input_unsigned = false} : (tensor<1xi64>) -> tensor<1xi32>
   // COMMON: return %[[OUT_CAST]] : tensor<1xi32>
   return %2 : tensor<1xi32>
 }
 
 // -----
 
+func.func @test_transition_from_i64_input_unsigned(%arg0: tensor<1xui64>) -> tensor<1xui64> {
----------------
maddun01 wrote:

Good spot, done

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


More information about the Mlir-commits mailing list