aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/perlasm
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-12-10 11:24:42 +0000
committerAndy Polyakov <appro@openssl.org>2004-12-10 11:24:42 +0000
commit0c0788ba0ad28b493b50a97439f67b92d1edc6f7 (patch)
tree3d64858f649eba4ce4f10f7551b6f2df8fb54e40 /crypto/perlasm
parent905fd45b3627553543c3b953f28de2198241edb7 (diff)
downloadopenssl-0c0788ba0ad28b493b50a97439f67b92d1edc6f7.tar.gz
Solaris x86 perlasm update.
Diffstat (limited to 'crypto/perlasm')
-rw-r--r--crypto/perlasm/x86unix.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/perlasm/x86unix.pl b/crypto/perlasm/x86unix.pl
index 867fa09e48..cdfd740154 100644
--- a/crypto/perlasm/x86unix.pl
+++ b/crypto/perlasm/x86unix.pl
@@ -167,7 +167,7 @@ sub main'sub { &out2("subl",@_); }
sub main'sbb { &out2("sbbl",@_); }
sub main'rotl { &out2("roll",@_); }
sub main'rotr { &out2("rorl",@_); }
-sub main'exch { &out2("xchg",@_); }
+sub main'exch { &out2($_[0]=~/%[a-d][lh]/?"xchgb":"xchgl",@_); }
sub main'cmp { &out2("cmpl",@_); }
sub main'lea { &out2("leal",@_); }
sub main'mul { &out1("mull",@_); }
@@ -208,7 +208,7 @@ sub main'leave { &out0("leave"); }
sub main'cpuid { &out0(".byte\t0x0f,0xa2"); }
sub main'rdtsc { &out0(".byte\t0x0f,0x31"); }
sub main'halt { &out0("hlt"); }
-sub main'movz { &out2("movzb",@_); }
+sub main'movz { &out2("movzbl",@_); }
# SSE2
sub main'emms { &out0("emms"); }