Revert 239644.
[oota-llvm.git] / test / CodeGen / R600 / add-debug.ll
1 ; RUN: llc < %s -march=amdgcn -mcpu=tahiti -debug
2 ; RUN: llc < %s -march=amdgcn -mcpu=tonga -debug
3 ; REQUIRES: asserts
4
5 ; Check that SelectionDAGDumper does not crash on int_SI_if.
6 define void @add64_in_branch(i64 addrspace(1)* %out, i64 addrspace(1)* %in, i64 %a, i64 %b, i64 %c) {
7 entry:
8   %0 = icmp eq i64 %a, 0
9   br i1 %0, label %if, label %else
10
11 if:
12   %1 = load i64, i64 addrspace(1)* %in
13   br label %endif
14
15 else:
16   %2 = add i64 %a, %b
17   br label %endif
18
19 endif:
20   %3 = phi i64 [%1, %if], [%2, %else]
21   store i64 %3, i64 addrspace(1)* %out
22   ret void
23 }
24