blob: 56e21bc9bd6481a088114768bb5b0654be61fa68 [file] [log] [blame]
Matt Arsenaultd1097a32016-06-02 19:54:26 +00001; 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
Matt Arsenault7aad8fd2017-01-24 22:02:15 +00003; 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
Matt Arsenaultd1097a32016-06-02 19:54:26 +00004
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
Yaxun Liu0124b542018-02-13 18:00:25 +00009define amdgpu_kernel void @constant_load_f64(double addrspace(1)* %out, double addrspace(4)* %in) #0 {
10 %ld = load double, double addrspace(4)* %in
Matt Arsenaultd1097a32016-06-02 19:54:26 +000011 store double %ld, double addrspace(1)* %out
12 ret void
13}
14
15attributes #0 = { nounwind }