summaryrefslogtreecommitdiff
path: root/tests/examplefiles/amdgpu
diff options
context:
space:
mode:
authorThomas Symalla <5754458+tsymalla@users.noreply.github.com>2021-04-15 11:43:07 +0200
committerGitHub <noreply@github.com>2021-04-15 11:43:07 +0200
commite0ab1b0be9076189a9172afc4e1c90dcce6b070b (patch)
treee908eaf71a186f27a8c4a6c99baf1feebd5c2985 /tests/examplefiles/amdgpu
parentfda4403b1dd3c9c5c2bd55467dc5d3e9612270c9 (diff)
downloadpygments-git-e0ab1b0be9076189a9172afc4e1c90dcce6b070b.tar.gz
AMDGPU: Updated modifier tokenization. (#1775)
* Added new modifier tokenizer. * Add expected output for the AMDGPU test. * Used "words" function.
Diffstat (limited to 'tests/examplefiles/amdgpu')
-rw-r--r--tests/examplefiles/amdgpu/amdgpu.isa3
-rw-r--r--tests/examplefiles/amdgpu/amdgpu.isa.output19
2 files changed, 21 insertions, 1 deletions
diff --git a/tests/examplefiles/amdgpu/amdgpu.isa b/tests/examplefiles/amdgpu/amdgpu.isa
index fdab33cc..672fdcc1 100644
--- a/tests/examplefiles/amdgpu/amdgpu.isa
+++ b/tests/examplefiles/amdgpu/amdgpu.isa
@@ -7,4 +7,5 @@ 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 \ No newline at end of file
+v_addc_u32 v4, vcc, v4, 0, vcc
+buffer_load_dword v4, v2, s[8:11], 0 offen \ No newline at end of file
diff --git a/tests/examplefiles/amdgpu/amdgpu.isa.output b/tests/examplefiles/amdgpu/amdgpu.isa.output
index d8f1c0f5..6b9e0528 100644
--- a/tests/examplefiles/amdgpu/amdgpu.isa.output
+++ b/tests/examplefiles/amdgpu/amdgpu.isa.output
@@ -128,3 +128,22 @@
' ' Text.Whitespace
'vcc' Name.Variable
'\n' Text.Whitespace
+
+'buffer_load_dword' Keyword.Reserved
+' ' Text.Whitespace
+'v4' Name.Variable
+',' Text
+' ' Text.Whitespace
+'v2' Name.Variable
+',' Text
+' ' Text.Whitespace
+'s' Name.Variable
+'[' Text
+'8:11' Name.Attribute
+']' Text
+',' Text
+' ' Text.Whitespace
+'0' Literal.Number.Integer
+' ' Text.Whitespace
+'offen' Name.Attribute
+'\n' Text.Whitespace