Tom Stellard | 49f8bfd | 2015-01-06 18:00:21 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s |
Matt Arsenault | 8c4fb7c | 2014-10-21 21:08:36 +0000 | [diff] [blame] | 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 | } |