mirror of
https://github.com/golang/go
synced 2024-11-25 23:58:02 -07:00
Fixed optab to support SWI with long constant (the mode used
for linux system calls). R=rsc APPROVED=rsc DELTA=3 (3 added, 0 deleted, 0 changed) OCL=27325 CL=27328
This commit is contained in:
parent
4e1896a1b5
commit
35a775d045
@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
Optab optab[] =
|
Optab optab[] =
|
||||||
{
|
{
|
||||||
|
/* Data layout:
|
||||||
|
OPCODE, ARG0, ARG1, ARG2, magic numbers? */
|
||||||
{ ATEXT, C_LEXT, C_NONE, C_LCON, 0, 0, 0 },
|
{ ATEXT, C_LEXT, C_NONE, C_LCON, 0, 0, 0 },
|
||||||
{ ATEXT, C_LEXT, C_REG, C_LCON, 0, 0, 0 },
|
{ ATEXT, C_LEXT, C_REG, C_LCON, 0, 0, 0 },
|
||||||
{ ATEXT, C_ADDR, C_NONE, C_LCON, 0, 0, 0 },
|
{ ATEXT, C_ADDR, C_NONE, C_LCON, 0, 0, 0 },
|
||||||
@ -75,6 +77,7 @@ Optab optab[] =
|
|||||||
|
|
||||||
{ ASWI, C_NONE, C_NONE, C_NONE, 10, 4, 0 },
|
{ ASWI, C_NONE, C_NONE, C_NONE, 10, 4, 0 },
|
||||||
{ ASWI, C_NONE, C_NONE, C_LOREG, 10, 4, 0 },
|
{ ASWI, C_NONE, C_NONE, C_LOREG, 10, 4, 0 },
|
||||||
|
{ ASWI, C_NONE, C_NONE, C_LCON, 10, 4, 0 },
|
||||||
|
|
||||||
{ AWORD, C_NONE, C_NONE, C_LCON, 11, 4, 0 },
|
{ AWORD, C_NONE, C_NONE, C_LCON, 11, 4, 0 },
|
||||||
{ AWORD, C_NONE, C_NONE, C_GCON, 11, 4, 0 },
|
{ AWORD, C_NONE, C_NONE, C_GCON, 11, 4, 0 },
|
||||||
|
Loading…
Reference in New Issue
Block a user