Skip to content

Commit 73c3b52

Browse files
committed
[PowerPC][NFC] Convert grep usage to FileCheck in lit test.
1 parent 590dc8d commit 73c3b52

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

llvm/test/CodeGen/PowerPC/vec_vrsave.ll

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 -o %t
2-
; RUN: grep vrlw %t
3-
; RUN: not grep spr %t
4-
; RUN: not grep vrsave %t
1+
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux \
2+
; RUN: -mcpu=g5 < %s | FileCheck %s
53

4+
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-freebsd \
5+
; RUN: -mcpu=g5 < %s | FileCheck %s
6+
7+
; CHECK-LABEL: test_rol
8+
; CHECK-NOT: spr
9+
; CHECK-NOT: vrsave
10+
; CHECK: vrlw
11+
; CHECK-NEXT: blr
612
define <4 x i32> @test_rol() {
713
ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
814
}
915

16+
; CHECK-LABEL: test_arg
17+
; CHECK-NOT: spr
18+
; CHECK-NOT: vrsave
1019
define <4 x i32> @test_arg(<4 x i32> %A, <4 x i32> %B) {
1120
%C = add <4 x i32> %A, %B ; <<4 x i32>> [#uses=1]
1221
ret <4 x i32> %C

0 commit comments

Comments
 (0)