comparison clang/test/Driver/ppc-mprivileged-support-check.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
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