Commit ed480128 authored by Russ Cox's avatar Russ Cox

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

R=ken2
CC=golang-dev
https://golang.org/cl/6209087
parent 85266dfd
...@@ -340,6 +340,8 @@ struct ...@@ -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,
......
...@@ -743,6 +743,8 @@ enum as ...@@ -743,6 +743,8 @@ enum as
APREFETCHNTA, APREFETCHNTA,
AMOVQL, AMOVQL,
ABSWAPL,
ABSWAPQ,
ALAST ALAST
}; };
......
...@@ -302,6 +302,11 @@ uchar ypopl[] = ...@@ -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[] = ...@@ -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 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment