blob: 61f0895d0c89ef1f3d9ee8fa2256435538f5fc23 [file] [log] [blame]
; REQUIRES: powerpc-registered-target
; RUN: llc -mtriple=powerpc-ibm-aix < %s 2>&1 >/dev/null | FileCheck --allow-empty %s
; RUN: llc -mtriple=powerpc-ibm-aix --relocation-model=pic < %s 2>&1 >/dev/null | FileCheck --allow-empty %s
; RUN: llc -mtriple=powerpc64-ibm-aix --relocation-model=pic < %s 2>&1 >/dev/null | FileCheck --allow-empty %s
; RUN: not llc -mtriple=powerpc-ibm-aix --relocation-model=static < %s 2>&1 | FileCheck --check-prefix=CHECK-NON-PIC %s
; RUN: not llc -mtriple=powerpc64-ibm-aix --relocation-model=ropi-rwpi < %s 2>&1 | FileCheck --check-prefix=CHECK-NON-PIC %s
; CHECK-NOT: {{.}}
; CHECK-NON-PIC: invalid relocation model, AIX only supports PIC.