~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/freedreno/computerator/examples/branch.asm

  • Committer: mmach
  • Date: 2022-09-22 19:56:13 UTC
  • Revision ID: netbit73@gmail.com-20220922195613-wtik9mmy20tmor0i
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@localsize 16, 1, 1
2
 
@buf 16  ; g[0]
3
 
@invocationid(r0.x) ; r0.xyz
4
 
@branchstack 1
5
 
cmps.u.gt p0.x, r0.x, 0
6
 
mov.u32u32 r1.x, 0x87654321
7
 
(rpt5)nop
8
 
br !p0.x, #endif
9
 
mov.u32u32 r1.x, 0x12345678
10
 
endif:
11
 
(jp)(rpt5)nop
12
 
stib.b.untyped.1d.u32.1.imm r1.x, r0.x, 0
13
 
end
14
 
nop
15