Hal Finkel | 415e344 | 2014-08-13 01:15:37 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=r600 -mcpu=tahiti -debug |
| 2 | ; REQUIRES: asserts |
| 3 | |
| 4 | ; Check that SelectionDAGDumper does not crash on int_SI_if. |
| 5 | define void @add64_in_branch(i64 addrspace(1)* %out, i64 addrspace(1)* %in, i64 %a, i64 %b, i64 %c) { |
| 6 | entry: |
| 7 | %0 = icmp eq i64 %a, 0 |
| 8 | br i1 %0, label %if, label %else |
| 9 | |
| 10 | if: |
| 11 | %1 = load i64 addrspace(1)* %in |
| 12 | br label %endif |
| 13 | |
| 14 | else: |
| 15 | %2 = add i64 %a, %b |
| 16 | br label %endif |
| 17 | |
| 18 | endif: |
| 19 | %3 = phi i64 [%1, %if], [%2, %else] |
| 20 | store i64 %3, i64 addrspace(1)* %out |
| 21 | ret void |
| 22 | } |
| 23 | |