aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/subtarget-features-long-calls.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/subtarget-features-long-calls.ll')
-rw-r--r--test/CodeGen/ARM/subtarget-features-long-calls.ll49
1 files changed, 0 insertions, 49 deletions
diff --git a/test/CodeGen/ARM/subtarget-features-long-calls.ll b/test/CodeGen/ARM/subtarget-features-long-calls.ll
deleted file mode 100644
index 430ae3d13307..000000000000
--- a/test/CodeGen/ARM/subtarget-features-long-calls.ll
+++ /dev/null
@@ -1,49 +0,0 @@
-; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s
-; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+long-calls | FileCheck -check-prefix=LONGCALL %s
-; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-long-calls | FileCheck -check-prefix=NO-LONGCALL %s
-; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION %s
-; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+long-calls | FileCheck -check-prefix=LONGCALL %s
-; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-long-calls | FileCheck -check-prefix=NO-LONGCALL %s
-
-; NO-OPTION-LABEL: {{_?}}caller0
-; NO-OPTION: ldr [[R0:r[0-9]+]], [[L0:.*]]
-; NO-OPTION: blx [[R0]]
-; NO-OPTION: [[L0]]:
-; NO-OPTION: .long {{_?}}callee0
-
-; LONGCALL-LABEL: {{_?}}caller0
-; LONGCALL: ldr [[R0:r[0-9]+]], [[L0:.*]]
-; LONGCALL: blx [[R0]]
-; LONGCALL: [[L0]]:
-; LONGCALL: .long {{_?}}callee0
-
-; NO-LONGCALL-LABEL: {{_?}}caller0
-; NO-LONGCALL: bl {{_?}}callee0
-
-define i32 @caller0() #0 {
-entry:
- tail call void @callee0()
- ret i32 0
-}
-
-; NO-OPTION-LABEL: {{_?}}caller1
-; NO-OPTION: bl {{_?}}callee0
-
-; LONGCALL-LABEL: {{_?}}caller1
-; LONGCALL: ldr [[R0:r[0-9]+]], [[L0:.*]]
-; LONGCALL: blx [[R0]]
-; LONGCALL: [[L0]]:
-; LONGCALL: .long {{_?}}callee0
-
-; NO-LONGCALL-LABEL: {{_?}}caller1
-; NO-LONGCALL: bl {{_?}}callee0
-
-define i32 @caller1() {
-entry:
- tail call void @callee0()
- ret i32 0
-}
-
-declare void @callee0()
-
-attributes #0 = { "target-features"="+long-calls" }