; The first active lane in a full wave64 is lane 0. Reading the lane number in ; two independent wave32 halves would give the second half 32 instead. v_mbcnt_lo_u32_b32 v0, -1, 0 v_mbcnt_hi_u32_b32 v0, -1, v0 v_readfirstlane_b32 s4, v0 v_add_nc_u32_e32 v1, s4, v0 exp pos0 v1, v1, v1, v1 done s_endpgm