Skip to content

Commit

Permalink
gas64 : fix wrong optimization for movsb|w|d|q
Browse files Browse the repository at this point in the history
  • Loading branch information
SARG-FB committed Aug 4, 2023
1 parent 623c69b commit d93c6d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compiler/ir-gas64.bas
Expand Up @@ -457,6 +457,11 @@ private sub check_optim(byref code as string)
poschar1=instr(code," ")
instruc=left(code,poschar1-1)
poschar2=instr(code,",")
if poschar2=0 then
''case movsb|w|d|q
prevpart1="":prevpart2="":previnstruc="":flag=KUSE_MOV
exit sub
End If
part1=trim(mid(code,poschar1+1,poschar2-poschar1-1))
poschar1=instr(code,"#")
if poschar1=0 then
Expand Down

0 comments on commit d93c6d6

Please sign in to comment.