~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/amd/compiler/tests/test_insert_waitcnt.cpp

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
   Operand chan_counter(PhysReg(260), v1);
37
37
   Operand m(m0, s1);
38
38
 
39
 
   Instruction *ds_instr;
 
39
   Instruction* ds_instr;
40
40
   //>> ds_ordered_count %0:v[0], %0:v[3], %0:m0 offset0:3072 gds storage:gds semantics:volatile
41
41
   //! s_waitcnt lgkmcnt(0)
42
42
   ds_instr = bld.ds(aco_opcode::ds_ordered_count, def0, gds_base, m, 3072u, 0u, true);
43
43
   ds_instr->ds().sync = memory_sync_info(storage_gds, semantic_volatile);
44
44
 
45
45
   //! ds_add_rtn_u32 %0:v[1], %0:v[3], %0:v[4], %0:m0 gds storage:gds semantics:volatile,atomic,rmw
46
 
   ds_instr = bld.ds(aco_opcode::ds_add_rtn_u32, def1,
47
 
                     gds_base, chan_counter, m, 0u, 0u, true);
 
46
   ds_instr = bld.ds(aco_opcode::ds_add_rtn_u32, def1, gds_base, chan_counter, m, 0u, 0u, true);
48
47
   ds_instr->ds().sync = memory_sync_info(storage_gds, semantic_atomicrmw);
49
48
 
50
49
   //! s_waitcnt lgkmcnt(0)