blob: 189510ad08fec2101ab69c9e703bad7267ee573e [file] [log] [blame]
Tom Stellard49f8bfd2015-01-06 18:00:21 +00001; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
Matt Arsenault8c4fb7c2014-10-21 21:08:36 +00002
3; Make sure the GlobalDirective isn't merged with the function name
4
5; SI: .globl foo
6; SI: {{^}}foo:
7define 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}