1; RUN: llc -mtriple=thumb-unknown-unknown -no-integrated-as < %s | FileCheck %s --check-prefix=THUMB
2; RUN: llc -mtriple=arm-unknown-unknown -no-integrated-as < %s | FileCheck %s --check-prefix=ARM
3
4; In thumb mode, emit ".code 16" before global inline-asm instructions.
5
6; THUMB: .code 16
7; THUMB: stmib
8; THUMB: .code 16
9
10; ARM-NOT: .code 16
11; ARM:     stmib
12
13module asm "stmib sp, {r0-r14};"
14