diff options
Diffstat (limited to 'test/Feature')
-rw-r--r-- | test/Feature/globalredefinition3.ll | 2 | ||||
-rw-r--r-- | test/Feature/intrinsics.ll | 10 | ||||
-rw-r--r-- | test/Feature/load_module.ll | 2 | ||||
-rw-r--r-- | test/Feature/packed_struct.ll | 2 | ||||
-rw-r--r-- | test/Feature/vector-cast-constant-exprs.ll | 2 |
5 files changed, 14 insertions, 4 deletions
diff --git a/test/Feature/globalredefinition3.ll b/test/Feature/globalredefinition3.ll index 5a5b3f1..2551d93 100644 --- a/test/Feature/globalredefinition3.ll +++ b/test/Feature/globalredefinition3.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null |& grep {redefinition of global '@B'} +; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "redefinition of global '@B'" @B = global i32 7 @B = global i32 7 diff --git a/test/Feature/intrinsics.ll b/test/Feature/intrinsics.ll index c4e3db6..9e7dc6d 100644 --- a/test/Feature/intrinsics.ll +++ b/test/Feature/intrinsics.ll @@ -1,6 +1,7 @@ ; RUN: llvm-as < %s | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll +; RUN: FileCheck %s < %t1.ll declare i1 @llvm.isunordered.f32(float, float) @@ -58,3 +59,12 @@ define void @libm() { } ; FIXME: test ALL the intrinsics in this file. + +; rdar://11542750 +; CHECK: declare void @llvm.trap() noreturn nounwind +declare void @llvm.trap() + +define void @trap() { + call void @llvm.trap() + ret void +} diff --git a/test/Feature/load_module.ll b/test/Feature/load_module.ll index 05f6c23..14c1153 100644 --- a/test/Feature/load_module.ll +++ b/test/Feature/load_module.ll @@ -1,6 +1,6 @@ ; PR1318 ; RUN: opt < %s -load=%llvmshlibdir/LLVMHello%shlibext -hello \ -; RUN: -disable-output |& grep Hello +; RUN: -disable-output 2>&1 | grep Hello ; REQUIRES: loadable_module ; FIXME: On Cygming, it might fail without building LLVMHello manually. diff --git a/test/Feature/packed_struct.ll b/test/Feature/packed_struct.ll index 4d4ace9..0766649 100644 --- a/test/Feature/packed_struct.ll +++ b/test/Feature/packed_struct.ll @@ -2,7 +2,7 @@ ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll ; RUN: not grep cast %t2.ll -; RUN: grep {\\}>} %t2.ll +; RUN: grep "}>" %t2.ll ; END. %struct.anon = type <{ i8, i32, i32, i32 }> diff --git a/test/Feature/vector-cast-constant-exprs.ll b/test/Feature/vector-cast-constant-exprs.ll index ffdc0f0..992987c 100644 --- a/test/Feature/vector-cast-constant-exprs.ll +++ b/test/Feature/vector-cast-constant-exprs.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis | not grep {ret.*(} +; RUN: llvm-as < %s | llvm-dis | not grep "ret.*(" ; All of these constant expressions should fold. |