1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[PowerPC][NFC] Convert grep usage to FileCheck in lit test.

This commit is contained in:
Sean Fertile 2020-02-26 09:52:43 -05:00
parent 8e3a06ab38
commit 6050aa4c53

View File

@ -1,12 +1,21 @@
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 -o %t
; RUN: grep vrlw %t
; RUN: not grep spr %t
; RUN: not grep vrsave %t
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux \
; RUN: -mcpu=g5 < %s | FileCheck %s
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-freebsd \
; RUN: -mcpu=g5 < %s | FileCheck %s
; CHECK-LABEL: test_rol
; CHECK-NOT: spr
; CHECK-NOT: vrsave
; CHECK: vrlw
; CHECK-NEXT: blr
define <4 x i32> @test_rol() {
ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
}
; CHECK-LABEL: test_arg
; CHECK-NOT: spr
; CHECK-NOT: vrsave
define <4 x i32> @test_arg(<4 x i32> %A, <4 x i32> %B) {
%C = add <4 x i32> %A, %B ; <<4 x i32>> [#uses=1]
ret <4 x i32> %C