gen: xor rdx regardless of type, syntax: cyan identifiers

This commit is contained in:
coreydunn 2024-02-04 11:11:09 -06:00
parent 4458cdf796
commit 3a9213cbb2
2 changed files with 6 additions and 2 deletions

6
gen.c
View File

@ -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);

View File

@ -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