Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DAGCombiner] add testcase for issue #60744; NFC
- Loading branch information
1 parent
795aebf
commit a8c630e
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
; RUN: llc < %s -mtriple=i686-unknown-linux-android24 -verify-machineinstrs \ | ||
; RUN: -debug-only=machine-scheduler -o - 2>&1 | FileCheck %s | ||
; REQUIRES: asserts | ||
|
||
;; MOVUPSmr is a merged store from stack objects %ir.arg1, %ir.arg2, %ir.arg3, | ||
;; %ir.arg4. | ||
;; FIXME: the merged store should have dependency with %ir.arg4. | ||
|
||
; CHECK: ********** MI Scheduling ********** | ||
; CHECK-LABEL: f:%bb.0 bb | ||
; CHECK: SU([[ARG4:[0-9]+]]):{{.*}}MOV32rm{{.*}}load (s32) from %ir.arg4 | ||
; CHECK: SU([[#WIDEN:]]):{{.*}}MOVUPSmr{{.*}}store (s128) into | ||
; CHECK: Predecessors: | ||
; CHECK-NOT: SU([[ARG4]]):{{.*}}Memory | ||
; CHECK: SU([[#WIDEN+1]]) | ||
; | ||
|
||
define void @f(ptr %arg, ptr byval(ptr) %arg1, ptr byval(ptr) %arg2, ptr byval(ptr) %arg3, ptr byval(ptr) %arg4) #0 { | ||
bb: | ||
%inst = alloca ptr, align 4 | ||
%inst5 = alloca ptr, align 4 | ||
%inst6 = alloca ptr, align 4 | ||
%inst7 = alloca ptr, align 4 | ||
%inst9 = load ptr, ptr %arg1, align 4 | ||
store ptr null, ptr %arg1, align 4 | ||
store ptr %inst9, ptr %inst, align 4 | ||
%inst10 = load ptr, ptr %arg2, align 4 | ||
store ptr null, ptr %arg2, align 4 | ||
store ptr %inst10, ptr %inst5, align 4 | ||
%inst11 = load ptr, ptr %arg3, align 4 | ||
store ptr null, ptr %arg3, align 4 | ||
store ptr %inst11, ptr %inst6, align 4 | ||
%inst12 = load ptr, ptr %arg4, align 4 | ||
store ptr null, ptr %arg4, align 4 | ||
store ptr %inst12, ptr %inst7, align 4 | ||
call void @g(ptr %arg, ptr byval(ptr) %inst, ptr byval(ptr) %inst5, ptr byval(ptr) %inst6, ptr byval(ptr) %inst7) | ||
call void @h(ptr %arg4) | ||
call void @h(ptr %arg3) | ||
call void @h(ptr %arg2) | ||
call void @h(ptr %arg1) | ||
ret void | ||
} | ||
|
||
declare void @g(ptr, ptr, ptr, ptr, ptr) | ||
|
||
declare void @h(ptr) | ||
|
||
attributes #0 = { optsize "frame-pointer"="non-leaf" "target-cpu"="i686" "target-features"="+sse,+sse2" "tune-cpu"="generic" } |