[llvm] b107ff4 - [NFC][PowerPC] Add a test to check power 10 features.

Stefan Pintilie via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 07:09:47 PDT 2022


Author: Stefan Pintilie
Date: 2022-10-18T09:05:24-05:00
New Revision: b107ff485621f93df3b9b17d098375364fc4a6f6

URL: https://github.com/llvm/llvm-project/commit/b107ff485621f93df3b9b17d098375364fc4a6f6
DIFF: https://github.com/llvm/llvm-project/commit/b107ff485621f93df3b9b17d098375364fc4a6f6.diff

LOG: [NFC][PowerPC] Add a test to check power 10 features.

This patch only adds a single test for Power 10 features.

Added: 
    llvm/test/CodeGen/PowerPC/p10-check-features.ll

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/p10-check-features.ll b/llvm/test/CodeGen/PowerPC/p10-check-features.ll
new file mode 100644
index 0000000000000..1fde1ff00d68f
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/p10-check-features.ll
@@ -0,0 +1,18 @@
+; RUN: llc -mattr=mma,isa-v31-instructions,pcrelative-memops,prefix-instrs,paired-vector-memops,rop-protect,privileged \
+; RUN:   -mtriple=powerpc64le-unknown-unknown -ppc-asm-full-reg-names \
+; RUN:   %s -o - 2>&1 | FileCheck %s
+; RUN: llc -mattr=mma,isa-v31-instructions,pcrelative-memops,prefix-instrs,paired-vector-memops,rop-protect,privileged \
+; RUN:   -mtriple=powerpc64-unknown-unknown -ppc-asm-full-reg-names \
+; RUN:   %s -o - 2>&1 | FileCheck %s
+
+define dso_local signext i32 @f() {
+entry:
+  ret i32 0
+}
+
+; Make sure that all of the features listed are recognized.
+; CHECK-NOT:    is not a recognized feature for this target
+
+; Make sure that the test was actually compiled.
+; CHECK:        li r3, 0
+; CHECK-NEXT:   blr


        


More information about the llvm-commits mailing list