diff options
author | Aaron En Ye Shi <enye.shi@gmail.com> | 2020-12-01 15:46:19 +0000 |
---|---|---|
committer | Aaron En Ye Shi <enye.shi@gmail.com> | 2020-12-01 15:49:39 +0000 |
commit | cd5897d55908827faf3e16c505bd79732a8f6eb6 (patch) | |
tree | 79662da82c3d222292cfaa4ae4f1b54e6ecdd69e | |
parent | [x86] adjust cost model values for minnum/maxnum with fast-math-flags (diff) | |
download | llvm-project-cd5897d55908827faf3e16c505bd79732a8f6eb6.tar.gz llvm-project-cd5897d55908827faf3e16c505bd79732a8f6eb6.tar.bz2 llvm-project-cd5897d55908827faf3e16c505bd79732a8f6eb6.zip |
[HIP] Fix static-lib test CHECK bug
Fix hip test failures that were introduced by
previous changes to hip-toolchain-rdc-static-lib.hip
test. The .*lld.* is matching a longer string than
expected.
Differential Revision: https://reviews.llvm.org/D92342
-rw-r--r-- | clang/test/Driver/hip-toolchain-rdc-static-lib.hip | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/test/Driver/hip-toolchain-rdc-static-lib.hip b/clang/test/Driver/hip-toolchain-rdc-static-lib.hip index 533d3457d5b4..b698ec763249 100644 --- a/clang/test/Driver/hip-toolchain-rdc-static-lib.hip +++ b/clang/test/Driver/hip-toolchain-rdc-static-lib.hip @@ -47,7 +47,9 @@ // CHECK-NOT: "*.llvm-link" // CHECK-NOT: ".*opt" // CHECK-NOT: ".*llc" -// CHECK: [[LLD: ".*lld.*"]] {{.*}} "-o" "[[IMG_DEV1:.*out]]" [[A_BC1]] [[B_BC1]] +// CHECK: [[LLD: ".*lld.*"]] {{.*}} "-plugin-opt=-amdgpu-internalize-symbols" +// CHECK-SAME: "-plugin-opt=mcpu=gfx803" +// CHECK-SAME: "-o" "[[IMG_DEV1:.*out]]" [[A_BC1]] [[B_BC1]] // generate image for device side path on gfx900 // CHECK: [[CLANG]] "-cc1" "-triple" "amdgcn-amd-amdhsa" @@ -71,7 +73,9 @@ // CHECK-NOT: "*.llvm-link" // CHECK-NOT: ".*opt" // CHECK-NOT: ".*llc" -// CHECK: [[LLD]] {{.*}} "-o" "[[IMG_DEV2:.*out]]" [[A_BC2]] [[B_BC2]] +// CHECK: [[LLD]] {{.*}} "-plugin-opt=-amdgpu-internalize-symbols" +// CHECK-SAME: "-plugin-opt=mcpu=gfx900" +// CHECK-SAME: "-o" "[[IMG_DEV2:.*out]]" [[A_BC2]] [[B_BC2]] // combine images generated into hip fat binary object // CHECK: [[BUNDLER:".*clang-offload-bundler"]] "-type=o" |