[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / clang / test / Driver / rocm-detect.cl
blob2d693e2afb04e01cdeb7c5b49c081b971618dd6e
1 // Make sure the appropriate device specific library is available.
3 // We don't include every target in the test directory, so just pick a valid
4 // target not included in the test.
6 // RUN: not %clang -### -v --target=amdgcn-amd-amdhsa -mcpu=gfx902 \
7 // RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \
8 // RUN: | FileCheck -check-prefixes=COMMON,GFX902-DEFAULTLIBS %s
11 // RUN: %clang -### -v -target amdgcn-amd-amdhsa -mcpu=gfx902 -nogpulib \
12 // RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \
13 // RUN: | FileCheck -check-prefixes=COMMON,NODEFAULTLIBS %s
15 // GFX902-DEFAULTLIBS: error: cannot find ROCm device library for gfx902; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
17 // NODEFAULTLIBS-NOT: error: cannot find
19 // COMMON: "-triple" "amdgcn-amd-amdhsa"