|
1 | 1 | // RUN: %clang -c -fsycl -### %s 2>&1 | FileCheck %s |
| 2 | + |
2 | 3 | // RUN: %clang -c -fsycl -ftarget-prec-div -### %s 2>&1 | FileCheck %s |
| 4 | + |
3 | 5 | // RUN: %clang -c -fsycl -ftarget-prec-sqrt -### %s 2>&1 | FileCheck %s |
4 | | -// RUN: %clang -c -fsycl -ftarget-prec-div -ftarget-prec-sqrt -### %s 2>&1 | FileCheck %s |
5 | | -// RUN: %clang -c -fsycl -ftarget-prec-sqrt -ftarget-prec-div -### %s 2>&1 | FileCheck %s |
6 | | -// RUN: %clang -c -fsycl -fno-target-prec-div -### %s 2>&1 | FileCheck --check-prefix=NO_PREC_DIV %s |
7 | | -// RUN: %clang -c -fsycl -fno-target-prec-sqrt -### %s 2>&1 | FileCheck --check-prefix=NO_PREC_SQRT %s |
8 | | -// RUN: %clang -c -fsycl -fno-target-prec-div -fno-target-prec-sqrt -### %s 2>&1 | FileCheck --check-prefix=NO_PREC_DIV_SQRT %s |
9 | | -// RUN: %clang -c -fsycl -fno-target-prec-sqrt -fno-target-prec-div -### %s 2>&1 | FileCheck --check-prefix=NO_PREC_DIV_SQRT %s |
10 | | -// RUN: %clang -c -fsycl -ffp-accuracy=high -fno-math-errno -fno-target-prec-div -### %s 2>&1 | FileCheck %s --check-prefix=WARN-HIGH-DIV |
11 | | -// RUN: %clang -c -fsycl -fno-target-prec-div -ffp-accuracy=high -fno-math-errno -### %s 2>&1 | FileCheck %s --check-prefix=WARN-HIGH-DIV |
12 | | -// RUN: %clang -c -fsycl -fno-target-prec-sqrt -ffp-accuracy=high -fno-math-errno -### %s 2>&1 | FileCheck %s --check-prefix=WARN-HIGH-SQRT |
13 | | -// RUN: %clang -c -fsycl -ffp-accuracy=high -fno-math-errno -fno-target-prec-sqrt -### %s 2>&1 | FileCheck %s --check-prefix=WARN-HIGH-SQRT |
14 | | -// RUN: %clang -c -fsycl -ffp-accuracy=low -fno-math-errno -fno-target-prec-div -### %s 2>&1 | FileCheck %s --check-prefix=WARN-LOW-DIV |
15 | | -// RUN: %clang -c -fsycl -ffp-accuracy=low -fno-math-errno -fno-target-prec-sqrt -### %s 2>&1 | FileCheck %s --check-prefix=WARN-LOW-SQRT |
| 6 | + |
| 7 | +// RUN: %clang -c -fsycl -ftarget-prec-div -ftarget-prec-sqrt -### %s 2>&1 \ |
| 8 | +// RUN: | FileCheck %s |
| 9 | + |
| 10 | +// RUN: %clang -c -fsycl -ftarget-prec-sqrt -ftarget-prec-div -### %s 2>&1 \ |
| 11 | +// RUN: | FileCheck %s |
| 12 | + |
| 13 | +// RUN: %clang -c -fsycl -fno-target-prec-div -### %s 2>&1 \ |
| 14 | +// RUN: | FileCheck --check-prefix=NO_PREC_DIV %s |
| 15 | + |
| 16 | +// RUN: %clang -c -fsycl -fno-target-prec-sqrt -### %s 2>&1 \ |
| 17 | +// RUN: | FileCheck --check-prefix=NO_PREC_SQRT %s |
| 18 | + |
| 19 | +// RUN: %clang -c -fsycl -fno-target-prec-div -fno-target-prec-sqrt -### %s 2>&1\ |
| 20 | +// RUN: | FileCheck --check-prefix=NO_PREC_DIV_SQRT %s |
| 21 | + |
| 22 | +// RUN: %clang -c -fsycl -fno-target-prec-sqrt -fno-target-prec-div -### %s 2>&1\ |
| 23 | +// RUN: | FileCheck --check-prefix=NO_PREC_DIV_SQRT %s |
| 24 | + |
| 25 | +// RUN: %clang -c -fsycl -ffp-accuracy=high -fno-math-errno \ |
| 26 | +// RUN: -fno-target-prec-div -### %s 2>&1 \ |
| 27 | +// RUN: | FileCheck %s --check-prefix=WARN-HIGH-DIV |
| 28 | + |
| 29 | +// RUN: %clang -c -fsycl -fno-target-prec-div -ffp-accuracy=high \ |
| 30 | +// RUN: -fno-math-errno -### %s 2>&1 \ |
| 31 | +// RUN: | FileCheck %s --check-prefix=WARN-HIGH-DIV |
| 32 | + |
| 33 | +// RUN: %clang -c -fsycl -fno-target-prec-sqrt -ffp-accuracy=high \ |
| 34 | +// RUN: -fno-math-errno -### %s 2>&1 \ |
| 35 | +// RUN: | FileCheck %s --check-prefix=WARN-HIGH-SQRT |
| 36 | + |
| 37 | +// RUN: %clang -c -fsycl -ffp-accuracy=high -fno-math-errno \ |
| 38 | +// RUN: -fno-target-prec-sqrt -### %s 2>&1 \ |
| 39 | +// RUN: | FileCheck %s --check-prefix=WARN-HIGH-SQRT |
| 40 | + |
| 41 | +// RUN: %clang -c -fsycl -ffp-accuracy=low -fno-math-errno -fno-target-prec-div \ |
| 42 | +// RUN: -### %s 2>&1 | FileCheck %s --check-prefix=WARN-LOW-DIV |
| 43 | + |
| 44 | +// RUN: %clang -c -fsycl -ffp-accuracy=low -fno-math-errno \ |
| 45 | +// RUN: -fno-target-prec-sqrt -### %s 2>&1 \ |
| 46 | +// RUN: | FileCheck %s --check-prefix=WARN-LOW-SQRT |
16 | 47 |
|
17 | 48 | // CHECK: "-triple" "spir64{{.*}}" "-fsycl-is-device"{{.*}} "-ftarget-prec-div" "-ftarget-prec-sqrt" |
18 | 49 | // CHECK-NOT: "-triple{{.*}}" "-fsycl-is-host"{{.*}} "-ftarget-prec-div" "-ftarget-prec-sqrt" |
19 | 50 | // NO_PREC_DIV: "-triple" "spir64{{.*}}"{{.*}} "-fsycl-is-device"{{.*}} "-fno-target-prec-div" "-ftarget-prec-sqrt" |
20 | 51 | // NO_PREC_SQRT: "-triple" "spir64{{.*}}" "-fsycl-is-device"{{.*}} "-ftarget-prec-div" "-fno-target-prec-sqrt" |
21 | 52 | // NO_PREC_DIV_SQRT: "-triple" "spir64{{.*}}" "-fsycl-is-device"{{.*}} "-fno-target-prec-div" "-fno-target-prec-sqrt" |
| 53 | +// RUN: %clang -c -fsycl -ffp-model=fast -### %s 2>&1 | FileCheck --check-prefix=FAST %s |
22 | 54 |
|
23 | 55 | // WARN-HIGH-DIV: floating point accuracy control 'high' conflicts with explicit target precision option '-fno-target-prec-div' |
24 | 56 | // WARN-HIGH-SQRT: floating point accuracy control 'high' conflicts with explicit target precision option '-fno-target-prec-sqrt' |
25 | 57 | // WARN-LOW-DIV: floating point accuracy control 'low' conflicts with explicit target precision option '-fno-target-prec-div' |
26 | 58 | // WARN-LOW-SQRT: floating point accuracy control 'low' conflicts with explicit target precision option '-fno-target-prec-sqrt' |
27 | | - |
| 59 | +// FAST: "-triple" "spir64{{.*}}"{{.*}} "-fsycl-is-device"{{.*}} "-fno-target-prec-div" "-fno-target-prec-sqrt" |
28 | 60 |
|
0 commit comments