xref: /llvm-project/llvm/test/tools/llc/aix-pic-setting.ll (revision 5e4ec53b8efaa2a5215dd68f970d3c913ce07a20)
1; REQUIRES: powerpc-registered-target
2; RUN: llc -mtriple=powerpc-ibm-aix < %s 2>&1 >/dev/null | FileCheck --allow-empty %s
3; RUN: llc -mtriple=powerpc-ibm-aix --relocation-model=pic < %s 2>&1 >/dev/null | FileCheck --allow-empty %s
4; RUN: llc -mtriple=powerpc64-ibm-aix --relocation-model=pic < %s 2>&1 >/dev/null | FileCheck --allow-empty %s
5; RUN: not llc -mtriple=powerpc-ibm-aix --relocation-model=static < %s 2>&1 | FileCheck --check-prefix=CHECK-NON-PIC %s
6; RUN: not llc -mtriple=powerpc64-ibm-aix --relocation-model=ropi-rwpi < %s 2>&1 | FileCheck --check-prefix=CHECK-NON-PIC %s
7
8; CHECK-NOT: {{.}}
9; CHECK-NON-PIC: invalid relocation model, AIX only supports PIC
10