llvm.org GIT mirror llvm / 4396b44
Use FileCheck in a few tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221459 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
9 changed file(s) with 36 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt < %s -scalar-evolution -analyze \
1 ; RUN: | grep " --> (sext i. {.*,+,.*}<%bb1> to i64)" | count 5
1 ; RUN: | FileCheck %s
2
3 ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
4 ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
5 ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
6 ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
7 ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64)
8 ; CHECK-NOT: --> (sext
29
310 ; Don't convert (sext {...,+,...}) to {sext(...),+,sext(...)} in cases
411 ; where the trip count is not within range.
None ; RUN: llvm-as < %s | llvm-dis | grep -- -0.0
0 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
11 ; RUN: verify-uselistorder %s
22
3 ; CHECK: global double -0.000000e+00
34 global double 0x8000000000000000
5
6 ; CHECK: global float -0.000000e+00
47 global float -0.0
58
0 ; Test for PR463. This program is erroneous, but should not crash llvm-as.
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "use of undefined type named 'struct.none'"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
2 ; CHECK: use of undefined type named 'struct.none'
23
34 @.FOO = internal global %struct.none zeroinitializer
None ; RUN: llvm-as < %s | llvm-dis | grep 1.0
0 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
11 ; RUN: verify-uselistorder %s
22
33 define double @test() {
4 ; CHECK: ret double 1.0
45 ret double 1.0 ;; This should not require hex notation
56 }
67
0 ; The assembler should catch an undefined argument type .
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "use of undefined type named 'typedef.bc_struct'"
1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
2
3 ; CHECK: use of undefined type named 'typedef.bc_struct'
24
35 ; %typedef.bc_struct = type opaque
46
0 ; Test whether negative values > 64 bits retain their negativeness.
1 ; RUN: llvm-as < %s | llvm-dis | grep "add i65.*, -1"
1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
22 ; RUN: verify-uselistorder %s
33
44 define i65 @testConsts(i65 %N) {
5 ; CHECK: add i65 %N, -1
56 %a = add i65 %N, -1
67 ret i65 %a
78 }
None ; RUN: llvm-as < %s | llvm-dis | grep "icmp.*test_weak.*null"
0 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
11 ; RUN: verify-uselistorder %s
22 ; PR1358
3
4 ; CHECK: icmp ne (i32 (...)* @test_weak, i32 (...)* null)
35 @G = global i1 icmp ne (i32 (...)* @test_weak, i32 (...)* null)
46
57 declare extern_weak i32 @test_weak(...)
None ; RUN: llvm-as < %s | llvm-dis | grep "@f.*gc.*shadowstack"
1 ; RUN: llvm-as < %s | llvm-dis | grep "@g.*gc.*java"
0 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
21 ; RUN: verify-uselistorder %s
2
3
4 ; CHECK: define void @f() gc "shadowstack"
5 ; CHECK: define void @g() gc "java"
36
47 define void @f() gc "shadowstack" {
58 entry:
None ; RUN: llc < %s -march=arm -enable-tail-merge | grep bl.*baz | count 1
1 ; RUN: llc < %s -march=arm -enable-tail-merge | grep bl.*quux | count 1
0 ; RUN: llc < %s -enable-tail-merge | FileCheck %s
21 ; Check that calls to baz and quux are tail-merged.
32 ; PR1628
43
4 ; CHECK: bl _baz
5 ; CHECK-NOT: bl _baz
6 ; CHECK: bl _quux
7 ; CHECK-NOT: bl _quux
8
59 ; ModuleID = 'tail.c'
6 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"
7 target triple = "i686-apple-darwin8"
10 target triple = "arm-apple-darwin8"
811
912 define i32 @f(i32 %i, i32 %q) {
1013 entry: