[llvm] b3e63ee - [NFC][PowerPC] Fix the check-cpu.ll test case.
Stefan Pintilie via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 12:09:40 PST 2022
Author: Stefan Pintilie
Date: 2022-02-23T14:09:34-06:00
New Revision: b3e63ee2e5bde11f4ee3f1b372622d3ab0222c8f
URL: https://github.com/llvm/llvm-project/commit/b3e63ee2e5bde11f4ee3f1b372622d3ab0222c8f
DIFF: https://github.com/llvm/llvm-project/commit/b3e63ee2e5bde11f4ee3f1b372622d3ab0222c8f.diff
LOG: [NFC][PowerPC] Fix the check-cpu.ll test case.
This test doesn't work because the CHECK-NOT line is actually checking
something that only exists on stderr and not stdout.
Changed the test so that we now check both stderr and stdout.
Changed the test so that we check pwr9, pwr10, and future. The cpu names of
power9 or power10 are not supported in the llc backend.
Reviewed By: nemanjai, #powerpc
Differential Revision: https://reviews.llvm.org/D120349
Added:
Modified:
llvm/test/CodeGen/PowerPC/check-cpu.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/check-cpu.ll b/llvm/test/CodeGen/PowerPC/check-cpu.ll
index 132be3058216b..e1a201427a410 100644
--- a/llvm/test/CodeGen/PowerPC/check-cpu.ll
+++ b/llvm/test/CodeGen/PowerPC/check-cpu.ll
@@ -1,14 +1,19 @@
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
-; RUN: -mcpu=future < %s | FileCheck %s
+; RUN: -mcpu=future < %s 2>&1 | FileCheck %s
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
-; RUN: -mcpu=future < %s | FileCheck %s
+; RUN: -mcpu=future < %s 2>&1 | FileCheck %s
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
-; RUN: -mcpu=power10 < %s | FileCheck %s
+; RUN: -mcpu=pwr10 < %s 2>&1 | FileCheck %s
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
-; RUN: -mcpu=pwr10 < %s | FileCheck %s
+; RUN: -mcpu=pwr10 < %s 2>&1 | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
+; RUN: -mcpu=pwr9 < %s 2>&1 | FileCheck %s
+; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
+; RUN: -mcpu=pwr9 < %s 2>&1 | FileCheck %s
+
-; Test -mcpu=[pwr10|future] is recognized on PowerPC.
+; Test -mcpu=[pwr9|pwr10|future] is recognized on PowerPC.
; CHECK-NOT: is not a recognized processor for this target
; CHECK: .text
More information about the llvm-commits
mailing list