llvm.org GIT mirror llvm / d0626aa
Added a testcase for PR10220. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134573 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 9 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc < %s
1 ; This used to cause ScheduleDAG to crash during EmitPhysRegCopy when it mistook
2 ; followed a non-control dependence, PR10220.
3
4 define void @f(i256* nocapture %a, i256* nocapture %b, i256* nocapture %cc, i256* nocapture %dd) nounwind uwtable noinline ssp {
5 entry:
6 %c = load i256* %cc
7 %d = load i256* %dd
8 %add = add nsw i256 %c, %d
9 store i256 %add, i256* %a, align 8
10 %or = or i256 %c, 1606938044258990275541962092341162602522202993782792835301376
11 %add6 = add nsw i256 %or, %d
12 store i256 %add6, i256* %b, align 8
13 ret void
14 }