mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
29
spec/tests/gas/test_comments.txt
Normal file
29
spec/tests/gas/test_comments.txt
Normal 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
|
9
spec/tests/gas/test_cpuid.txt
Normal file
9
spec/tests/gas/test_cpuid.txt
Normal 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
|
Reference in New Issue
Block a user