1; RUN: llc < %s -march=amdgcn -mcpu=tahiti -verify-machineinstrs | FileCheck %s 2; RUN: llc < %s -march=amdgcn -mcpu=tonga -verify-machineinstrs | FileCheck %s 3 4; load a f64 value from the global address space. 5; CHECK-LABEL: {{^}}load_f64: 6; CHECK: buffer_load_dwordx2 v[{{[0-9]+:[0-9]+}}] 7; CHECK: buffer_store_dwordx2 v[{{[0-9]+:[0-9]+}}] 8define void @load_f64(double addrspace(1)* %out, double addrspace(1)* %in) { 9 %1 = load double, double addrspace(1)* %in 10 store double %1, double addrspace(1)* %out 11 ret void 12} 13 14; CHECK-LABEL: {{^}}load_i64: 15; CHECK: buffer_load_dwordx2 v[{{[0-9]+:[0-9]+}}] 16; CHECK: buffer_store_dwordx2 v[{{[0-9]+:[0-9]+}}] 17define void @load_i64(i64 addrspace(1)* %out, i64 addrspace(1)* %in) { 18 %tmp = load i64, i64 addrspace(1)* %in 19 store i64 %tmp, i64 addrspace(1)* %out, align 8 20 ret void 21} 22 23; Load a f64 value from the constant address space. 24; CHECK-LABEL: {{^}}load_const_addrspace_f64: 25; CHECK: s_load_dwordx2 s[{{[0-9]+:[0-9]+}}] 26; CHECK: buffer_store_dwordx2 v[{{[0-9]+:[0-9]+}}] 27define void @load_const_addrspace_f64(double addrspace(1)* %out, double addrspace(2)* %in) { 28 %1 = load double, double addrspace(2)* %in 29 store double %1, double addrspace(1)* %out 30 ret void 31} 32