This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/amdgpu/amdgpu.isa
Thomas Symalla c8cf1576cd
Extend the AMDGPU lexer. (#2327)
Add support for scratch_ instructions, the attr*.* argument  as well
as the off modifier. Without support for attr*.*, multiple v_interp
instructions are previously rendered incorrectly.
2023-01-31 06:07:22 +01:00

14 lines
446 B
Text

s_load_dwordx2 s[4:5], s[0:1], 0x10
s_load_dwordx4 s[0:3], s[0:1], 0x00
scratch_load_dwordx3 v[2:5], v0, off
v_interp_p1_f32_e32 v2, v0, attr0.x
v_interp_p1_f32_e32 v3, v0, attr0.y
v_lshlrev_b32 v0, 2, v0
s_waitcnt lgkmcnt(0)
v_add_u32 v1, vcc, s2, v0
v_mov_b32 v2, s3
v_addc_u32 v2, vcc, v2, 0, vcc
v_add_u32 v3, vcc, s0, v0
v_mov_b32 v4, s1
v_addc_u32 v4, vcc, v4, 0, vcc
buffer_load_dword v4, v2, s[8:11], 0 offen