Added new instructions for next version of VIA PadLock core.

This commit is contained in:
Michal Ludvig 2004-07-30 12:36:38 +00:00
parent e92f3704d6
commit 30d1c83669
7 changed files with 48 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2004-07-30 Michal Ludvig <mludvig@suse.cz>
* gas/i386/padlock.s, gas/i386/padlock.d: New tests for
VIA PadLock instructions.
2004-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* gas/sh/basic.exp: Don't do sh2a test for sh5.

View file

@ -18,4 +18,10 @@ Disassembly of section .text:
23:[ ]*f3 0f a7 e8 [ ]*repz xcryptofb
27:[ ]*0f a7 c0 [ ]*xstorerng
2a:[ ]*f3 0f a7 c0 [ ]*repz xstorerng
2e:[ ]*f3 0f a6 c0 [ ]*repz montmul
32:[ ]*f3 0f a6 c0 [ ]*repz montmul
36:[ ]*f3 0f a6 c8 [ ]*repz xsha1
3a:[ ]*f3 0f a6 c8 [ ]*repz xsha1
3e:[ ]*f3 0f a6 d0 [ ]*repz xsha256
42:[ ]*f3 0f a6 d0 [ ]*repz xsha256
[ ]*\.\.\.

View file

@ -14,5 +14,11 @@ foo:
rep xcryptofb
xstore
rep xstore
montmul
rep montmul
xsha1
rep xsha1
xsha256
rep xsha256
.p2align 4,0

View file

@ -1,3 +1,7 @@
2004-08-30 Michal Ludvig <mludvig@suse.cz>
* i386.h (i386_optab): Added montmul/xsha1/xsha256 insns.
2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
* i386.h (i386_optab): Allow cs/ds in 64bit for branch hints.

View file

@ -1378,6 +1378,9 @@ static const template i386_optab[] =
{"xcryptcbc", 0, 0xf30fa7d0, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },
{"xcryptcfb", 0, 0xf30fa7e0, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },
{"xcryptofb", 0, 0xf30fa7e8, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },
{"montmul", 0, 0xf30fa6c0, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },
{"xsha1", 0, 0xf30fa6c8, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },
{"xsha256", 0, 0xf30fa6d0, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },
/* Alias for xstorerng. */
{"xstore", 0, 0x000fa7c0, X, Cpu686|CpuPadLock, NoSuf|IsString, { 0, 0, 0} },

View file

@ -1,3 +1,10 @@
2004-07-30 Michal Ludvig <mludvig@suse.cz>
* i386-dis.c (GRPPADLCK): Renamed to GRPPADLCK1
(GRPPADLCK2): New define.
(twobyte_has_modrm): True for 0xA6.
(grps): GRPPADLCK2 for opcode 0xA6.
2004-07-29 Alexandre Oliva <aoliva@redhat.com>
Introduce SH2a support.

View file

@ -389,7 +389,8 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr)
#define GRP13 NULL, NULL, USE_GROUPS, NULL, 20, NULL, 0
#define GRP14 NULL, NULL, USE_GROUPS, NULL, 21, NULL, 0
#define GRPAMD NULL, NULL, USE_GROUPS, NULL, 22, NULL, 0
#define GRPPADLCK NULL, NULL, USE_GROUPS, NULL, 23, NULL, 0
#define GRPPADLCK1 NULL, NULL, USE_GROUPS, NULL, 23, NULL, 0
#define GRPPADLCK2 NULL, NULL, USE_GROUPS, NULL, 24, NULL, 0
#define PREGRP0 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 0, NULL, 0
#define PREGRP1 NULL, NULL, USE_PREFIX_USER_TABLE, NULL, 1, NULL, 0
@ -948,8 +949,8 @@ static const struct dis386 dis386_twobyte[] = {
{ "btS", Ev, Gv, XX },
{ "shldS", Ev, Gv, Ib },
{ "shldS", Ev, Gv, CL },
{ "(bad)", XX, XX, XX },
{ GRPPADLCK },
{ GRPPADLCK2 },
{ GRPPADLCK1 },
/* a8 */
{ "pushT", gs, XX, XX },
{ "popT", gs, XX, XX },
@ -1087,7 +1088,7 @@ static const unsigned char twobyte_has_modrm[256] = {
/* 70 */ 1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1, /* 7f */
/* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */
/* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */
/* a0 */ 0,0,0,1,1,1,0,1,0,0,0,1,1,1,1,1, /* af */
/* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */
/* b0 */ 1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1, /* bf */
/* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */
/* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */
@ -1451,7 +1452,7 @@ static const struct dis386 grps[][8] = {
{ "(bad)", XX, XX, XX },
{ "(bad)", XX, XX, XX },
},
/* GRPPADLCK */
/* GRPPADLCK1 */
{
{ "xstorerng", OP_0f07, 0, XX, XX },
{ "xcryptecb", OP_0f07, 0, XX, XX },
@ -1461,6 +1462,17 @@ static const struct dis386 grps[][8] = {
{ "xcryptofb", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
},
/* GRPPADLCK2 */
{
{ "montmul", OP_0f07, 0, XX, XX },
{ "xsha1", OP_0f07, 0, XX, XX },
{ "xsha256", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
{ "(bad)", OP_0f07, 0, XX, XX },
}
};