Skip to content

Commit c44d9af

Browse files
author
mlevesquedion
authored
Had to update the TOSA tests since all floating point types are now supported: llvm/llvm-project#91745
1 parent d5a22dd commit c44d9af

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

WORKSPACE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ workspace(name = "stablehlo")
1717

1818
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919

20-
LLVM_COMMIT = "a6d7828f4c50c1ec7b0b5f61fe59d7a768175dcc"
20+
LLVM_COMMIT = "1e5f29af81a5f6fda308074f6345b9fba4faa71c"
2121

22-
LLVM_SHA256 = "c09ec3020fb6b136064ff32f53ac07067b0f12ccbf016ac69965e4e38d61a9c0"
22+
LLVM_SHA256 = "f31b9a08cb74cffd89a0bc87b6a7ef327b54bc67af25e1503683d40817b22f2a"
2323

2424
http_archive(
2525
name = "llvm-raw",

build_tools/llvm_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a6d7828f4c50c1ec7b0b5f61fe59d7a768175dcc
1+
1e5f29af81a5f6fda308074f6345b9fba4faa71c

stablehlo/conversions/tosa/tests/binary.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func.func @maximum(%arg0 : tensor<10xf32>, %arg1 : tensor<10xf32>) -> tensor<10x
155155

156156
// CHECK-LABEL: @maximum_f64
157157
func.func @maximum_f64(%arg0 : tensor<10xf64>, %arg1 : tensor<10xf64>) -> tensor<10xf64> {
158-
// CHECK: stablehlo.maximum
158+
// CHECK: tosa.maximum
159159
%0 = "stablehlo.maximum"(%arg0, %arg1) : (tensor<10xf64>, tensor<10xf64>) -> tensor<10xf64>
160160
return %0 : tensor<10xf64>
161161
}

stablehlo/conversions/tosa/tests/nullary.mlir

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ func.func @constant() -> tensor<10xf32> {
99

1010
// CHECK-LABEL: @constant_f64
1111
func.func @constant_f64() -> tensor<10xf64> {
12-
// TOSA does not support 64-bit types, so this should not legalize.
13-
// CHECK: stablehlo.constant
12+
// CHECK: tosa.const
1413
%0 = stablehlo.constant dense<0.000000e+00> : tensor<10xf64>
1514
return %0 : tensor<10xf64>
1615
}

0 commit comments

Comments
 (0)