clang: Fix tests after 7f78e409d028 if clang is not called clang-13
authorNico Weber <thakis@chromium.org>
Mon, 10 May 2021 12:47:28 +0000 (08:47 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 10 May 2021 12:49:26 +0000 (08:49 -0400)
We might release a new version at some point after all.
In fact, use the same pattern the other CHECK lines in this test
use, for consistency.

clang/test/Driver/amdgpu-openmp-toolchain.c

index 12067c4..e4b89dc 100644 (file)
@@ -73,4 +73,4 @@
 // CHECK-C: "x86_64-unknown-linux-gnu" - "offload bundler"
 
 // RUN:   %clang -### --target=x86_64-unknown-linux-gnu -emit-llvm -S -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx803 -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-EMIT-LLVM-IR
-// CHECK-EMIT-LLVM-IR: {{.*}}clang-13" "-cc1" "-triple" "amdgcn-amd-amdhsa"{{.*}}"-emit-llvm"
+// CHECK-EMIT-LLVM-IR: clang{{.*}}"-cc1"{{.*}}"-triple" "amdgcn-amd-amdhsa"{{.*}}"-emit-llvm"