summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll9
-rw-r--r--llvm/test/Assembler/2004-02-01-NegativeZero.ll5
-rw-r--r--llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll3
-rw-r--r--llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll3
-rw-r--r--llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll4
-rw-r--r--llvm/test/Assembler/2007-03-19-NegValue.ll3
-rw-r--r--llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll4
-rw-r--r--llvm/test/Assembler/2007-09-29-GC.ll7
-rw-r--r--llvm/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll11
9 files changed, 36 insertions, 13 deletions
diff --git a/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll b/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll
index c34596d35af..a6f70dbff9a 100644
--- a/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll
+++ b/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll
@@ -1,5 +1,12 @@
; RUN: opt < %s -scalar-evolution -analyze \
-; RUN: | grep " --> (sext i. {.*,+,.*}<%bb1> to i64)" | count 5
+; RUN: | FileCheck %s
+
+; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
+; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
+; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
+; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
+; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
+; CHECK-NOT: --> (sext
; Don't convert (sext {...,+,...}) to {sext(...),+,sext(...)} in cases
; where the trip count is not within range.
diff --git a/llvm/test/Assembler/2004-02-01-NegativeZero.ll b/llvm/test/Assembler/2004-02-01-NegativeZero.ll
index 98a8920f5ff..98bd4cb0d94 100644
--- a/llvm/test/Assembler/2004-02-01-NegativeZero.ll
+++ b/llvm/test/Assembler/2004-02-01-NegativeZero.ll
@@ -1,6 +1,9 @@
-; RUN: llvm-as < %s | llvm-dis | grep -- -0.0
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder %s
+; CHECK: global double -0.000000e+00
global double 0x8000000000000000
+
+; CHECK: global float -0.000000e+00
global float -0.0
diff --git a/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll b/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll
index 4db5b7453b0..7260f19bfd9 100644
--- a/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll
+++ b/llvm/test/Assembler/2004-11-28-InvalidTypeCrash.ll
@@ -1,4 +1,5 @@
; Test for PR463. This program is erroneous, but should not crash llvm-as.
-; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "use of undefined type named 'struct.none'"
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+; CHECK: use of undefined type named 'struct.none'
@.FOO = internal global %struct.none zeroinitializer
diff --git a/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll b/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll
index 4a9046d02bd..643d04c84b3 100644
--- a/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll
+++ b/llvm/test/Assembler/2005-01-03-FPConstantDisassembly.ll
@@ -1,7 +1,8 @@
-; RUN: llvm-as < %s | llvm-dis | grep 1.0
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder %s
define double @test() {
+; CHECK: ret double 1.0
ret double 1.0 ;; This should not require hex notation
}
diff --git a/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll b/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
index 184e543123f..a0542ee0013 100644
--- a/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
+++ b/llvm/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
@@ -1,5 +1,7 @@
; The assembler should catch an undefined argument type .
-; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "use of undefined type named 'typedef.bc_struct'"
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+
+; CHECK: use of undefined type named 'typedef.bc_struct'
; %typedef.bc_struct = type opaque
diff --git a/llvm/test/Assembler/2007-03-19-NegValue.ll b/llvm/test/Assembler/2007-03-19-NegValue.ll
index cad9f45567c..a2deac280b8 100644
--- a/llvm/test/Assembler/2007-03-19-NegValue.ll
+++ b/llvm/test/Assembler/2007-03-19-NegValue.ll
@@ -1,8 +1,9 @@
; Test whether negative values > 64 bits retain their negativeness.
-; RUN: llvm-as < %s | llvm-dis | grep "add i65.*, -1"
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder %s
define i65 @testConsts(i65 %N) {
+; CHECK: add i65 %N, -1
%a = add i65 %N, -1
ret i65 %a
}
diff --git a/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll b/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll
index 35485cd0d46..7c73abc6a2b 100644
--- a/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll
+++ b/llvm/test/Assembler/2007-04-25-AssemblerFoldExternWeak.ll
@@ -1,6 +1,8 @@
-; RUN: llvm-as < %s | llvm-dis | grep "icmp.*test_weak.*null"
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder %s
; PR1358
+
+; CHECK: icmp ne (i32 (...)* @test_weak, i32 (...)* null)
@G = global i1 icmp ne (i32 (...)* @test_weak, i32 (...)* null)
declare extern_weak i32 @test_weak(...)
diff --git a/llvm/test/Assembler/2007-09-29-GC.ll b/llvm/test/Assembler/2007-09-29-GC.ll
index c77809cc8a7..f2cafbcc0fb 100644
--- a/llvm/test/Assembler/2007-09-29-GC.ll
+++ b/llvm/test/Assembler/2007-09-29-GC.ll
@@ -1,7 +1,10 @@
-; RUN: llvm-as < %s | llvm-dis | grep "@f.*gc.*shadowstack"
-; RUN: llvm-as < %s | llvm-dis | grep "@g.*gc.*java"
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder %s
+
+; CHECK: define void @f() gc "shadowstack"
+; CHECK: define void @g() gc "java"
+
define void @f() gc "shadowstack" {
entry:
ret void
diff --git a/llvm/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll b/llvm/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll
index 55cea3aad13..90a3b372937 100644
--- a/llvm/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll
+++ b/llvm/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll
@@ -1,11 +1,14 @@
-; RUN: llc < %s -march=arm -enable-tail-merge | grep bl.*baz | count 1
-; RUN: llc < %s -march=arm -enable-tail-merge | grep bl.*quux | count 1
+; RUN: llc < %s -enable-tail-merge | FileCheck %s
; Check that calls to baz and quux are tail-merged.
; PR1628
+; CHECK: bl _baz
+; CHECK-NOT: bl _baz
+; CHECK: bl _quux
+; CHECK-NOT: bl _quux
+
; ModuleID = 'tail.c'
-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"
-target triple = "i686-apple-darwin8"
+target triple = "arm-apple-darwin8"
define i32 @f(i32 %i, i32 %q) {
entry:
OpenPOWER on IntegriCloud