Tom Stellard | 2d26fe7 | 2016-02-19 15:33:13 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=GCN %s |
| 2 | ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=fiji | FileCheck --check-prefix=GCN %s |
| 3 | |
| 4 | ; If flat_store_dword and flat_load_dword use different registers for the data |
| 5 | ; operand, this test is not broken. It just means it is no longer testing |
| 6 | ; for the original bug. |
| 7 | |
| 8 | ; GCN: {{^}}test: |
| 9 | ; GCN: flat_store_dword v[{{[0-9]+:[0-9]+}}], [[DATA:v[0-9]+]] |
| 10 | ; GCN: s_waitcnt vmcnt(0) lgkmcnt(0) |
| 11 | ; GCN: flat_load_dword [[DATA]], v[{{[0-9]+:[0-9]+}}] |
| 12 | define void @test(i32 addrspace(1)* %out, i32 %in) { |
| 13 | store volatile i32 0, i32 addrspace(1)* %out |
| 14 | %val = load volatile i32, i32 addrspace(1)* %out |
| 15 | ret void |
| 16 | } |