annotate llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.memrealtime.ll @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
150
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 declare i64 @llvm.amdgcn.s.memrealtime() #0
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 ; GCN-LABEL: {{^}}test_s_memrealtime:
anatofuz
parents:
diff changeset
6 ; GCN-DAG: s_memrealtime s{{\[[0-9]+:[0-9]+\]}}
anatofuz
parents:
diff changeset
7 ; GCN-DAG: s_load_dwordx2
anatofuz
parents:
diff changeset
8 ; GCN: lgkmcnt
anatofuz
parents:
diff changeset
9 ; GCN: _store_dwordx2
anatofuz
parents:
diff changeset
10 ; GCN-NOT: lgkmcnt
anatofuz
parents:
diff changeset
11 ; GCN: s_memrealtime s{{\[[0-9]+:[0-9]+\]}}
anatofuz
parents:
diff changeset
12 ; GCN: _store_dwordx2
anatofuz
parents:
diff changeset
13 define amdgpu_kernel void @test_s_memrealtime(i64 addrspace(1)* %out) #0 {
anatofuz
parents:
diff changeset
14 %cycle0 = call i64 @llvm.amdgcn.s.memrealtime()
anatofuz
parents:
diff changeset
15 store volatile i64 %cycle0, i64 addrspace(1)* %out
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 %cycle1 = call i64 @llvm.amdgcn.s.memrealtime()
anatofuz
parents:
diff changeset
18 store volatile i64 %cycle1, i64 addrspace(1)* %out
anatofuz
parents:
diff changeset
19 ret void
anatofuz
parents:
diff changeset
20 }
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 attributes #0 = { nounwind }