mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
ARM: add test for r199108. Oops.
rdar://problem/15800156 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08a8edb848
commit
dc408573c4
15
test/CodeGen/ARM/thumb-litpool.ll
Normal file
15
test/CodeGen/ARM/thumb-litpool.ll
Normal file
@ -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
|
||||
|
||||
@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
|
||||
}
|
Loading…
Reference in New Issue
Block a user