1 ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
3 ; Make sure the GlobalDirective isn't merged with the function name
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