R600: Use default GlobalDirective
[oota-llvm.git] / test / CodeGen / R600 / global-directive.ll
1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2
3 ; Make sure the GlobalDirective isn't merged with the function name
4
5 ; SI:   .globl  foo
6 ; SI: {{^}}foo:
7 define void @foo(i32 addrspace(1)* %out, i32 addrspace(1)* %in) {
8   %b_ptr = getelementptr i32 addrspace(1)* %in, i32 1
9   %a = load i32 addrspace(1)* %in
10   %b = load i32 addrspace(1)* %b_ptr
11   %result = add i32 %a, %b
12   store i32 %result, i32 addrspace(1)* %out
13   ret void
14 }