[PATCH] D120349: [NFC][PowerPC] Fix the check-cpu.ll test case.
Stefan Pintilie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 12:54:04 PST 2022
stefanp created this revision.
stefanp added reviewers: lei, nemanjai.
Herald added a subscriber: shchenz.
stefanp requested review of this revision.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120349
Files:
llvm/test/CodeGen/PowerPC/check-cpu.ll
Index: llvm/test/CodeGen/PowerPC/check-cpu.ll
===================================================================
--- llvm/test/CodeGen/PowerPC/check-cpu.ll
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120349.410615.patch
Type: text/x-patch
Size: 1339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220222/46f720be/attachment.bin>
More information about the llvm-commits
mailing list