Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View File

@ -0,0 +1,29 @@
---input---
lock addq $0, /* comments */ (%rsp) /*
// comments
*/ xorq %rax, %rax // comments
---tokens---
'lock' Name.Attribute
' ' Text.Whitespace
'addq' Name.Function
' ' Text.Whitespace
'$0' Name.Constant
',' Punctuation
' ' Text.Whitespace
'/* comments */' Comment.Multiline
' ' Text.Whitespace
'(' Punctuation
'%rsp' Name.Variable
')' Punctuation
' ' Text.Whitespace
'/*\n// comments\n*/' Comment.Multiline
' ' Text.Whitespace
'xorq' Name.Function
' ' Text.Whitespace
'%rax' Name.Variable
',' Punctuation
' ' Text.Whitespace
'%rax' Name.Variable
' ' Text.Whitespace
'// comments\n' Comment.Single

View File

@ -0,0 +1,9 @@
# CPU is a valid directive, and we don't want to parse this as
# cpu id, but as a single token. See bug #1517
---input---
cpuid
---tokens---
'cpuid' Name.Function
'\n' Text.Whitespace