xref: /llvm-project/llvm/test/CodeGen/PowerPC/p10-check-features.ll (revision b107ff485621f93df3b9b17d098375364fc4a6f6)
1*b107ff48SStefan Pintilie; RUN: llc -mattr=mma,isa-v31-instructions,pcrelative-memops,prefix-instrs,paired-vector-memops,rop-protect,privileged \
2*b107ff48SStefan Pintilie; RUN:   -mtriple=powerpc64le-unknown-unknown -ppc-asm-full-reg-names \
3*b107ff48SStefan Pintilie; RUN:   %s -o - 2>&1 | FileCheck %s
4*b107ff48SStefan Pintilie; RUN: llc -mattr=mma,isa-v31-instructions,pcrelative-memops,prefix-instrs,paired-vector-memops,rop-protect,privileged \
5*b107ff48SStefan Pintilie; RUN:   -mtriple=powerpc64-unknown-unknown -ppc-asm-full-reg-names \
6*b107ff48SStefan Pintilie; RUN:   %s -o - 2>&1 | FileCheck %s
7*b107ff48SStefan Pintilie
8*b107ff48SStefan Pintiliedefine dso_local signext i32 @f() {
9*b107ff48SStefan Pintilieentry:
10*b107ff48SStefan Pintilie  ret i32 0
11*b107ff48SStefan Pintilie}
12*b107ff48SStefan Pintilie
13*b107ff48SStefan Pintilie; Make sure that all of the features listed are recognized.
14*b107ff48SStefan Pintilie; CHECK-NOT:    is not a recognized feature for this target
15*b107ff48SStefan Pintilie
16*b107ff48SStefan Pintilie; Make sure that the test was actually compiled.
17*b107ff48SStefan Pintilie; CHECK:        li r3, 0
18*b107ff48SStefan Pintilie; CHECK-NEXT:   blr
19