1 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=VI -check-prefix=GCN %s
3 declare i64 @llvm.amdgcn.s.memrealtime() #0
5 ; GCN-LABEL: {{^}}test_s_memrealtime:
6 ; GCN-DAG: s_memrealtime s{{\[[0-9]+:[0-9]+\]}}
7 ; GCN-DAG: s_load_dwordx2
11 ; GCN: s_memrealtime s{{\[[0-9]+:[0-9]+\]}}
13 define amdgpu_kernel void @test_s_memrealtime(i64 addrspace(1)* %out) #0 {
14 %cycle0 = call i64 @llvm.amdgcn.s.memrealtime()
15 store volatile i64 %cycle0, i64 addrspace(1)* %out
17 %cycle1 = call i64 @llvm.amdgcn.s.memrealtime()
18 store volatile i64 %cycle1, i64 addrspace(1)* %out
22 attributes #0 = { nounwind }