Skip to content

Commit

Permalink
Fix asm lexer to correctly match conditional jcc, cmovcc, and setcc i…
Browse files Browse the repository at this point in the history
…nstructions
  • Loading branch information
Miles Canfield committed Feb 25, 2018
1 parent cbbf928 commit e31b1e0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lua/lexers/asm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,18 @@ local instruction = token('instruction', word_match{
'str', 'sub', 'svdc', 'svldt', 'svts', 'swapgs', 'syscall', 'sysenter',
'sysexit', 'sysret', 'test', 'ud0', 'ud1', 'ud2b', 'ud2', 'ud2a', 'umov',
'verr', 'verw', 'fwait', 'wbinvd', 'wrshr', 'wrmsr', 'xadd', 'xbts',
'xchg', 'xlatb', 'xlat', 'xor', 'cmovcc', 'jcc', 'setcc',
-- Katmai Streaming SIMD instructions (SSE -- a.k.a. KNI, XMM, MMX2).
'xchg', 'xlatb', 'xlat', 'xor', 'cmova', 'cmovae', 'cmovb', 'cmovbe',
'cmovc', 'cmove', 'cmovg', 'cmovge', 'cmovl', 'cmovle', 'cmovna', 'cmovnae',
'cmovnb', 'cmovnbe', 'cmovnc', 'cmovne', 'cmovng', 'cmovnge', 'cmovnl',
'cmovnle', 'cmovno', 'cmovnp', 'cmovns', 'cmovnz', 'cmovo', 'cmovp',
'cmovpe', 'cmovpo', 'cmovs', 'cmovz', 'cmovcc', 'ja', 'jae', 'jb', 'jbe',
'jc', 'je', 'jg', 'jge', 'jl', 'jle', 'jna', 'jnae', 'jnb', 'jnbe', 'jnc',
'jne', 'jng', 'jnge', 'jnl', 'jnle', 'jno', 'jnp', 'jns', 'jnz', 'jo', 'jp',
'jpe', 'jpo', 'js', 'jz', 'seta', 'setae', 'setb', 'setbe', 'setc', 'sete',
'setg', 'setge', 'setl', 'setle', 'setna', 'setnae', 'setnb', 'setnbe',
'setnc', 'setne', 'setng', 'setnge', 'setnl', 'setnle', 'setno', 'setnp',
'setns', 'setnz', 'seto', 'setp', 'setpe', 'setpo', 'sets', 'setz',
--" Katmai Streaming SIMD instructions (SSE -- a.k.a. KNI, XMM, MMX2).
'addps', 'addss', 'andnps', 'andps', 'cmpeqps', 'cmpeqss', 'cmpleps',
'cmpless', 'cmpltps', 'cmpltss', 'cmpneqps', 'cmpneqss', 'cmpnleps',
'cmpnless', 'cmpnltps', 'cmpnltss', 'cmpordps', 'cmpordss', 'cmpunordps',
Expand Down

0 comments on commit e31b1e0

Please sign in to comment.