120
|
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
|
121
|
3 ; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-NOHSA -check-prefix=FUNC %s
|
120
|
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
|
121
|
9 define amdgpu_kernel void @constant_load_f64(double addrspace(1)* %out, double addrspace(2)* %in) #0 {
|
120
|
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 }
|