source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/global-directive.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: 582 bytes
Line 
1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
3
4; Make sure the GlobalDirective isn't merged with the function name
5
6; SI:   .globl  foo
7; SI: {{^}}foo:
8define void @foo(i32 addrspace(1)* %out, i32 addrspace(1)* %in) {
9  %b_ptr = getelementptr i32, i32 addrspace(1)* %in, i32 1
10  %a = load i32, i32 addrspace(1)* %in
11  %b = load i32, i32 addrspace(1)* %b_ptr
12  %result = add i32 %a, %b
13  store i32 %result, i32 addrspace(1)* %out
14  ret void
15}
Note: See TracBrowser for help on using the repository browser.