[Mlir-commits] [mlir] [mlir][tosa] Add input_unsigned attribute to CAST (PR #215838)
Luke Hutton
llvmlistbot at llvm.org
Mon Aug 17 01:56:09 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> {
----------------
lhutton1 wrote:
nit: Missing a check-label
https://github.com/llvm/llvm-project/pull/215838
More information about the Mlir-commits
mailing list