Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Driver/ppc-mprivileged-support-check.c @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
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 |