2014-07-25 17:55:01 +08:00
|
|
|
; RUN: llc -mtriple=thumb-unknown-unknown -no-integrated-as < %s | FileCheck %s --check-prefix=THUMB
|
|
|
|
; RUN: llc -mtriple=arm-unknown-unknown -no-integrated-as < %s | FileCheck %s --check-prefix=ARM
|
2014-07-25 13:12:49 +08:00
|
|
|
|
|
|
|
; In thumb mode, emit ".code 16" before global inline-asm instructions.
|
|
|
|
|
|
|
|
; THUMB: .code 16
|
|
|
|
; THUMB: stmib
|
|
|
|
; THUMB: .code 16
|
|
|
|
|
|
|
|
; ARM-NOT: .code 16
|
|
|
|
; ARM: stmib
|
|
|
|
|
|
|
|
module asm "stmib sp, {r0-r14};"
|