| 1 |
; Check that use of the AIX/XCOFF related classes with ppc64le would |
| 2 |
; cause llc to die with an appropriate message instead of proceeding |
| 3 |
; with an invalid state. |
| 4 |
|
| 5 |
; RUN: not --crash llc < %s -mtriple powerpc64le--aix-xcoff 2>&1 \ |
| 6 |
; RUN: | FileCheck --check-prefix=AIXXCOFF %s |
| 7 |
; AIXXCOFF: ERROR: XCOFF is not supported for little-endian |
| 8 |
|
| 9 |
; RUN: not --crash llc < %s -mtriple powerpc64le--aix-macho 2>&1 \ |
| 10 |
; RUN: | FileCheck --check-prefix=AIXMACHO %s |
| 11 |
; AIXMACHO: ERROR: cannot create AIX PPC Assembly Printer for a little-endian target |
| 12 |
|
| 13 |
define i32 @a() { ret i32 0 } |