annotate clang/test/Driver/hip-toolchain-opt.hip @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 0572611fdcc8
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
anatofuz
parents:
diff changeset
5 // RUN: %clang -### \
anatofuz
parents:
diff changeset
6 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
7 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
8 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
9 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
10 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,DEFAULT %s
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // RUN: %clang -### -O0 \
anatofuz
parents:
diff changeset
13 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
14 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
15 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
16 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
17 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,O0 %s
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // RUN: %clang -### -O1 \
anatofuz
parents:
diff changeset
20 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
21 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
22 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
23 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
24 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,O1 %s
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // RUN: %clang -### -O2 \
anatofuz
parents:
diff changeset
27 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
28 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
29 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
30 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
31 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,O2 %s
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 // RUN: %clang -### -O3 \
anatofuz
parents:
diff changeset
34 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
35 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
36 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
37 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
38 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,O3 %s
anatofuz
parents:
diff changeset
39
anatofuz
parents:
diff changeset
40 // RUN: %clang -### -Os \
anatofuz
parents:
diff changeset
41 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
42 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
43 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
44 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
45 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,Os %s
anatofuz
parents:
diff changeset
46
anatofuz
parents:
diff changeset
47 // RUN: %clang -### -Oz \
anatofuz
parents:
diff changeset
48 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
49 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
50 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
51 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
52 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,Oz %s
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 // RUN: %clang -### -Og \
anatofuz
parents:
diff changeset
55 // RUN: -target x86_64-unknown-linux-gnu \
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
56 // RUN: --cuda-gpu-arch=gfx900 \
150
anatofuz
parents:
diff changeset
57 // RUN: -c -nogpulib \
anatofuz
parents:
diff changeset
58 // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
anatofuz
parents:
diff changeset
59 // RUN: 2>&1 | FileCheck --check-prefixes=ALL,Og %s
anatofuz
parents:
diff changeset
60
anatofuz
parents:
diff changeset
61 // ALL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "amdgcn-amd-amdhsa"
anatofuz
parents:
diff changeset
62 // DEFAULT-NOT: "-O{{.}}"
anatofuz
parents:
diff changeset
63 // O0-SAME: "-O0"
anatofuz
parents:
diff changeset
64 // O1-SAME: "-O1"
anatofuz
parents:
diff changeset
65 // O2-SAME: "-O2"
anatofuz
parents:
diff changeset
66 // O3-SAME: "-O3"
anatofuz
parents:
diff changeset
67 // Os-SAME: "-Os"
anatofuz
parents:
diff changeset
68 // Oz-SAME: "-Oz"
anatofuz
parents:
diff changeset
69 // Og-SAME: "-Og"
anatofuz
parents:
diff changeset
70
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
71 // ALL-NOT: "{{.*}}opt"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
72
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
73 // ALL-NOT: "{{.*}}llc"
150
anatofuz
parents:
diff changeset
74
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
75 // ALL: "{{.*}}lld{{.*}}" {{.*}} "-plugin-opt=mcpu=gfx900"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
76 // DEFAULT-NOT: "-plugin-opt=O{{.*}}"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
77 // O0-SAME: "-plugin-opt=O0"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
78 // O1-SAME: "-plugin-opt=O1"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
79 // O2-SAME: "-plugin-opt=O2"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
80 // O3-SAME: "-plugin-opt=O3"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
81 // Os-SAME: "-plugin-opt=O2"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
82 // Oz-SAME: "-plugin-opt=O2"
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
83 // Og-SAME: "-plugin-opt=O1"
150
anatofuz
parents:
diff changeset
84
anatofuz
parents:
diff changeset
85 // ALL: "{{.*}}clang{{.*}}" "-cc1" "-triple" "x86_64-unknown-linux-gnu"
anatofuz
parents:
diff changeset
86 // DEFAULT-NOT: "-O{{.}}"
anatofuz
parents:
diff changeset
87 // O0-SAME: "-O0"
anatofuz
parents:
diff changeset
88 // O1-SAME: "-O1"
anatofuz
parents:
diff changeset
89 // O2-SAME: "-O2"
anatofuz
parents:
diff changeset
90 // O3-SAME: "-O3"
anatofuz
parents:
diff changeset
91 // Os-SAME: "-Os"
anatofuz
parents:
diff changeset
92 // Oz-SAME: "-Oz"
anatofuz
parents:
diff changeset
93 // Og-SAME: "-Og"