blob: ed7bf1983ba2e6223c7d227ce8b3c41b222d5951 [file] [log] [blame]
Jakob Stoklund Olesend843b392010-06-28 18:34:34 +00001; RUN: llc < %s -march=x86 -O0 | FileCheck %s
2; PR7509
3%asmtype = type { i32, i8*, i32, i32 }
4
5; Arguments 1 and 4 must be the same. No other output arguments may be
6; allocated %eax.
7
8; CHECK: InlineAsm Start
9; CHECK: arg1 %[[A1:...]]
10; CHECK-NOT: ax
11; CHECK: arg4 %[[A1]]
12; CHECK: InlineAsm End
13
14define i32 @func(i8* %s) nounwind ssp {
15entry:
16 %0 = tail call %asmtype asm "arg0 $0\0A\09arg1 $1\0A\09arg2 $2\0A\09arg3 $3\0A\09arg4 $4", "={ax},=r,=r,=r,1,~{dirflag},~{fpsr},~{flags}"(i8* %s) nounwind, !srcloc !0 ; <%0> [#uses=1]
17 %asmresult = extractvalue %asmtype %0, 0 ; <i64> [#uses=1]
18 ret i32 %asmresult
19}
20
21!0 = metadata !{i32 108}