1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s
4 define void @t() nounwind ssp {
7 ; CHECK: movl %ecx, %eax
8 ; CHECK: %eax = foo (%eax, %ecx)
9 %b = alloca i32 ; <ptr> [#uses=2]
10 %a = alloca i32 ; <ptr> [#uses=1]
11 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
12 %0 = load i32, ptr %b, align 4 ; <i32> [#uses=1]
13 %1 = load i32, ptr %b, align 4 ; <i32> [#uses=1]
14 %asmtmp = call i32 asm "$0 = foo ($1, $2)", "=&{ax},%0,r,~{dirflag},~{fpsr},~{flags}"(i32 %0, i32 %1) nounwind ; <i32> [#uses=1]
15 store i32 %asmtmp, ptr %a
18 return: ; preds = %entry
22 define void @t2() nounwind ssp {
26 ; CHECK: [[D2:%e.x]] = foo
30 %b = alloca i32 ; <ptr> [#uses=2]
31 %a = alloca i32 ; <ptr> [#uses=1]
32 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
33 %0 = load i32, ptr %b, align 4 ; <i32> [#uses=1]
34 %1 = load i32, ptr %b, align 4 ; <i32> [#uses=1]
35 %asmtmp = call i32 asm "$0 = foo ($1, $2)", "=&r,%0,r,~{dirflag},~{fpsr},~{flags}"(i32 %0, i32 %1) nounwind ; <i32> [#uses=1]
36 store i32 %asmtmp, ptr %a
39 return: ; preds = %entry