1 ; RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump --no-print-imm-hex --show-all-symbols -d - | FileCheck %s
3 define hidden i32 @bah(ptr %start) #0 align 2 {
4 %1 = ptrtoint ptr %start to i32
5 %2 = tail call i32 asm sideeffect "@ Enter ARM Mode \0A\09adr r3, 1f \0A\09bx r3 \0A\09.align 2 \0A\09.code 32 \0A1: push {r7} \0A\09mov r7, $4 \0A\09svc 0x0 \0A\09pop {r7} \0A\09@ Enter THUMB Mode\0A\09adr r3, 2f+1 \0A\09bx r3 \0A\09.code 16 \0A2: \0A\09", "={r0},{r0},{r1},{r2},r,~{r3}"(i32 %1, i32 %1, i32 0, i32 983042) #3
11 ; CHECK-NEXT: e52d7004 str r7, [sp, #-4]!
13 ; CHECK-NEXT: 1c48 adds r0, r1, #1