[clang] 547ee1c - clang: Fix x86-no-gather-no-scatter.cpp on macOS after 993bdb047c90e9
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 18 06:46:20 PDT 2023
Author: Nico Weber
Date: 2023-08-18T09:46:11-04:00
New Revision: 547ee1c81fceaabcb7064ed525f11f9e94083f56
URL: https://github.com/llvm/llvm-project/commit/547ee1c81fceaabcb7064ed525f11f9e94083f56
DIFF: https://github.com/llvm/llvm-project/commit/547ee1c81fceaabcb7064ed525f11f9e94083f56.diff
LOG: clang: Fix x86-no-gather-no-scatter.cpp on macOS after 993bdb047c90e9
On macOS, files are usually below `/Users/...` and clang-cl treats
that as the `/U` flag followed by something instead of as a path.
Put `--` in front of `%s` to make it treat it as a patch, like in
all other tests.
The failure without this change:
x86-no-gather-no-scatter.cpp:4:14: error: NOGATHER: expected string not found in input
// NOGATHER: "-target-feature" "+prefer-no-gather"
^
<stdin>:5:44: note: possible intended match here
clang: warning: 'x86-no-gather-no-scatter.cpp' treated as the '/U' option [-Wslash-u-filename]
^
Added:
Modified:
clang/test/Driver/x86-no-gather-no-scatter.cpp
Removed:
################################################################################
diff --git a/clang/test/Driver/x86-no-gather-no-scatter.cpp b/clang/test/Driver/x86-no-gather-no-scatter.cpp
index 2e8f4615b84636..63611227bd5839 100644
--- a/clang/test/Driver/x86-no-gather-no-scatter.cpp
+++ b/clang/test/Driver/x86-no-gather-no-scatter.cpp
@@ -1,8 +1,8 @@
/// Tests -mno-gather and -mno-scatter
// RUN: %clang -target x86_64-unknown-linux-gnu -c -mno-gather -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
-// RUN: %clang_cl --target=x86_64-windows -c /Qgather- -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
+// RUN: %clang_cl --target=x86_64-windows -c /Qgather- -### -- %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
// NOGATHER: "-target-feature" "+prefer-no-gather"
// RUN: %clang -target x86_64-unknown-linux-gnu -c -mno-scatter -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
-// RUN: %clang_cl --target=x86_64-windows -c /Qscatter- -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
+// RUN: %clang_cl --target=x86_64-windows -c /Qscatter- -### -- %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
// NOSCATTER: "-target-feature" "+prefer-no-scatter"
More information about the cfe-commits
mailing list