brintos

brintos / llvm-project-archived public Read only

0
0
Text · 541 B · ced9a13 Raw
16 lines · plain
1; RUN: llc -mtriple=amdgcn < %s | FileCheck -check-prefix=SI %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=SI %s3 4; Make sure the GlobalDirective isn't merged with the function name5 6; SI:	.globl	foo7; SI: {{^}}foo:8define amdgpu_kernel void @foo(ptr addrspace(1) %out, ptr addrspace(1) %in) {9  %b_ptr = getelementptr i32, ptr addrspace(1) %in, i32 110  %a = load i32, ptr addrspace(1) %in11  %b = load i32, ptr addrspace(1) %b_ptr12  %result = add i32 %a, %b13  store i32 %result, ptr addrspace(1) %out14  ret void15}16