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

8a, 8l: add LFENCE, MFENCE, SFENCE

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5650076
This commit is contained in:
Darren Elwood 2012-02-13 13:58:12 -05:00 committed by Russ Cox
parent 0ae4312637
commit aaac05ae23
3 changed files with 11 additions and 0 deletions

View File

@ -663,6 +663,9 @@ struct
"FXTRACT", LTYPE0, AFXTRACT,
"FYL2X", LTYPE0, AFYL2X,
"FYL2XP1", LTYPE0, AFYL2XP1,
"LFENCE", LTYPE0, ALFENCE,
"MFENCE", LTYPE0, AMFENCE,
"SFENCE", LTYPE0, ASFENCE,
0
};

View File

@ -445,6 +445,10 @@ enum as
AFCMOVNU,
AFCMOVUN,
ALFENCE,
AMFENCE,
ASFENCE,
ALAST
};

View File

@ -755,5 +755,9 @@ Optab optab[] =
{ AFCMOVNU, yfcmv, Px, 0xdb,(03) },
{ AFCMOVUN, yfcmv, Px, 0xda,(03) },
{ ALFENCE, ynone, Pm, 0xae,0xe8 },
{ AMFENCE, ynone, Pm, 0xae,0xf0 },
{ ASFENCE, ynone, Pm, 0xae,0xf8 },
0
};