annotate clang/test/Driver/hip-toolchain-features.hip @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: clang-driver
anatofuz
parents:
diff changeset
2 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
3 // REQUIRES: amdgpu-registered-target
anatofuz
parents:
diff changeset
4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
5 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
6 // RUN: --cuda-gpu-arch=gfx906:xnack+ --cuda-gpu-arch=gfx900:xnack+ %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
7 // RUN: 2>&1 | FileCheck %s -check-prefix=XNACK
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
8 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
9 // RUN: --cuda-gpu-arch=gfx906:xnack- --cuda-gpu-arch=gfx900:xnack- %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
10 // RUN: 2>&1 | FileCheck %s -check-prefix=NOXNACK
150
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // XNACK: {{.*}}clang{{.*}}"-target-feature" "+xnack"
anatofuz
parents:
diff changeset
13 // NOXNACK: {{.*}}clang{{.*}}"-target-feature" "-xnack"
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
14 // XNACK: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+xnack"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
15 // NOXNACK: {{.*}}lld{{.*}} "-plugin-opt=-mattr=-xnack"
150
anatofuz
parents:
diff changeset
16
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
17 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
18 // RUN: --cuda-gpu-arch=gfx908:sramecc+ %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
19 // RUN: 2>&1 | FileCheck %s -check-prefix=SRAM
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
20 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
21 // RUN: --cuda-gpu-arch=gfx908:sramecc- %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
22 // RUN: 2>&1 | FileCheck %s -check-prefix=NOSRAM
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
23
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
24 // SRAM: {{.*}}clang{{.*}}"-target-feature" "+sramecc"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
25 // NOSRAM: {{.*}}clang{{.*}}"-target-feature" "-sramecc"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
26 // SRAM: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+sramecc"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
27 // NOTSRAM: {{.*}}lld{{.*}} "-plugin-opt=-mattr=-sramecc"
150
anatofuz
parents:
diff changeset
28
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
29 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
30 // RUN: --cuda-gpu-arch=gfx1010 %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
31 // RUN: -mcumode 2>&1 | FileCheck %s -check-prefix=CUMODE
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
32 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
33 // RUN: --cuda-gpu-arch=gfx1010 %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
34 // RUN: -mno-cumode 2>&1 | FileCheck %s -check-prefix=NOTCUMODE
150
anatofuz
parents:
diff changeset
35
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
36 // CUMODE: {{.*}}clang{{.*}}"-target-feature" "+cumode"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
37 // NOTCUMODE: {{.*}}clang{{.*}}"-target-feature" "-cumode"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
38 // CUMODE: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+cumode"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
39 // NOTCUMODE: {{.*}}lld{{.*}} "-plugin-opt=-mattr=-cumode"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
40
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
41 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
42 // RUN: --cuda-gpu-arch=gfx908:xnack+:sramecc+ %s \
150
anatofuz
parents:
diff changeset
43 // RUN: 2>&1 | FileCheck %s -check-prefix=ALL3
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
44 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
45 // RUN: --cuda-gpu-arch=gfx908:xnack-:sramecc- %s \
150
anatofuz
parents:
diff changeset
46 // RUN: 2>&1 | FileCheck %s -check-prefix=NOALL3
anatofuz
parents:
diff changeset
47
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
48 // ALL3: {{.*}}clang{{.*}}"-target-feature" "+sramecc" "-target-feature" "+xnack"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
49 // NOALL3: {{.*}}clang{{.*}}"-target-feature" "-sramecc" "-target-feature" "-xnack"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
50
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
51 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
52 // RUN: --cuda-gpu-arch=gfx1010 %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
53 // RUN: -mtgsplit 2>&1 | FileCheck %s -check-prefix=TGSPLIT
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
54 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
55 // RUN: --cuda-gpu-arch=gfx1010 %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
56 // RUN: -mno-tgsplit 2>&1 | FileCheck %s -check-prefix=NOTTGSPLIT
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
57
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
58 // TGSPLIT: {{.*}}clang{{.*}}"-target-feature" "+tgsplit"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
59 // NOTTGSPLIT: {{.*}}clang{{.*}}"-target-feature" "-tgsplit"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
60 // TGSPLIT: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+tgsplit"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
61 // NOTTGSPLIT: {{.*}}lld{{.*}} "-plugin-opt=-mattr=-tgsplit"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
62
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
63 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
64 // RUN: --cuda-gpu-arch=gfx1010 %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
65 // RUN: -mcumode -mcumode -mno-cumode -mwavefrontsize64 -mcumode \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
66 // RUN: -mwavefrontsize64 -mno-wavefrontsize64 2>&1 \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
67 // RUN: | FileCheck %s -check-prefix=DUP
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
68 // DUP: {{.*}}clang{{.*}} "-target-feature" "+cumode"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
69 // DUP-NOT: "-target-feature" "{{.*}}wavefrontsize16"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
70 // DUP-NOT: "-target-feature" "{{.*}}wavefrontsize32"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
71 // DUP-NOT: "-target-feature" "{{.*}}wavefrontsize64"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
72 // DUP: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+cumode"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
73
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
74 // RUN: %clang -### -target x86_64-linux-gnu -fgpu-rdc -nogpulib \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
75 // RUN: --cuda-gpu-arch=gfx1010 %s \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
76 // RUN: -mno-wavefrontsize64 -mwavefrontsize64 2>&1 \
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
77 // RUN: | FileCheck %s -check-prefix=WAVE64
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
78 // WAVE64: {{.*}}clang{{.*}} "-target-feature" "+wavefrontsize64"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
79 // WAVE64-NOT: "-target-feature" "{{.*}}wavefrontsize16"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
80 // WAVE64-NOT: "-target-feature" "{{.*}}wavefrontsize32"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
81 // WAVE64: {{.*}}lld{{.*}} "-plugin-opt=-mattr=+wavefrontsize64"