brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2f28d0f Raw
42 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s2; pr53913 4define void @t() nounwind ssp {5entry:6; CHECK-LABEL: t:7; CHECK: movl %ecx, %eax8; 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 %a16  br label %return17 18return:                                           ; preds = %entry19  ret void20}21 22define void @t2() nounwind ssp {23entry:24; CHECK-LABEL: t2:25; CHECK: movl26; CHECK: [[D2:%e.x]] = foo27; CHECK: ([[D2]],28; CHECK-NOT: [[D2]]29; CHECK: )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 %a37  br label %return38 39return:                                           ; preds = %entry40  ret void41}42