Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Had to update the TOSA tests since all floating point types are now
supported: llvm/llvm-project#91745
  • Loading branch information
mlevesquedion authored May 20, 2024
1 parent d5a22dd commit c44d9af
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ workspace(name = "stablehlo")

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

LLVM_COMMIT = "a6d7828f4c50c1ec7b0b5f61fe59d7a768175dcc"
LLVM_COMMIT = "1e5f29af81a5f6fda308074f6345b9fba4faa71c"

LLVM_SHA256 = "c09ec3020fb6b136064ff32f53ac07067b0f12ccbf016ac69965e4e38d61a9c0"
LLVM_SHA256 = "f31b9a08cb74cffd89a0bc87b6a7ef327b54bc67af25e1503683d40817b22f2a"

http_archive(
name = "llvm-raw",
Expand Down
2 changes: 1 addition & 1 deletion build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a6d7828f4c50c1ec7b0b5f61fe59d7a768175dcc
1e5f29af81a5f6fda308074f6345b9fba4faa71c
2 changes: 1 addition & 1 deletion stablehlo/conversions/tosa/tests/binary.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func.func @maximum(%arg0 : tensor<10xf32>, %arg1 : tensor<10xf32>) -> tensor<10x

// CHECK-LABEL: @maximum_f64
func.func @maximum_f64(%arg0 : tensor<10xf64>, %arg1 : tensor<10xf64>) -> tensor<10xf64> {
// CHECK: stablehlo.maximum
// CHECK: tosa.maximum
%0 = "stablehlo.maximum"(%arg0, %arg1) : (tensor<10xf64>, tensor<10xf64>) -> tensor<10xf64>
return %0 : tensor<10xf64>
}
Expand Down
3 changes: 1 addition & 2 deletions stablehlo/conversions/tosa/tests/nullary.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ func.func @constant() -> tensor<10xf32> {

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

0 comments on commit c44d9af

Please sign in to comment.