xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/fast-isel-inline-asm.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; 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()
19