brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 85b7259 Raw
30 lines · c
1// RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm \2// RUN:   -mcpu=pwr10 -mprivileged %s -o - | FileCheck %s --check-prefix=HASPRIV3// RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm \4// RUN:   -mcpu=power10 -mprivileged %s -o - | FileCheck %s --check-prefix=HASPRIV5// RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm \6// RUN:   -mcpu=pwr9 -mprivileged %s -o - | FileCheck %s --check-prefix=HASPRIV7// RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm \8// RUN:   -mcpu=power9 -mprivileged %s -o - | FileCheck %s --check-prefix=HASPRIV9// RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm \10// RUN:   -mcpu=pwr8 -mprivileged %s -o - | FileCheck %s --check-prefix=HASPRIV11// RUN: %clang -target powerpc64le-unknown-linux-gnu -S -emit-llvm \12// RUN:   -mcpu=power8 -mprivileged %s -o - | FileCheck %s --check-prefix=HASPRIV13 14// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \15// RUN:   -mcpu=pwr7 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=NOPRIV16// RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \17// RUN:   -mcpu=power7 -mprivileged %s 2>&1 | FileCheck %s --check-prefix=NOPRIV18 19// __SP__ TODO: Fix this test case to check for the attribute.20int test(void) {21  return 0;22}23 24// HASPRIV: test() #0 {25// HASPRIV: attributes #0 = {26// HASPRIV-SAME: +privileged27 28// NOPRIV: option '-mprivileged' cannot be specified with29 30