1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/ARM/thumb-litpool.ll
Tim Northover e33f96dc43 ARM: add test for r199108. Oops.
rdar://problem/15800156

llvm-svn: 199109
2014-01-13 14:20:25 +00:00

15 lines
474 B
LLVM

; 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
@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
}