49 lines · plain
1; RUN: llc < %s -mtriple=i686-unknown-linux-android24 -verify-machineinstrs \2; RUN: -debug-only=machine-scheduler -o - 2>&1 | FileCheck %s3; REQUIRES: asserts4 5;; MOVUPSmr is a merged store from stack objects %ir.arg1, %ir.arg2, %ir.arg3,6;; %ir.arg4.7;; Check that the merged store has dependency with %ir.arg4.8 9; CHECK: ********** MI Scheduling **********10; CHECK-LABEL: f:%bb.0 bb11; CHECK: SU([[ARG4:[0-9]+]]):{{.*}}MOV32rm{{.*}}load (s32) from %ir.arg412; CHECK: SU([[#WIDEN:]]):{{.*}}MOVUPSmr{{.*}}store (s128) into13; CHECK: Predecessors:14; CHECK: SU([[ARG4]]):{{.*}}Memory15; CHECK: SU([[#WIDEN+1]])16;17 18define void @f(ptr %arg, ptr byval(ptr) %arg1, ptr byval(ptr) %arg2, ptr byval(ptr) %arg3, ptr byval(ptr) %arg4) #0 {19bb:20 %inst = alloca ptr, align 421 %inst5 = alloca ptr, align 422 %inst6 = alloca ptr, align 423 %inst7 = alloca ptr, align 424 %inst9 = load ptr, ptr %arg1, align 425 store ptr null, ptr %arg1, align 426 store ptr %inst9, ptr %inst, align 427 %inst10 = load ptr, ptr %arg2, align 428 store ptr null, ptr %arg2, align 429 store ptr %inst10, ptr %inst5, align 430 %inst11 = load ptr, ptr %arg3, align 431 store ptr null, ptr %arg3, align 432 store ptr %inst11, ptr %inst6, align 433 %inst12 = load ptr, ptr %arg4, align 434 store ptr null, ptr %arg4, align 435 store ptr %inst12, ptr %inst7, align 436 call void @g(ptr %arg, ptr byval(ptr) %inst, ptr byval(ptr) %inst5, ptr byval(ptr) %inst6, ptr byval(ptr) %inst7)37 call void @h(ptr %arg4)38 call void @h(ptr %arg3)39 call void @h(ptr %arg2)40 call void @h(ptr %arg1)41 ret void42}43 44declare void @g(ptr, ptr, ptr, ptr, ptr)45 46declare void @h(ptr)47 48attributes #0 = { optsize "frame-pointer"="non-leaf" "target-cpu"="i686" "target-features"="+sse,+sse2" "tune-cpu"="generic" }49