aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/amdgpu-toolchain.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-09-18 20:22:36 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-09-18 20:22:36 +0000
commita52a248ec8d38168dd15989ec6daacad1d43bdbb (patch)
tree422161334a0f5de650c6da46a77884848e5dffec /test/Driver/amdgpu-toolchain.c
parent7c8ac35f5584d1b4efd893caa46141fa3a2abacc (diff)
Fix test to pass when the directory name has lld in it.
CHECK-LABEL assumes that there is only one occurrence of the match. The output looks like: clang version 3.8.0 (trunk 247999) .... /path/to/build/dir/bin/clang-3.8 .... If the path contains lld, the second CHECK-LABEL matches it and we fail since there is no -cc1as between clang and lld. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/amdgpu-toolchain.c')
-rw-r--r--test/Driver/amdgpu-toolchain.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/Driver/amdgpu-toolchain.c b/test/Driver/amdgpu-toolchain.c
index d0f31e497e..5c131b3fd0 100644
--- a/test/Driver/amdgpu-toolchain.c
+++ b/test/Driver/amdgpu-toolchain.c
@@ -1,6 +1,5 @@
// RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
-// AS_LINK-LABEL: clang
-// AS_LINK: "-cc1as"
-// AS_LINK-LABEL: lld
-// AS_LINK: "-flavor" "gnu" "-target" "amdgcn--amdhsa"
-// REQUIRES: clang-driver
+// AS_LINK: /clang
+// AS_LINK-SAME: "-cc1as"
+// AS_LINK: /lld
+// AS_LINK-SAME: "-flavor" "gnu" "-target" "amdgcn--amdhsa"