1
0
mirror of https://github.com/golang/go synced 2024-11-12 05:50:21 -07: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

@ -457,6 +457,8 @@ enum as
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
};