221
|
1 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
2 // RUN: -mcpu=pwr10 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=HASPRIV
|
|
3 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
4 // RUN: -mcpu=power10 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=HASPRIV
|
|
5 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
6 // RUN: -mcpu=pwr9 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=HASPRIV
|
|
7 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
8 // RUN: -mcpu=power9 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=HASPRIV
|
|
9 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
10 // RUN: -mcpu=pwr8 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=HASPRIV
|
|
11 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
12 // RUN: -mcpu=power8 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=HASPRIV
|
|
13
|
|
14 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
15 // RUN: -mcpu=pwr7 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=NOPRIV
|
|
16 // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \
|
|
17 // RUN: -mcpu=power7 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=NOPRIV
|
|
18
|
|
19 #ifdef __PRIVILEGED__
|
|
20 static_assert(false, "Privileged instructions enabled");
|
|
21 #endif
|
|
22
|
|
23 // HASPRIV: Privileged instructions enabled
|
|
24 // HASPRIV-NOT: option '-mprivileged' cannot be specified with
|
|
25 // NOPRIV: option '-mprivileged' cannot be specified with
|
|
26
|