[llvm] r199109 - ARM: add test for r199108. Oops.
Tim Northover
tnorthover at apple.com
Mon Jan 13 06:20:26 PST 2014
Author: tnorthover
Date: Mon Jan 13 08:20:25 2014
New Revision: 199109
URL: http://llvm.org/viewvc/llvm-project?rev=199109&view=rev
Log:
ARM: add test for r199108. Oops.
rdar://problem/15800156
Added:
llvm/trunk/test/CodeGen/ARM/thumb-litpool.ll
Added: llvm/trunk/test/CodeGen/ARM/thumb-litpool.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/thumb-litpool.ll?rev=199109&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/thumb-litpool.ll (added)
+++ llvm/trunk/test/CodeGen/ARM/thumb-litpool.ll Mon Jan 13 08:20:25 2014
@@ -0,0 +1,15 @@
+; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=static -o - | FileCheck %s
+; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=pic -o - | FileCheck %s
+
+ at var = global i8 zeroinitializer
+
+declare void @callee(i8*)
+
+define void @foo() minsize {
+; CHECK-LABEL: foo:
+; CHECK: ldr {{r[0-7]}}, LCPI0_0
+ call void @callee(i8* @var)
+ call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7}"()
+ call void @callee(i8* @var)
+ ret void
+}
\ No newline at end of file
More information about the llvm-commits
mailing list