Skip to content

Commit 7200d2c

Browse files
committed
[NFC] Disallow unused prefixes in CodeGen/PowerPC tests.
Also removed where applicable. Differential Revision: https://reviews.llvm.org/D94385
1 parent c15b0e2 commit 7200d2c

39 files changed

+89
-133
lines changed

llvm/test/CodeGen/PowerPC/aix-lower-jump-table.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
; RUN: --check-prefixes=64LARGE-ASM,LARGE-ASM %s
2828

2929
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -function-sections < %s | FileCheck \
30-
; RUN: --check-prefixes=FUNC-ASM,CHECK %s
30+
; RUN: --check-prefix=FUNC-ASM %s
3131

3232
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -function-sections < %s | FileCheck \
33-
; RUN: --check-prefixes=FUNC-ASM,CHECK %s
33+
; RUN: --check-prefix=FUNC-ASM %s
3434

3535
define i32 @jump_table(i32 %a) {
3636
entry:

llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; RUN: llc -O2 -mtriple powerpc-ibm-aix-xcoff -stop-after=machine-cp -verify-machineinstrs < %s | \
2-
; RUN: FileCheck --check-prefixes=CHECK,32BIT %s
2+
; RUN: FileCheck --check-prefix=32BIT %s
33

44
; RUN: llc -O2 -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec \
55
; RUN: -mtriple powerpc-ibm-aix-xcoff < %s | \
6-
; RUN: FileCheck --check-prefixes=CHECKASM,ASM32 %s
6+
; RUN: FileCheck --check-prefix=ASM32 %s
77

88
define i32 @int_va_arg(i32 %a, ...) local_unnamed_addr {
99
entry:

llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; RUN: llc -O2 -mtriple powerpc64-ibm-aix-xcoff -stop-after=machine-cp -verify-machineinstrs < %s | \
2-
; RUN: FileCheck --check-prefixes=CHECK,64BIT %s
2+
; RUN: FileCheck --check-prefix=64BIT %s
33

44
; RUN: llc -O2 -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec \
55
; RUN: -mtriple powerpc64-ibm-aix-xcoff < %s | \
6-
; RUN: FileCheck --check-prefixes=CHECKASM,ASM64 %s
6+
; RUN: FileCheck --check-prefix=ASM64 %s
77

88
define i32 @int_va_arg(i32 %a, ...) local_unnamed_addr {
99
entry:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
from lit.llvm.subst import ToolSubst
2+
13
if not 'PowerPC' in config.root.targets:
24
config.unsupported = True
35

46
config.suffixes.add('.py')
7+
8+
fc = ToolSubst('FileCheck', unresolved='fatal')
9+
# Insert this first. Then, we'll first update the blank FileCheck command; then,
10+
# the default substitution of FileCheck will replace it to its full path.
11+
config.substitutions.insert(0, (fc.regex,
12+
'FileCheck --allow-unused-prefixes=false'))

llvm/test/CodeGen/PowerPC/lower-massv.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: llc -verify-machineinstrs -mcpu=pwr9 < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck -check-prefixes=CHECK-PWR9,CHECK-ALL %s
22
; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck -check-prefixes=CHECK-PWR8,CHECK-ALL %s
3-
; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck -check-prefixes=CHECK-DFLT,CHECK-ALL %s
3+
; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck --check-prefix=CHECK-ALL %s
44

55
declare <2 x double> @__cbrtd2_massv(<2 x double>)
66
declare <4 x float> @__cbrtf4_massv(<4 x float>)

llvm/test/CodeGen/PowerPC/popcnt-zext.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-- -mattr=+popcntd < %s | FileCheck %s --check-prefixes=ANY,FAST
3-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-- -mattr=+slow-popcntd < %s | FileCheck %s --check-prefixes=ANY,SLOW
2+
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-- -mattr=+popcntd < %s | FileCheck %s --check-prefix=FAST
3+
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-- -mattr=+slow-popcntd < %s | FileCheck %s --check-prefix=SLOW
44

55
define i16 @zpop_i8_i16(i8 %x) {
66
; FAST-LABEL: zpop_i8_i16:

llvm/test/CodeGen/PowerPC/ppc32-pic.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s -mtriple=powerpc -relocation-model=pic | \
22
; RUN: FileCheck -check-prefixes=SMALL,SMALL-BSS %s
33
; RUN: llc < %s -mtriple=powerpc -relocation-model=pic -mattr=+secure-plt | \
4-
; RUN: FileCheck -check-prefixes=SMALL,SMALL-SECUREPLT %s
4+
; RUN: FileCheck -check-prefixes=SMALL,SMALL-SECURE %s
55
@bar = common global i32 0, align 4
66

77
declare i32 @call_foo(i32, ...)
@@ -21,8 +21,8 @@ entry:
2121
; SMALL-BSS: bl _GLOBAL_OFFSET_TABLE_@local-4
2222
; SMALL-SECURE: bl .L0$pb
2323
; SMALL: mflr 30
24-
; SMALL-SECURE: addis 30, 30, _GLOBAL_OFFSET_TABLE_-.Lo$pb@ha
25-
; SMALL-SECURE: addi 30, 30, _GLOBAL_OFFSET_TABLE_-.Lo$pb@l
24+
; SMALL-SECURE: addis 30, 30, _GLOBAL_OFFSET_TABLE_-.L0$pb@ha
25+
; SMALL-SECURE: addi 30, 30, _GLOBAL_OFFSET_TABLE_-.L0$pb@l
2626
; SMALL-DAG: stw {{[0-9]+}}, 8(1)
2727
; SMALL-DAG: lwz [[VREG:[0-9]+]], bar@GOT(30)
2828
; SMALL-DAG: lwz {{[0-9]+}}, 0([[VREG]])

llvm/test/CodeGen/PowerPC/srem-lkk.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc64 < %s | FileCheck -check-prefixes=CHECK,CHECK64 %s
3-
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc < %s | FileCheck -check-prefixes=CHECK,CHECK32 %s
2+
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc64 < %s | FileCheck --check-prefix=CHECK %s
3+
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -mcpu=ppc < %s | FileCheck --check-prefix=CHECK %s
44

55
define i32 @fold_srem_positive_odd(i32 %x) {
66
; CHECK-LABEL: fold_srem_positive_odd:

llvm/test/CodeGen/PowerPC/srem-vector-lkk.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -mcpu=pwr9 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
3-
; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s --check-prefixes=CHECK,P9LE
3+
; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P9LE
44
; RUN: llc -mcpu=pwr9 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
5-
; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s --check-prefixes=CHECK,P9BE
5+
; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P9BE
66
; RUN: llc -mcpu=pwr8 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
7-
; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s --check-prefixes=CHECK,P8LE
7+
; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P8LE
88
; RUN: llc -mcpu=pwr8 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
9-
; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s --check-prefixes=CHECK,P8BE
9+
; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P8BE
1010

1111
define <4 x i16> @fold_srem_vec_1(<4 x i16> %x) {
1212
; P9LE-LABEL: fold_srem_vec_1:

llvm/test/CodeGen/PowerPC/testComparesigeuc.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -O2 \
33
; RUN: -ppc-gpr-icmps=all -ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s \
4-
; RUN: --implicit-check-not cmpw --implicit-check-not cmpd --implicit-check-not cmpl \
5-
; RUN: --check-prefixes=CHECK,BE
4+
; RUN: --implicit-check-not cmpw --implicit-check-not cmpd --implicit-check-not cmpl
65
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O2 \
76
; RUN: -ppc-gpr-icmps=all -ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s \
8-
; RUN: --implicit-check-not cmpw --implicit-check-not cmpd --implicit-check-not cmpl \
9-
; RUN: --check-prefixes=CHECK,LE
7+
; RUN: --implicit-check-not cmpw --implicit-check-not cmpd --implicit-check-not cmpl
108

119
@glob = dso_local local_unnamed_addr global i8 0, align 1
1210

0 commit comments

Comments
 (0)