29 lines · plain
1; RUN: llc < %s -mtriple=armv4t-unknown-eabi | FileCheck %s -check-prefix=THUMB2; RUN: llc < %s -mtriple=armv4-unknown-eabi -mcpu=strongarm | FileCheck %s -check-prefix=ARM3; RUN: llc < %s -mtriple=armv7-unknown-eabi -mcpu=cortex-a8 | FileCheck %s -check-prefix=THUMB4; RUN: llc < %s -mtriple=armv6-unknown-eabi | FileCheck %s -check-prefix=THUMB5; RUN: llc < %s -mtriple=armv4-unknown-eabi | FileCheck %s -check-prefix=ARM6; RUN: llc < %s -mtriple=armv4t-unknown-eabi | FileCheck %s -check-prefix=THUMB7 8define i32 @test_return(i32 %a) nounwind readnone {9entry:10; ARM-LABEL: test_return11; ARM: mov pc12; THUMB-LABEL: test_return13; THUMB: bx14 ret i32 %a15}16 17@helper = global ptr null, align 418 19define i32 @test_indirect() #0 {20entry:21; ARM-LABEL: test_indirect22; ARM: mov pc23; THUMB-LABEL: test_indirect24; THUMB: bx25 %0 = load ptr, ptr @helper, align 426 %call = tail call i32 %0()27 ret i32 %call28}29