Permalink
Browse files

nv50: Add INTERCAL support

  • Loading branch information...
1 parent 8193c24 commit aeeff659c122d836d243d27e7296c0fbd9572627 @koriakin koriakin committed May 16, 2010
Showing with 7 additions and 4 deletions.
  1. +7 −4 nv50dis.c
View
@@ -637,6 +637,8 @@ F(sm2us24, 0xf, N("u24"), N("s24"))
F1(sm3neg, 0x16, N("neg"))
F1(sm3not, 0x16, N("not"))
+F1(splease, 0x11, N("please"))
+
struct insn tabssh[] = {
{ AP, 0x00000000, 0x01000000, SHSRC },
{ AP, 0x01000000, 0x01000000, T(ss) },
@@ -673,8 +675,8 @@ struct insn tabas[] = {
};
struct insn tabs[] = {
- { AP, 0x10000000, 0xf0008002, N("mov"), N("b16"), SHDST, T(ssh) },
- { AP, 0x10008000, 0xf0008002, N("mov"), N("b32"), SDST, T(ssw) },
+ { AP, 0x10000000, 0xf0008002, T(splease), N("mov"), N("b16"), SHDST, T(ssh) },
+ { AP, 0x10008000, 0xf0008002, T(splease), N("mov"), N("b32"), SDST, T(ssw) },
{ AP, 0x20000000, 0xe0008002, T(addop), T(sm1sat), N("b16"), SHDST, T(ssh), T(sch), T(addc0) },
{ AP, 0x20008000, 0xe0008002, T(addop), T(sm1sat), N("b32"), SDST, T(ssw), T(scw), T(addc0) },
@@ -804,6 +806,7 @@ F(lm2us32, 0x3b, N("u32"), N("s32"))
// stolen from opcode field.
F1(o0neg, 0x3d, N("neg"))
F1(o0sat, 0x3d, N("sat"))
+F1(lplease, 0x39, N("please"))
struct insn tablfm1[] = {
{ AP, 0, 0, T(m1neg), T(s36abs) }
@@ -1142,9 +1145,9 @@ struct insn tabl[] = {
// 1
{ AP, 0x0000000010000000ull, 0xe4000000f0000000ull,
- T(lane), N("mov"), N("b16"), LLHDST, T(lsh) },
+ T(lane), T(lplease), N("mov"), N("b16"), LLHDST, T(lsh) },
{ AP, 0x0400000010000000ull, 0xe4000000f0000000ull,
- T(lane), N("mov"), N("b32"), LLDST, T(lsw) },
+ T(lane), T(lplease), N("mov"), N("b32"), LLDST, T(lsw) },
// desc VVV
{ AP, 0x2000000010000000ull, 0xe0000000f0000000ull,

0 comments on commit aeeff65

Please sign in to comment.