llvm.org GIT mirror llvm / e968514
Testcases for PR1628. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41719 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 12 years ago
3 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*baz | count 1
11 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*quux | count 1
2 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge -enable-eh | grep bl.*baz | count 1
3 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge -enable-eh | grep bl.*quux | count 1
24 ; Check that calls to baz and quux are tail-merged.
5 ; PR1628
36
47 ; ModuleID = 'tail.c'
58 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"
0 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*baz | count 1
11 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*quux | count 1
2 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge -enable-eh | grep bl.*baz | count 1
3 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge -enable-eh | grep bl.*quux | count 1
24 ; Check that calls to baz and quux are tail-merged.
5 ; PR1628
36
47 ; ModuleID = 'tail.c'
58 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"
11 ; RUN: llvm-as < %s | llc -march=arm | grep bl.*quux | count 1
22 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 | grep bl.*baz | count 2
33 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 | grep bl.*quux | count 2
4 ; RUN: llvm-as < %s | llc -march=arm -enable-eh | grep bl.*baz | count 1
5 ; RUN: llvm-as < %s | llc -march=arm -enable-eh | grep bl.*quux | count 1
6 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 -enable-eh | grep bl.*baz | count 2
7 ; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 -enable-eh | grep bl.*quux | count 2
48 ; Check that tail merging is the default on ARM, and that -enable-tail-merge=0 works.
9 ; PR1628
510
611 ; ModuleID = 'tail.c'
712 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"