[clang] 2d37f21 - Try to fix clang/test/Driver/cl-options.c on non-x86 hosts
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 28 02:57:49 PDT 2021
Author: Hans Wennborg
Date: 2021-04-28T11:57:09+02:00
New Revision: 2d37f2115d173a2c9117c6dbb4720dc7aefb9f42
URL: https://github.com/llvm/llvm-project/commit/2d37f2115d173a2c9117c6dbb4720dc7aefb9f42
DIFF: https://github.com/llvm/llvm-project/commit/2d37f2115d173a2c9117c6dbb4720dc7aefb9f42.diff
LOG: Try to fix clang/test/Driver/cl-options.c on non-x86 hosts
The /QIntel-jcc-erratum flag only works when targeting x86,
so pass --target to the driver to do that also on non-x86 hosts.
Added:
Modified:
clang/test/Driver/cl-options.c
Removed:
################################################################################
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index be90b3fc6cc2..c74a6de1e625 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -299,7 +299,7 @@
// RUN: %clang_cl /d1PP -### -- %s 2>&1 | FileCheck -check-prefix=d1PP %s
// d1PP: -dD
-// RUN: %clang_cl /c /QIntel-jcc-erratum -### -- %s 2>&1 | FileCheck -check-prefix=jcceratum %s
+// RUN: %clang_cl --target=i686-pc-windows-msvc /c /QIntel-jcc-erratum -### -- %s 2>&1 | FileCheck -check-prefix=jcceratum %s
// jcceratum: "-mllvm" "-x86-branches-within-32B-boundaries"
@@ -471,7 +471,6 @@
// RUN: /openmp:experimental \
// RUN: /Qfast_transcendentals \
// RUN: /QIfist \
-// RUN: /QIntel-jcc-erratum \
// RUN: /Qimprecise_fwaits \
// RUN: /Qpar \
// RUN: /Qpar-report:1 \
More information about the cfe-commits
mailing list