| ; RUN: llc < %s -mtriple=armv4t-unknown-eabi | FileCheck %s -check-prefix=THUMB |
| ; RUN: llc < %s -mtriple=armv4-unknown-eabi -mcpu=strongarm | FileCheck %s -check-prefix=ARM |
| ; RUN: llc < %s -mtriple=armv7-unknown-eabi -mcpu=cortex-a8 | FileCheck %s -check-prefix=THUMB |
| ; RUN: llc < %s -mtriple=armv6-unknown-eabi | FileCheck %s -check-prefix=THUMB |
| ; RUN: llc < %s -mtriple=armv4-unknown-eabi | FileCheck %s -check-prefix=ARM |
| ; RUN: llc < %s -mtriple=armv4t-unknown-eabi | FileCheck %s -check-prefix=THUMB |
| define i32 @test_return(i32 %a) nounwind readnone { |
| ; THUMB-LABEL: test_return |
| @helper = global ptr null, align 4 |
| define i32 @test_indirect() #0 { |
| ; ARM-LABEL: test_indirect |
| ; THUMB-LABEL: test_indirect |
| %0 = load ptr, ptr @helper, align 4 |
| %call = tail call i32 %0() |