1
0
mirror of https://github.com/golang/go synced 2024-11-25 19:17:57 -07:00

cmd/6a, cmd/6l: add BSWAPL, BSWAPQ

R=ken2
CC=golang-dev
https://golang.org/cl/6209087
This commit is contained in:
Russ Cox 2012-05-22 00:12:58 -04:00
parent 85266dfd4d
commit ed480128a6
3 changed files with 11 additions and 0 deletions

View File

@ -340,6 +340,8 @@ struct
"BSRL", LTYPE3, ABSRL, "BSRL", LTYPE3, ABSRL,
"BSRQ", LTYPE3, ABSRQ, "BSRQ", LTYPE3, ABSRQ,
"BSRW", LTYPE3, ABSRW, "BSRW", LTYPE3, ABSRW,
"BSWAPL", LTYPE1, ABSWAPL,
"BSWAPQ", LTYPE1, ABSWAPQ,
"BTCL", LTYPE3, ABTCL, "BTCL", LTYPE3, ABTCL,
"BTCQ", LTYPE3, ABTCQ, "BTCQ", LTYPE3, ABTCQ,
"BTCW", LTYPE3, ABTCW, "BTCW", LTYPE3, ABTCW,

View File

@ -743,6 +743,8 @@ enum as
APREFETCHNTA, APREFETCHNTA,
AMOVQL, AMOVQL,
ABSWAPL,
ABSWAPQ,
ALAST ALAST
}; };

View File

@ -302,6 +302,11 @@ uchar ypopl[] =
Ynone, Ym, Zo_m, 2, Ynone, Ym, Zo_m, 2,
0 0
}; };
uchar ybswap[] =
{
Ynone, Yrl, Z_rp, 2,
0,
};
uchar yscond[] = uchar yscond[] =
{ {
Ynone, Ymb, Zo_m, 2, Ynone, Ymb, Zo_m, 2,
@ -641,6 +646,8 @@ Optab optab[] =
{ ABSRL, yml_rl, Pm, 0xbd }, { ABSRL, yml_rl, Pm, 0xbd },
{ ABSRQ, yml_rl, Pw, 0x0f,0xbd }, { ABSRQ, yml_rl, Pw, 0x0f,0xbd },
{ ABSRW, yml_rl, Pq, 0xbd }, { ABSRW, yml_rl, Pq, 0xbd },
{ ABSWAPL, ybswap, Px, 0x0f,0xc8 },
{ ABSWAPQ, ybswap, Pw, 0x0f,0xc8 },
{ ABTCL, ybtl, Pm, 0xba,(07),0xbb }, { ABTCL, ybtl, Pm, 0xba,(07),0xbb },
{ ABTCQ, ybtl, Pw, 0x0f,0xba,(07),0x0f,0xbb }, { ABTCQ, ybtl, Pw, 0x0f,0xba,(07),0x0f,0xbb },
{ ABTCW, ybtl, Pq, 0xba,(07),0xbb }, { ABTCW, ybtl, Pq, 0xba,(07),0xbb },