1
0
mirror of https://github.com/golang/go synced 2024-09-24 21:10:12 -06:00

cmd/8a, cmd/8l: add BSWAPL

R=ken2
CC=golang-dev
https://golang.org/cl/6208093
This commit is contained in:
Russ Cox 2012-05-22 00:29:07 -04:00
parent ed480128a6
commit c4ea1c955e
3 changed files with 10 additions and 0 deletions

View File

@ -271,6 +271,7 @@ struct
"BSFW", LTYPE3, ABSFW,
"BSRL", LTYPE3, ABSRL,
"BSRW", LTYPE3, ABSRW,
"BSWAPL", LTYPE1, ABSWAPL,
"BTCL", LTYPE3, ABTCL,
"BTCW", LTYPE3, ABTCW,
"BTL", LTYPE3, ABTL,

View File

@ -456,6 +456,8 @@ enum as
APREFETCHT1,
APREFETCHT2,
APREFETCHNTA,
ABSWAPL,
ALAST
};

View File

@ -242,6 +242,11 @@ uchar ypopl[] =
Ynone, Ym, Zo_m, 2,
0
};
uchar ybswap[] =
{
Ynone, Yrl, Z_rp, 1,
0,
};
uchar yscond[] =
{
Ynone, Ymb, Zo_m, 2,
@ -771,5 +776,7 @@ Optab optab[] =
{ APREFETCHT2, yprefetch, Pm, 0x18,(03) },
{ APREFETCHNTA, yprefetch, Pm, 0x18,(00) },
{ ABSWAPL, ybswap, Pm, 0xc8 },
0
};