gen: xor rdx regardless of type, syntax: cyan identifiers
This commit is contained in:
parent
4458cdf796
commit
3a9213cbb2
6
gen.c
6
gen.c
|
@ -1018,8 +1018,12 @@ void gen_evalop(Gen*gen,PNode*pn,eval_elem*elem,size_t nops,Tok*curtok,FILE*file
|
|||
|
||||
// Set up for multiply/divide instructions
|
||||
if(curtok->subtype==LSDIV||curtok->subtype==LSMUL)
|
||||
if(!(elem[0].type==EE_I32&&elem[0].type==EE_I32))
|
||||
{
|
||||
/* if(!((elem[0].type==EE_I32)&&(elem[0].type==EE_I32))) */
|
||||
{
|
||||
opos+=sprintf(output_buffer+opos,"\t%s %%%s,%%%s\n",gen->ld.xor_wordsize,gen->ld.registers_abi_wordsize[2],gen->ld.registers_abi_wordsize[2]);
|
||||
}
|
||||
}
|
||||
|
||||
// Set up addressing mode
|
||||
addrmode=AM(elem[0].type,elem[1].type);
|
||||
|
|
|
@ -14,7 +14,7 @@ syn match LrEscapes /\\./
|
|||
syn keyword LrTodo contained TODO
|
||||
syn region LrString start=/\v"/ skip=/\v\\./ end=/\v"/ contains=LrEscapes
|
||||
|
||||
hi LrIdent ctermfg=blue guifg=#ff7700
|
||||
hi LrIdent ctermfg=cyan guifg=#ff7700
|
||||
hi def link LrComment Comment
|
||||
hi def link LrKeyword Keyword
|
||||
hi def link LrInt Number
|
||||
|
|
Loading…
Reference in New Issue
Block a user