llvm.org GIT mirror llvm / b646a4b
Convert a few tests to FileCheck. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224705 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
4 changed file(s) with 38 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
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 -march=arm | FileCheck %s
1
22 ; Check that calls to baz and quux are tail-merged.
3 ; CHECK: bl _baz
4 ; CHECK-NOT: bl _baz
5 ; CHECK: bl _quux
6 ; CHECK-NOT: bl _quux
7
38 ; PR1628
49
510 ; ModuleID = 'tail.c'
None ; RUN: llc < %s -march=arm | grep bl.*baz | count 1
1 ; RUN: llc < %s -march=arm | grep bl.*quux | count 1
2 ; RUN: llc < %s -march=arm -enable-tail-merge=0 | grep bl.*baz | count 2
3 ; RUN: llc < %s -march=arm -enable-tail-merge=0 | grep bl.*quux | count 2
4 ; Check that tail merging is the default on ARM, and that -enable-tail-merge=0 works.
0 ; RUN: llc < %s -march=arm | FileCheck %s
1 ; RUN: llc < %s -march=arm -enable-tail-merge=0 | \
2 ; RUN: FileCheck --check-prefix=NOMERGE %s
3
4 ; Check that tail merging is the default on ARM, and that -enable-tail-merge=0
5 ; works.
56 ; PR1628
7
8 ; CHECK: bl _baz
9 ; CHECK-NOT: bl _baz
10
11 ; CHECK: bl _quux
12 ; CHECK-NOT: bl _quux
13
14 ; NOMERGE: bl _baz
15 ; NOMERGE: bl _baz
16
17 ; NOMERGE: bl _quux
18 ; NOMERGE: bl _quux
619
720 ; ModuleID = 'tail.c'
821 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"
None ; RUN: llc < %s -march=arm | grep "bl.*__ltdf" | count 1
0 ; RUN: llc < %s -march=arm | FileCheck %s
1
12 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:128:128"
23 target triple = "i386-apple-darwin8"
34
45 ; Without CSE of libcalls, there are two calls in the output instead of one.
6
7 ; CHECK: bl ___ltdf
8 ; CHECK-NOT: bl ___ltdf
59
610 define double @u_f_nonbon(double %lambda) nounwind {
711 entry:
None ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
1 ; RUN: grep "i(TPOFF)"
2 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
3 ; RUN: grep "__aeabi_read_tp"
4 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
5 ; RUN: -relocation-model=pic | grep "__tls_get_addr"
0 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s
1 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi -relocation-model=pic | \
2 ; RUN: FileCheck %s --check-prefix=PIC
63
4
5 ; CHECK: i(TPOFF)
6 ; CHECK: __aeabi_read_tp
7
8 ; PIC: __tls_get_addr
79
810 @i = thread_local global i32 15 ; [#uses=2]
911