|
9 | 9 | // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 -fcf-protection -### %s 2>&1 \ |
10 | 10 | // RUN: | FileCheck %s -DARCH=spir64_x86_64 -DOPT=-fcf-protection |
11 | 11 |
|
| 12 | +// Check to make sure -gline-tables-only is passed to -fsycl-is-host invocation only. |
| 13 | +// RUN: %clangxx -### -fsycl -gline-tables-only %s 2>&1 \ |
| 14 | +// RUN: | FileCheck %s -DARCH=spir64 -DOPT=-gline-tables-only \ |
| 15 | +// RUN: -DOPT_CC1=-debug-info-kind=line-tables-only \ |
| 16 | +// RUN: -check-prefixes=UNSUPPORTED_OPT_DIAG,UNSUPPORTED_OPT |
| 17 | +// RUN: %clang_cl -### -fsycl -gline-tables-only %s 2>&1 \ |
| 18 | +// RUN: | FileCheck %s -DARCH=spir64 -DOPT=-gline-tables-only \ |
| 19 | +// RUN: -DOPT_CC1=-debug-info-kind=line-tables-only \ |
| 20 | +// RUN: -check-prefixes=UNSUPPORTED_OPT_DIAG,UNSUPPORTED_OPT |
| 21 | + |
12 | 22 | // RUN: %clangxx -fsycl -fprofile-instr-generate -### %s 2>&1 \ |
13 | 23 | // RUN: | FileCheck %s -DARCH=spir64 -DOPT=-fprofile-instr-generate \ |
14 | 24 | // RUN: -DOPT_CC1=-fprofile-instrument=clang \ |
|
46 | 56 | // RUN: -DOPT_CC1=-fprofile-instrument=clang \ |
47 | 57 | // RUN: -check-prefixes=UNSUPPORTED_OPT_DIAG,UNSUPPORTED_OPT |
48 | 58 |
|
49 | | -// CHECK: ignoring '[[OPT]]' option as it is not currently supported for target '[[ARCH]]{{.*}}' [-Woption-ignored] |
| 59 | +// CHECK: ignoring '[[OPT]]' option as it is not currently supported for target '[[ARCH]]{{.*}}'; only supported for host compilation [-Woption-ignored] |
50 | 60 | // CHECK-NOT: clang{{.*}} "-fsycl-is-device"{{.*}} "[[OPT]]{{.*}}" |
51 | 61 | // CHECK: clang{{.*}} "-fsycl-is-host"{{.*}} "[[OPT]]{{.*}}" |
52 | 62 |
|
53 | | -// UNSUPPORTED_OPT_DIAG: ignoring '[[OPT]]' option as it is not currently supported for target '[[ARCH]]{{.*}}' [-Woption-ignored] |
| 63 | +// UNSUPPORTED_OPT_DIAG: ignoring '[[OPT]]' option as it is not currently supported for target '[[ARCH]]{{.*}}'; only supported for host compilation [-Woption-ignored] |
54 | 64 | // UNSUPPORTED_OPT-NOT: clang{{.*}} "-fsycl-is-device"{{.*}} "[[OPT_CC1]]{{.*}}" |
55 | 65 | // UNSUPPORTED_OPT: clang{{.*}} "-fsycl-is-host"{{.*}} "[[OPT_CC1]]{{.*}}" |
56 | 66 |
|
|
0 commit comments