clang: Fix x86-no-gather-no-scatter.cpp on macOS after 993bdb047c90e9
authorNico Weber <thakis@chromium.org>
Fri, 18 Aug 2023 13:44:09 +0000 (09:44 -0400)
committerTobias Hieta <tobias@hieta.se>
Fri, 25 Aug 2023 07:33:41 +0000 (09:33 +0200)
commitdcb7bcff276664c12e1eb05e19e3e845a76b7116
tree607b89bdc086347f57708d4e2cbdc76bb39a3cd3
parent1856972dfe1d9871697af131759ab1e70402c847
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]
                                               ^

(cherry picked from commit 547ee1c81fceaabcb7064ed525f11f9e94083f56)
clang/test/Driver/x86-no-gather-no-scatter.cpp