[llvm-commits] [llvm] r79953 - /llvm/trunk/test/CodeGen/CellSPU/sext128.ll
Scott Michel
scottm at aero.org
Mon Aug 24 15:49:22 PDT 2009
Author: pingbak
Date: Mon Aug 24 17:49:22 2009
New Revision: 79953
URL: http://llvm.org/viewvc/llvm-project?rev=79953&view=rev
Log:
Prefer 'FileCheck' over 'grep'.
Modified:
llvm/trunk/test/CodeGen/CellSPU/sext128.ll
Modified: llvm/trunk/test/CodeGen/CellSPU/sext128.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/CellSPU/sext128.ll?rev=79953&r1=79952&r2=79953&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/CellSPU/sext128.ll (original)
+++ llvm/trunk/test/CodeGen/CellSPU/sext128.ll Mon Aug 24 17:49:22 2009
@@ -1,10 +1,4 @@
-; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s
-; RUN: grep {long.*269488144} %t1.s | count 2
-; RUN: grep {long.*16909060} %t1.s | count 1
-; RUN: grep {long.*84281096} %t1.s | count 1
-; RUN: grep {rotmai} %t1.s | count 1
-; RUN: grep {lqa} %t1.s | count 1
-; RUN: grep {shufb} %t1.s | count 1
+; RUN: llvm-as -o - %s | llc -march=cellspu | FileCheck %s
; ModuleID = 'sext128.bc'
target datalayout = "E-p:32:32:128-i1:8:128-i8:8:128-i16:16:128-i32:32:128-i64:32:128-f32:32:128-f64:64:128-v64:128:128-v128:128:128-a0:0:128-s0:128:128"
@@ -12,6 +6,13 @@
define i128 @sext_i64_i128(i64 %a) {
entry:
+; CHECK: long 269488144
+; CHECK: long 269488144
+; CHECK: long 16909060
+; CHECK: long 84281096
+; CHECK: rotmai
+; CHECK: lqa
+; CHECK: shufb
%0 = sext i64 %a to i128
ret i128 %0
}
More information about the llvm-commits
mailing list