2010-03-06 20:39:36 +01:00
|
|
|
; RUN: llc < %s -mtriple=arm-unknown-eabi | FileCheck %s -check-prefix=THUMB
|
|
|
|
; RUN: llc < %s -mtriple=arm-unknown-eabi -mcpu=strongarm | FileCheck %s -check-prefix=ARM
|
|
|
|
; RUN: llc < %s -mtriple=arm-unknown-eabi -mcpu=cortex-a8 | FileCheck %s -check-prefix=THUMB
|
|
|
|
; RUN: llc < %s -mtriple=arm-unknown-eabi -mattr=+v6 | 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
|
|
|
|
|
2010-06-15 21:04:29 +02:00
|
|
|
define i32 @test(i32 %a) nounwind readnone {
|
2010-03-06 20:39:36 +01:00
|
|
|
entry:
|
|
|
|
; ARM: mov pc
|
|
|
|
; THUMB: bx
|
|
|
|
ret i32 %a
|
|
|
|
}
|