xref: /llvm-project/llvm/test/CodeGen/PowerPC/future-check-features.ll (revision 9df924a634ac5ea702b0d8d0d8b737c819a98095)
1; RUN: llc -mattr=isa-future-instructions,pcrelative-memops,prefix-instrs \
2; RUN:   -mattr=paired-vector-memops,mma,rop-protect,privileged \
3; RUN:   -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown \
4; RUN:   -ppc-asm-full-reg-names %s -o - 2>&1 | FileCheck %s
5; RUN: llc -mattr=isa-future-instructions,pcrelative-memops,prefix-instrs \
6; RUN:   -mattr=paired-vector-memops,mma,rop-protect,privileged \
7; RUN:   -verify-machineinstrs -mtriple=powerpc64-unknown-unknown \
8; RUN:   -ppc-asm-full-reg-names %s -o - 2>&1 | FileCheck %s
9; RUN: llc -mattr=isa-future-instructions,pcrelative-memops,prefix-instrs \
10; RUN:   -mattr=paired-vector-memops,mma,rop-protect,privileged \
11; RUN:   -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff \
12; RUN:   -ppc-asm-full-reg-names %s -o - 2>&1 | FileCheck %s
13; RUN: llc -mattr=isa-future-instructions,pcrelative-memops,prefix-instrs \
14; RUN:   -mattr=paired-vector-memops,mma,rop-protect,privileged \
15; RUN:   -verify-machineinstrs -mtriple=powerpc-ibm-aix-xcoff \
16; RUN:   -ppc-asm-full-reg-names %s -o - 2>&1 | FileCheck %s
17
18define dso_local signext i32 @f() {
19entry:
20  ret i32 0
21}
22
23; Make sure that all of the features listed are recognized.
24; CHECK-NOT:    is not a recognized feature for this target
25
26; Make sure that the test was actually compiled.
27; CHECK:        li r3, 0
28; CHECK-NEXT:   blr
29
30