From: Hans Wennborg Date: Wed, 28 Apr 2021 09:56:58 +0000 (+0200) Subject: Try to fix clang/test/Driver/cl-options.c on non-x86 hosts X-Git-Tag: llvmorg-14-init~8225 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d37f2115d173a2c9117c6dbb4720dc7aefb9f42;p=platform%2Fupstream%2Fllvm.git 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. --- diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index be90b3f..c74a6de 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 \