Skip to content

Commit b3e63ee

Browse files
[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
1 parent 011f653 commit b3e63ee

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

llvm/test/CodeGen/PowerPC/check-cpu.ll

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
2-
; RUN: -mcpu=future < %s | FileCheck %s
2+
; RUN: -mcpu=future < %s 2>&1 | FileCheck %s
33
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
4-
; RUN: -mcpu=future < %s | FileCheck %s
4+
; RUN: -mcpu=future < %s 2>&1 | FileCheck %s
55
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
6-
; RUN: -mcpu=power10 < %s | FileCheck %s
6+
; RUN: -mcpu=pwr10 < %s 2>&1 | FileCheck %s
77
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
8-
; RUN: -mcpu=pwr10 < %s | FileCheck %s
8+
; RUN: -mcpu=pwr10 < %s 2>&1 | FileCheck %s
9+
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
10+
; RUN: -mcpu=pwr9 < %s 2>&1 | FileCheck %s
11+
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
12+
; RUN: -mcpu=pwr9 < %s 2>&1 | FileCheck %s
13+
914

1015

11-
; Test -mcpu=[pwr10|future] is recognized on PowerPC.
16+
; Test -mcpu=[pwr9|pwr10|future] is recognized on PowerPC.
1217

1318
; CHECK-NOT: is not a recognized processor for this target
1419
; CHECK: .text

0 commit comments

Comments
 (0)