aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2013-04-30 00:13:38 +0000
committerMichael Liao <michael.liao@intel.com>2013-04-30 00:13:38 +0000
commit7d8ea50b93916b3dde07cc017d738b3fff43d3c7 (patch)
treea481c090db04adf88b593554b50e2c9f83f1701b /test/CodeGen
parent0dc415cf2864dee8e24682e20267f47427985acb (diff)
downloadexternal_llvm-7d8ea50b93916b3dde07cc017d738b3fff43d3c7.zip
external_llvm-7d8ea50b93916b3dde07cc017d738b3fff43d3c7.tar.gz
external_llvm-7d8ea50b93916b3dde07cc017d738b3fff43d3c7.tar.bz2
Rewrite test in FileCheck instead of grep in X86 codegen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/nosse-error2.ll11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/CodeGen/X86/nosse-error2.ll b/test/CodeGen/X86/nosse-error2.ll
index 45a5eaf..fc9ba01 100644
--- a/test/CodeGen/X86/nosse-error2.ll
+++ b/test/CodeGen/X86/nosse-error2.ll
@@ -1,7 +1,10 @@
-; RUN: llvm-as < %s > %t1
-; RUN: not llc -march=x86 -mcpu=i686 -mattr=-sse < %t1 2> %t2
-; RUN: grep "SSE register return with SSE disabled" %t2
-; RUN: llc -march=x86 -mcpu=i686 -mattr=+sse < %t1 | grep xmm
+; RUN: llc < %s -march=x86 -mcpu=i686 -mattr=-sse 2>&1 | FileCheck --check-prefix NOSSE %s
+; RUN: llc < %s -march=x86 -mcpu=i686 -mattr=+sse | FileCheck %s
+
+; NOSSE: {{SSE register return with SSE disabled}}
+
+; CHECK: xmm
+
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-unknown-linux-gnu"
@f = external global float ; <float*> [#uses=4]