[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / clang / test / Driver / baremetal-multilib-layered.yaml
blob6671d9d672f58e918d827f50c705d2dbc92da9d5
1 # REQUIRES: shell
2 # UNSUPPORTED: system-windows
4 # This test demonstrates "layered" multilib in which more than one
5 # multilib is matched.
6 # For example a multilib containing only a no-exceptions libc++ could
7 # be layered on top of a multilib containing C libs. This avoids the
8 # need to duplicate the C library for every libc++ variant.
9 # However -fno-exceptions is not yet supported for multilib selection
10 # so we use a more contrived -mfloat-abi example instead.
12 # RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -x c++ %s -### -o %t.out 2>&1 \
13 # RUN:     --target=thumbv7m-none-eabi -mfloat-abi=softfp --sysroot= \
14 # RUN:   | FileCheck %s
15 # CHECK:      "-cc1" "-triple" "thumbv7m-unknown-none-eabi"
16 # CHECK-SAME: "-internal-isystem" "[[SYSROOT:[^"]*]]/bin/../lib/clang-runtimes/softfp/include/c++/v1"
17 # CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/soft/include/c++/v1"
18 # CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/softfp/include"
19 # CHECK-SAME: "-internal-isystem" "[[SYSROOT]]/bin/../lib/clang-runtimes/soft/include"
20 # CHECK-NEXT: "-L[[SYSROOT]]/bin/../lib/clang-runtimes/softfp/lib"
21 # CHECK-SAME: "-L[[SYSROOT]]/bin/../lib/clang-runtimes/soft/lib"
23 # RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -print-multi-directory 2>&1 \
24 # RUN:     --target=arm-none-eabi -mfloat-abi=softfp --sysroot= \
25 # RUN:   | FileCheck --check-prefix=CHECK-PRINT-MULTI-DIRECTORY %s
26 # CHECK-PRINT-MULTI-DIRECTORY:      soft
27 # CHECK-PRINT-MULTI-DIRECTORY-NEXT: softfp
29 ---
30 MultilibVersion: 1.0
31 Variants:
32 - Dir: soft
33   Flags: [-mfloat-abi=soft]
34 - Dir: softfp
35   Flags: [-mfloat-abi=softfp]
36 Mappings:
37 - Match: -mfloat-abi=softfp
38   Flags: [-mfloat-abi=soft]
39 ...