summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2009-08-24 22:49:22 +0000
committerScott Michel <scottm@aero.org>2009-08-24 22:49:22 +0000
commit838dbd92d8a4b979ec1d266884ebad55f6ae6998 (patch)
treedd68185b427d3d6eedb2ab68a2d28a44421984cb /test/CodeGen
parentf1fa4fd282987381ab773d84a91e7de0cc4e5258 (diff)
downloadllvm-838dbd92d8a4b979ec1d266884ebad55f6ae6998.tar.gz
llvm-838dbd92d8a4b979ec1d266884ebad55f6ae6998.tar.bz2
llvm-838dbd92d8a4b979ec1d266884ebad55f6ae6998.tar.xz
Prefer 'FileCheck' over 'grep'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/CellSPU/sext128.ll15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/CodeGen/CellSPU/sext128.ll b/test/CodeGen/CellSPU/sext128.ll
index 729daf726f..0cff87937b 100644
--- a/test/CodeGen/CellSPU/sext128.ll
+++ b/test/CodeGen/CellSPU/sext128.ll
@@ -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 @@ target triple = "spu"
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
}