comparison llvm/test/CodeGen/AMDGPU/add-debug.ll @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 1f2b6ac9f198
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
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 amdgpu_kernel 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