1 ; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-NOHSA -check-prefix=FUNC %s 2 ; RUN: llc -mtriple=amdgcn-amdhsa -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-HSA -check-prefix=FUNC %s 3 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-NOHSA -check-prefix=FUNC %s 4 5 ; FUNC-LABEL: {{^}}constant_load_f64: 6 ; GCN: s_load_dwordx2 s[{{[0-9]+:[0-9]+}}] 7 ; GCN-NOHSA: buffer_store_dwordx2 8 ; GCN-HSA: flat_store_dwordx2 9 define void @constant_load_f64(double addrspace(1)* %out, double addrspace(2)* %in) #0 { 10 %ld = load double, double addrspace(2)* %in 11 store double %ld, double addrspace(1)* %out 12 ret void 13 } 14 15 attributes #0 = { nounwind } 16