[llvm] 73c3b52 - [PowerPC][NFC] Convert grep usage to FileCheck in lit test.

Sean Fertile via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 09:28:52 PST 2020


Author: Sean Fertile
Date: 2020-02-26T12:28:18-05:00
New Revision: 73c3b52676a1ec2418429665bd3724df4e695340

URL: https://github.com/llvm/llvm-project/commit/73c3b52676a1ec2418429665bd3724df4e695340
DIFF: https://github.com/llvm/llvm-project/commit/73c3b52676a1ec2418429665bd3724df4e695340.diff

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

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/vec_vrsave.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/vec_vrsave.ll b/llvm/test/CodeGen/PowerPC/vec_vrsave.ll
index 4d48c332fb10..784da55518cb 100644
--- a/llvm/test/CodeGen/PowerPC/vec_vrsave.ll
+++ b/llvm/test/CodeGen/PowerPC/vec_vrsave.ll
@@ -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


        


More information about the llvm-commits mailing list