From b107ff485621f93df3b9b17d098375364fc4a6f6 Mon Sep 17 00:00:00 2001 From: Stefan Pintilie Date: Tue, 18 Oct 2022 08:45:50 -0500 Subject: [PATCH] [NFC][PowerPC] Add a test to check power 10 features. This patch only adds a single test for Power 10 features. --- llvm/test/CodeGen/PowerPC/p10-check-features.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 llvm/test/CodeGen/PowerPC/p10-check-features.ll 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 0000000..1fde1ff --- /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 -- 2.7.4