perlasm/x86gas.pl: give a hand old assemblers assembling loop instruction
[from HEAD].
This commit is contained in:
parent
b140ae9137
commit
edcba19c23
@ -45,10 +45,8 @@ sub ::generic
|
|||||||
undef $suffix if ($dst =~ m/^%[xm]/o || $src =~ m/^%[xm]/o);
|
undef $suffix if ($dst =~ m/^%[xm]/o || $src =~ m/^%[xm]/o);
|
||||||
|
|
||||||
if ($#_==0) { &::emit($opcode); }
|
if ($#_==0) { &::emit($opcode); }
|
||||||
elsif ($opcode =~ m/^j/o && $#_==1) { &::emit($opcode,@arg); }
|
elsif ($#_==1 && $opcode =~ m/^(call|clflush|j|loop|set)/o)
|
||||||
elsif ($opcode eq "call" && $#_==1) { &::emit($opcode,@arg); }
|
{ &::emit($opcode,@arg); }
|
||||||
elsif ($opcode eq "clflush" && $#_==1){ &::emit($opcode,@arg); }
|
|
||||||
elsif ($opcode =~ m/^set/&& $#_==1) { &::emit($opcode,@arg); }
|
|
||||||
else { &::emit($opcode.$suffix,@arg);}
|
else { &::emit($opcode.$suffix,@arg);}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user