Juergen Ributzka | 618ce3e | 2014-07-16 22:20:51 +0000 | [diff] [blame] | 1 | ; RUN: llc -fast-isel < %s | FileCheck %s |
| 2 | target datalayout = "e-m:o-p:32:32-i1:8:32-i8:8:32-i16:16:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32" |
| 3 | target triple = "thumbv7-apple-ios5.0.0" |
| 4 | |
| 5 | %0 = type opaque |
| 6 | |
| 7 | ; Make sure that the inline asm starts right after the call to bar. |
| 8 | define void @test_inline_asm_sideeffect(%0* %call) { |
| 9 | ; CHECK: bl _bar |
| 10 | ; CHECK-NEXT: InlineAsm Start |
| 11 | call void @bar() |
| 12 | call void asm sideeffect "mov\09r7, r7\09\09@ marker", ""() |
| 13 | %1 = call %0* bitcast (i8* (i8*)* @foo to %0* (%0*)*)(%0* %call) |
| 14 | ret void |
| 15 | } |
| 16 | |
| 17 | declare i8* @foo(i8*) |
| 18 | declare void @bar() |