xref: /llvm-project/llvm/test/CodeGen/Generic/2011-07-07-ScheduleDAGCrash.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2
3; This caused ScheduleDAG to crash in EmitPhysRegCopy when searching
4; the uses of a copy to a physical register without ignoring non-data
5; dependence, PR10220.
6
7define void @f(ptr nocapture %a, ptr nocapture %b, ptr nocapture %cc, ptr nocapture %dd) nounwind uwtable noinline ssp {
8entry:
9  %c = load i256, ptr %cc
10  %d = load i256, ptr %dd
11  %add = add nsw i256 %c, %d
12  store i256 %add, ptr %a, align 8
13  %or = or i256 %c, 1606938044258990275541962092341162602522202993782792835301376
14  %add6 = add nsw i256 %or, %d
15  store i256 %add6, ptr %b, align 8
16  ret void
17}
18