blob: 2eb25ec7738b07a928248a810f68d6fa0a4a7602 [file] [log] [blame]
Juergen Ributzka618ce3e2014-07-16 22:20:51 +00001; RUN: llc -fast-isel < %s | FileCheck %s
2target 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"
3target 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.
8define 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
17declare i8* @foo(i8*)
18declare void @bar()