source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/lds-size.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 580 bytes
Line 
1; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
3; This test makes sure we do not double count global values when they are
4; used in different basic blocks.
5
6; CHECK: .long   166120
7; CHECK-NEXT: .long   1
8; CHECK-LABEL: {{^}}test:
9@lds = internal unnamed_addr addrspace(3) global i32 undef, align 4
10
11define void @test(i32 addrspace(1)* %out, i32 %cond) {
12entry:
13  %0 = icmp eq i32 %cond, 0
14  br i1 %0, label %if, label %else
15
16if:
17  store i32 1, i32 addrspace(3)* @lds
18  br label %endif
19
20else:
21  store i32 2, i32 addrspace(3)* @lds
22  br label %endif
23
24endif:
25  ret void
26}
Note: See TracBrowser for help on using the repository browser.