|
6 | 6 | // RUN: --cuda-gpu-arch=gfx803 \
|
7 | 7 | // RUN: --rocm-path=%S/Inputs/rocm \
|
8 | 8 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
9 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 9 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
10 | 10 |
|
11 | 11 |
|
12 | 12 | // Test subtarget with flushing off by ddefault.
|
13 | 13 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
14 | 14 | // RUN: --cuda-gpu-arch=gfx900 \
|
15 | 15 | // RUN: --rocm-path=%S/Inputs/rocm \
|
16 | 16 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
17 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR |
| 17 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
18 | 18 |
|
19 | 19 |
|
20 | 20 | // Test explicit flag, opposite of target default.
|
|
23 | 23 | // RUN: -fgpu-flush-denormals-to-zero \
|
24 | 24 | // RUN: --rocm-path=%S/Inputs/rocm \
|
25 | 25 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
26 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 26 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
27 | 27 |
|
28 | 28 |
|
29 | 29 | // Test explicit flag, opposite of target default.
|
|
32 | 32 | // RUN: -fno-gpu-flush-denormals-to-zero \
|
33 | 33 | // RUN: --rocm-path=%S/Inputs/rocm \
|
34 | 34 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
35 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR |
| 35 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
36 | 36 |
|
37 | 37 |
|
38 | 38 | // Test explicit flag, same as target default.
|
|
41 | 41 | // RUN: -fno-gpu-flush-denormals-to-zero \
|
42 | 42 | // RUN: --rocm-path=%S/Inputs/rocm \
|
43 | 43 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
44 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR |
| 44 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
45 | 45 |
|
46 | 46 |
|
47 | 47 | // Test explicit flag, same as target default.
|
|
50 | 50 | // RUN: -fgpu-flush-denormals-to-zero \
|
51 | 51 | // RUN: --rocm-path=%S/Inputs/rocm \
|
52 | 52 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
53 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 53 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
54 | 54 |
|
55 | 55 |
|
56 | 56 | // Test last flag wins, not flushing
|
|
59 | 59 | // RUN: -fgpu-flush-denormals-to-zero -fno-gpu-flush-denormals-to-zero \
|
60 | 60 | // RUN: --rocm-path=%S/Inputs/rocm \
|
61 | 61 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
62 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR |
| 62 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
63 | 63 |
|
64 | 64 |
|
65 | 65 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
66 | 66 | // RUN: --cuda-gpu-arch=gfx900 \
|
67 | 67 | // RUN: -fgpu-flush-denormals-to-zero -fno-gpu-flush-denormals-to-zero \
|
68 | 68 | // RUN: --rocm-path=%S/Inputs/rocm \
|
69 | 69 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
70 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR |
| 70 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
71 | 71 |
|
72 | 72 |
|
73 | 73 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
74 | 74 | // RUN: --cuda-gpu-arch=gfx900 \
|
75 | 75 | // RUN: -fno-gpu-flush-denormals-to-zero -fgpu-flush-denormals-to-zero \
|
76 | 76 | // RUN: --rocm-path=%S/Inputs/rocm \
|
77 | 77 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
78 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 78 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
79 | 79 |
|
80 | 80 |
|
81 | 81 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
82 | 82 | // RUN: --cuda-gpu-arch=gfx803 \
|
83 | 83 | // RUN: -fno-gpu-flush-denormals-to-zero -fgpu-flush-denormals-to-zero \
|
84 | 84 | // RUN: --rocm-path=%S/Inputs/rocm \
|
85 | 85 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
86 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 86 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
87 | 87 |
|
88 | 88 | // Test finding device lib in resource dir
|
89 | 89 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
90 | 90 | // RUN: --offload-arch=gfx803 -nogpuinc \
|
91 | 91 | // RUN: -resource-dir=%S/Inputs/rocm_resource_dir \
|
92 | 92 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
93 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,RESDIR |
| 93 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,RESDIR |
94 | 94 |
|
95 | 95 | // Test --hip-device-lib-path flag
|
96 | 96 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
97 | 97 | // RUN: --cuda-gpu-arch=gfx803 -nogpuinc \
|
98 | 98 | // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \
|
99 | 99 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
100 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 100 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
101 | 101 |
|
102 | 102 | // Test --hip-device-lib-path wins over -resource-dir
|
103 | 103 | // RUN: %clang -### --target=x86_64-linux-gnu \
|
104 | 104 | // RUN: --cuda-gpu-arch=gfx803 -nogpuinc \
|
105 | 105 | // RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \
|
106 | 106 | // RUN: -resource-dir=%S/Inputs/rocm_resource_dir \
|
107 | 107 | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \
|
108 |
| -// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR |
| 108 | +// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR |
109 | 109 |
|
110 | 110 | // Test environment variable HIP_DEVICE_LIB_PATH
|
111 | 111 | // RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode \
|
|
213 | 213 |
|
214 | 214 | // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]ockl.bc"
|
215 | 215 |
|
216 |
| -// FLUSHD-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_daz_opt_on.bc" |
217 |
| -// NOFLUSHD-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_daz_opt_off.bc" |
218 |
| - |
219 | 216 | // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_unsafe_math_off.bc"
|
220 | 217 | // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_finite_only_off.bc"
|
221 | 218 | // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_correctly_rounded_sqrt_on.bc"
|
222 | 219 | // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_wavefrontsize64_on.bc"
|
223 | 220 | // ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_isa_version_{{[0-9]+}}.bc"
|
224 | 221 | // INST-SAME: "-mlink-builtin-bitcode" "{{.*}}instrument.bc"
|
225 | 222 |
|
226 |
| -// FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" |
227 |
| -// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc" |
| 223 | +// FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc" |
228 | 224 | // FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_on.bc"
|
229 | 225 | // FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
|
230 | 226 |
|
231 |
| -// FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" |
232 |
| -// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc" |
| 227 | +// FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc" |
233 | 228 | // FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_on.bc"
|
234 | 229 | // FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
|
235 | 230 |
|
236 |
| -// UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" |
237 |
| -// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc" |
| 231 | +// UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc" |
238 | 232 | // UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_off.bc"
|
239 | 233 | // UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
|
240 | 234 |
|
241 |
| -// DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc" |
242 |
| -// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc" |
| 235 | +// DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc" |
243 | 236 | // DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_off.bc"
|
244 | 237 | // DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_off.bc"
|
245 | 238 |
|
|
0 commit comments