1
0
mirror of https://github.com/golang/go synced 2024-11-22 07:14:40 -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:
Kai Backman 2009-04-10 16:44:01 -07:00
parent 4e1896a1b5
commit 35a775d045

View File

@ -32,6 +32,8 @@
Optab optab[] =
{
/* Data layout:
OPCODE, ARG0, ARG1, ARG2, magic numbers? */
{ ATEXT, C_LEXT, C_NONE, 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 },
@ -75,6 +77,7 @@ Optab optab[] =
{ 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_LCON, 10, 4, 0 },
{ AWORD, C_NONE, C_NONE, C_LCON, 11, 4, 0 },
{ AWORD, C_NONE, C_NONE, C_GCON, 11, 4, 0 },