Try to fix clang/test/Driver/cl-options.c on non-x86 hosts
authorHans Wennborg <hans@chromium.org>
Wed, 28 Apr 2021 09:56:58 +0000 (11:56 +0200)
committerHans Wennborg <hans@chromium.org>
Wed, 28 Apr 2021 09:57:09 +0000 (11:57 +0200)
The /QIntel-jcc-erratum flag only works when targeting x86,
so pass --target to the driver to do that also on non-x86 hosts.

clang/test/Driver/cl-options.c

index be90b3f..c74a6de 100644 (file)
 // 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"
 
 
 // RUN:     /openmp:experimental \
 // RUN:     /Qfast_transcendentals \
 // RUN:     /QIfist \
-// RUN:     /QIntel-jcc-erratum \
 // RUN:     /Qimprecise_fwaits \
 // RUN:     /Qpar \
 // RUN:     /Qpar-report:1 \