score-opc.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. /* Copyright (C) 2006-2015 Free Software Foundation, Inc.
  2. This file is part of the GNU opcodes library.
  3. This library is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3, or (at your option)
  6. any later version.
  7. It is distributed in the hope that it will be useful, but WITHOUT
  8. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  9. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  10. License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this file; see the file COPYING. If not, write to the
  13. Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
  14. MA 02110-1301, USA. */
  15. struct score_opcode
  16. {
  17. bfd_vma value;
  18. bfd_vma mask; /* Recognise instruction if (op & mask) == value. */
  19. char *assembler; /* Disassembly string. */
  20. };
  21. /* Note: There is a partial ordering in this table - it must be searched from
  22. the top to obtain a correct match. */
  23. static struct score_opcode score_opcodes[] =
  24. {
  25. /* Score Instructions. */
  26. {0x3800000a, 0x3e007fff, "abs\t\t%20-24r, %15-19r"},
  27. {0x3800004b, 0x3e007fff, "abs.s\t\t%20-24r, %15-19r"},
  28. {0x00000010, 0x3e0003ff, "add\t\t%20-24r, %15-19r, %10-14r"},
  29. {0x00000011, 0x3e0003ff, "add.c\t\t%20-24r, %15-19r, %10-14r"},
  30. {0x38000048, 0x3e0003ff, "add.s\t\t%20-24r, %15-19r, %10-14r"},
  31. {0x00000012, 0x3e0003ff, "addc\t\t%20-24r, %15-19r, %10-14r"},
  32. {0x00000013, 0x3e0003ff, "addc.c\t\t%20-24r, %15-19r, %10-14r"},
  33. {0x02000000, 0x3e0e0001, "addi\t\t%20-24r, %1-16i"},
  34. {0x02000001, 0x3e0e0001, "addi.c\t\t%20-24r, %1-16i"},
  35. {0x0a000000, 0x3e0e0001, "addis\t\t%20-24r, %1-16d(0x%1-16x)"},
  36. {0x0a000001, 0x3e0e0001, "addis.c\t\t%20-24r, %1-16d(0x%1-16x)"},
  37. {0x10000000, 0x3e000001, "addri\t\t%20-24r, %15-19r, %1-14i"},
  38. {0x10000001, 0x3e000001, "addri.c\t\t%20-24r, %15-19r, %1-14i"},
  39. {0x00004800, 0x00007f00, "add!\t\t%4-7r, %0-3r"},
  40. {0x00005c00, 0x00007c00, "addi!\t\t%6-9r, %0-5i"},
  41. {0x00000020, 0x3e0003ff, "and\t\t%20-24r, %15-19r, %10-14r"},
  42. {0x00000021, 0x3e0003ff, "and.c\t\t%20-24r, %15-19r, %10-14r"},
  43. {0x040000000000LL, 0x1c0000000003LL, "andri48\t\t%38-41r,%34-37r, 0x%2-33x"},
  44. {0x040000000001LL, 0x1c0000000003LL, "andri48.c\t\t%38-41r,%34-37r, 0x%2-33x"},
  45. {0x02080000, 0x3e0e0001, "andi\t\t%20-24r, 0x%1-16x"},
  46. {0x02080001, 0x3e0e0001, "andi.c\t\t%20-24r, 0x%1-16x"},
  47. {0x0a080000, 0x3e0e0001, "andis\t\t%20-24r, 0x%1-16x"},
  48. {0x0a080001, 0x3e0e0001, "andis.c\t\t%20-24r, 0x%1-16x"},
  49. {0x18000000, 0x3e000001, "andri\t\t%20-24r, %15-19r, 0x%1-14x"},
  50. {0x18000001, 0x3e000001, "andri.c\t\t%20-24r, %15-19r,0x%1-14x"},
  51. {0x00004b00, 0x00007f00, "and!\t\t%4-7r, %0-3r"},
  52. {0x08000000, 0x3e007c01, "bcs\t\t%b"},
  53. {0x08000400, 0x3e007c01, "bcc\t\t%b"},
  54. {0x08003800, 0x3e007c01, "bcnz\t\t%b"},
  55. {0x08000001, 0x3e007c01, "bcsl\t\t%b"},
  56. {0x08000401, 0x3e007c01, "bccl\t\t%b"},
  57. {0x08003801, 0x3e007c01, "bcnzl\t\t%b"},
  58. {0x0000004c, 0x3e00007e, "bcmpeqz\t\t%15-19r, %z"},
  59. {0x0000004c, 0x3e00007e, "bcmpeq\t\t%15-19r, %z"},
  60. {0x0000004e, 0x3e00007e, "bcmpnez\t\t%15-19r, %z"},
  61. {0x0000004e, 0x3e00007e, "bcmpne\t\t%15-19r, %z"},
  62. {0x00003200, 0x00007e00, "bcnz!\t\t%b"},
  63. {0x08001000, 0x3e007c01, "beq\t\t%b"},
  64. {0x08001001, 0x3e007c01, "beql\t\t%b"},
  65. {0x00003800, 0x00007e00, "beq!\t\t%b"},
  66. {0x08000800, 0x3e007c01, "bgtu\t\t%b"},
  67. {0x08001800, 0x3e007c01, "bgt\t\t%b"},
  68. {0x08002000, 0x3e007c01, "bge\t\t%b"},
  69. {0x08000801, 0x3e007c01, "bgtul\t\t%b"},
  70. {0x08001801, 0x3e007c01, "bgtl\t\t%b"},
  71. {0x08002001, 0x3e007c01, "bgel\t\t%b"},
  72. {0x00003400, 0x00007e00, "bgtu!\t\t%b"},
  73. {0x00003c00, 0x00007e00, "bgt!\t\t%b"},
  74. {0x00000029, 0x3e0003ff, "bitclr.c\t%20-24r, %15-19r, 0x%10-14x"},
  75. {0x00000028, 0x3e0003ff, "bitclr\t%20-24r, %15-19r, 0x%10-14x"},
  76. {0x0000002b, 0x3e0003ff, "bitset.c\t%20-24r, %15-19r, 0x%10-14x"},
  77. {0x0000002a, 0x3e0003ff, "bitset\t%20-24r, %15-19r, 0x%10-14x"},
  78. {0x0000002d, 0x3e0003ff, "bittst.c\t%15-19r, 0x%10-14x"},
  79. {0x0000002f, 0x3e0003ff, "bittgl.c\t%20-24r, %15-19r, 0x%10-14x"},
  80. {0x0000002e, 0x3e0003ff, "bittgl\t%20-24r, %15-19r, 0x%10-14x"},
  81. {0x00005000, 0x00007e00, "bitclr!\t\t%5-8r, 0x%0-4x"},
  82. {0x3800000c, 0x3e0003ff, "bitrev\t\t%20-24r, %15-19r,%10-14r"},
  83. {0x00005200, 0x00007e00, "bitset!\t\t%5-8r, 0x%0-4x"},
  84. {0x00005400, 0x00007e00, "bittst!\t\t%5-8r, 0x%0-4x"},
  85. {0x00005600, 0x00007e00, "bittgl!\t\t%5-8r, 0x%0-4x"},
  86. {0x08000c00, 0x3e007c01, "bleu\t\t%b"},
  87. {0x08001c00, 0x3e007c01, "ble\t\t%b"},
  88. {0x08002400, 0x3e007c01, "blt\t\t%b"},
  89. {0x08000c01, 0x3e007c01, "bleul\t\t%b"},
  90. {0x08001c01, 0x3e007c01, "blel\t\t%b"},
  91. {0x08002401, 0x3e007c01, "bltl\t\t%b"},
  92. {0x08003c01, 0x3e007c01, "bl\t\t%b"},
  93. {0x00003600, 0x00007e00, "bleu!\t\t%b"},
  94. {0x00003e00, 0x00007e00, "ble!\t\t%b"},
  95. {0x08002800, 0x3e007c01, "bmi\t\t%b"},
  96. {0x08002801, 0x3e007c01, "bmil\t\t%b"},
  97. {0x08001400, 0x3e007c01, "bne\t\t%b"},
  98. {0x08001401, 0x3e007c01, "bnel\t\t%b"},
  99. {0x00003a00, 0x00007e00, "bne!\t\t%b"},
  100. {0x08002c00, 0x3e007c01, "bpl\t\t%b"},
  101. {0x08002c01, 0x3e007c01, "bpll\t\t%b"},
  102. {0x00000008, 0x3e007fff, "brcs\t\t%15-19r"},
  103. {0x00000408, 0x3e007fff, "brcc\t\t%15-19r"},
  104. {0x00000808, 0x3e007fff, "brgtu\t\t%15-19r"},
  105. {0x00000c08, 0x3e007fff, "brleu\t\t%15-19r"},
  106. {0x00001008, 0x3e007fff, "breq\t\t%15-19r"},
  107. {0x00001408, 0x3e007fff, "brne\t\t%15-19r"},
  108. {0x00001808, 0x3e007fff, "brgt\t\t%15-19r"},
  109. {0x00001c08, 0x3e007fff, "brle\t\t%15-19r"},
  110. {0x00002008, 0x3e007fff, "brge\t\t%15-19r"},
  111. {0x00002408, 0x3e007fff, "brlt\t\t%15-19r"},
  112. {0x00002808, 0x3e007fff, "brmi\t\t%15-19r"},
  113. {0x00002c08, 0x3e007fff, "brpl\t\t%15-19r"},
  114. {0x00003008, 0x3e007fff, "brvs\t\t%15-19r"},
  115. {0x00003408, 0x3e007fff, "brvc\t\t%15-19r"},
  116. {0x00003808, 0x3e007fff, "brcnz\t\t%15-19r"},
  117. {0x00003c08, 0x3e007fff, "br\t\t%15-19r"},
  118. {0x00000009, 0x3e007fff, "brcsl\t\t%15-19r"},
  119. {0x00000409, 0x3e007fff, "brccl\t\t%15-19r"},
  120. {0x00000809, 0x3e007fff, "brgtul\t\t%15-19r"},
  121. {0x00000c09, 0x3e007fff, "brleul\t\t%15-19r"},
  122. {0x00001009, 0x3e007fff, "breql\t\t%15-19r"},
  123. {0x00001409, 0x3e007fff, "brnel\t\t%15-19r"},
  124. {0x00001809, 0x3e007fff, "brgtl\t\t%15-19r"},
  125. {0x00001c09, 0x3e007fff, "brlel\t\t%15-19r"},
  126. {0x00002009, 0x3e007fff, "brgel\t\t%15-19r"},
  127. {0x00002409, 0x3e007fff, "brltl\t\t%15-19r"},
  128. {0x00002809, 0x3e007fff, "brmil\t\t%15-19r"},
  129. {0x00002c09, 0x3e007fff, "brpll\t\t%15-19r"},
  130. {0x00003009, 0x3e007fff, "brvsl\t\t%15-19r"},
  131. {0x00003409, 0x3e007fff, "brvcl\t\t%15-19r"},
  132. {0x00003809, 0x3e007fff, "brcnzl\t\t%15-19r"},
  133. {0x00003c09, 0x3e007fff, "brl\t\t%15-19r"},
  134. {0x00000080, 0x00007fe0, "br!\t\t%0-4r"},
  135. {0x000000a0, 0x00007fe0, "brl!\t\t%0-4r"},
  136. {0x000000c0, 0x00007fe0, "brr!\t\t%0-4r"},
  137. {0x08003000, 0x3e007c01, "bvs\t\t%b"},
  138. {0x08003400, 0x3e007c01, "bvc\t\t%b"},
  139. {0x08003001, 0x3e007c01, "bvsl\t\t%b"},
  140. {0x08003401, 0x3e007c01, "bvcl\t\t%b"},
  141. {0x00003000, 0x00007e00, "b!\t\t%b"},
  142. {0x08003c00, 0x3e007c01, "b\t\t%b"},
  143. {0x30000000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  144. {0x30100000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  145. {0x30200000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  146. {0x30300000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  147. {0x30400000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  148. {0x30800000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  149. {0x30900000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  150. {0x30a00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  151. {0x30b00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  152. {0x30c00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  153. {0x30d00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  154. {0x30e00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  155. {0x31000000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  156. {0x31100000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  157. {0x31800000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  158. {0x31a00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  159. {0x31b00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  160. {0x31c00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  161. {0x31d00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  162. {0x31e00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  163. {0x31f00000, 0x3ff00000, "cache\t\t%20-24d, [%15-19r, %0-14i]"},
  164. {0x38000000, 0x3ff003ff, "mad\t\t%15-19r, %10-14r"},
  165. {0x38000020, 0x3ff003ff, "madu\t\t%15-19r, %10-14r"},
  166. {0x38000080, 0x3ff003ff, "mad.f\t\t%15-19r, %10-14r"},
  167. {0x38000001, 0x3ff003ff, "msb\t\t%15-19r, %10-14r"},
  168. {0x38000021, 0x3ff003ff, "msbu\t\t%15-19r, %10-14r"},
  169. {0x38000081, 0x3ff003ff, "msb.f\t\t%15-19r, %10-14r"},
  170. {0x38000102, 0x3ff003ff, "mazl\t\t%15-19r, %10-14r"},
  171. {0x38000182, 0x3ff003ff, "mazl.f\t\t%15-19r, %10-14r"},
  172. {0x38000002, 0x3ff003ff, "madl\t\t%15-19r, %10-14r"},
  173. {0x380000c2, 0x3ff003ff, "madl.fs\t\t%15-19r, %10-14r"},
  174. {0x38000303, 0x3ff003ff, "mazh\t\t%15-19r, %10-14r"},
  175. {0x38000383, 0x3ff003ff, "mazh.f\t\t%15-19r, %10-14r"},
  176. {0x38000203, 0x3ff003ff, "madh\t\t%15-19r, %10-14r"},
  177. {0x380002c3, 0x3ff003ff, "madh.fs\t\t%15-19r, %10-14r"},
  178. {0x38000007, 0x3e0003ff, "max\t\t%20-24r, %15-19r, %10-14r"},
  179. {0x00000064, 0x3e00007e, "mbitclr\t\t[%15-19r, %m], %10-14d"},
  180. {0x0000006c, 0x3e00007e, "mbitset\t\t[%20-24r, %m], %10-14d"},
  181. {0x38000006, 0x3e0003ff, "min\t\t%20-24r, %15-19r, %10-14r"},
  182. {0x38000104, 0x3ff003ff, "mszl\t\t%15-19r, %10-14r"},
  183. {0x38000184, 0x3ff003ff, "mszl.f\t\t%15-19r, %10-14r"},
  184. {0x38000004, 0x3ff003ff, "msbl\t\t%15-19r, %10-14r"},
  185. {0x380000c4, 0x3ff003ff, "msbl.fs\t\t%15-19r, %10-14r"},
  186. {0x38000305, 0x3ff003ff, "mszh\t\t%15-19r, %10-14r"},
  187. {0x38000385, 0x3ff003ff, "mszh.f\t\t%15-19r, %10-14r"},
  188. {0x38000205, 0x3ff003ff, "msbh\t\t%15-19r, %10-14r"},
  189. {0x380002c5, 0x3ff003ff, "msbh.fs\t\t%15-19r, %10-14r"},
  190. {0x3800004e, 0x3e0003ff, "sll.s\t\t%20-24r, %15-19r, %10-14r"},
  191. {0x38000049, 0x3e0003ff, "sub.s\t\t%20-24r, %15-19r, %10-14r"},
  192. {0x0000001c, 0x3e007fff, "clz\t\t%20-24r, %15-19r"},
  193. {0x38000000, 0x3e000000, "ceinst\t\t%20-24d, %15-19r, %10-14r, %5-9d, %0-4d"},
  194. {0x00000019, 0x3ff003ff, "cmpteq.c\t\t%15-19r, %10-14r"},
  195. {0x00100019, 0x3ff003ff, "cmptmi.c\t\t%15-19r, %10-14r"},
  196. {0x00300019, 0x3ff003ff, "cmp.c\t\t%15-19r, %10-14r"},
  197. {0x0000001b, 0x3ff07fff, "cmpzteq.c\t%15-19r"},
  198. {0x0010001b, 0x3ff07fff, "cmpztmi.c\t%15-19r"},
  199. {0x0030001b, 0x3ff07fff, "cmpz.c\t\t%15-19r"},
  200. {0x02040001, 0x3e0e0001, "cmpi.c\t\t%20-24r, %1-16i"},
  201. {0x00004400, 0x00007c00, "cmp!\t\t%5-9r, %0-4r"},
  202. {0x00006000, 0x00007c00, "cmpi!\t\t%5-9r, %0-4i"},
  203. {0x0c00000c, 0x3e00001f, "cop1\t\tc%20-24r, c%15-19r, c%10-14r, %5-9d"},
  204. {0x0c000014, 0x3e00001f, "cop2\t\tc%20-24r, c%15-19r, c%10-14r, %5-9d"},
  205. {0x0c00001c, 0x3e00001f, "cop3\t\tc%20-24r, c%15-19r, c%10-14r, %5-9d"},
  206. {0x00000044, 0x3e0003ff, "div\t\t%15-19r, %10-14r"},
  207. {0x00000144, 0x3e0003ff, "divr.q\t\t%20-24r,%15-19r, %10-14r"},
  208. {0x00000244, 0x3e0003ff, "divr.r\t\t%20-24r,%15-19r, %10-14r"},
  209. {0x00000344, 0x3e0003ff, "divr\t\t%20-24r,%15-19r, %10-14r"},
  210. {0x00000046, 0x3e0003ff, "divu\t\t%15-19r, %10-14r"},
  211. {0x00000146, 0x3e0003ff, "divur.q\t\t%20-24r,%15-19r, %10-14r"},
  212. {0x00000246, 0x3e0003ff, "divur.r\t\t%20-24r,%15-19r, %10-14r"},
  213. {0x00000346, 0x3e0003ff, "divur\t\t%20-24r,%15-19r, %10-14r"},
  214. {0x0c0000a4, 0x3e0003ff, "drte"},
  215. {0x00e0, 0xffe1, "disint!"},
  216. {0x00e1, 0xffe1, "enint!"},
  217. {0x00000058, 0x3e0003ff, "extsb\t\t%20-24r, %15-19r"},
  218. {0x00000059, 0x3e0003ff, "extsb.c\t\t%20-24r, %15-19r"},
  219. {0x0000005a, 0x3e0003ff, "extsh\t\t%20-24r, %15-19r"},
  220. {0x0000005b, 0x3e0003ff, "extsh.c\t\t%20-24r, %15-19r"},
  221. {0x0000005c, 0x3e0003ff, "extzb\t\t%20-24r, %15-19r"},
  222. {0x0000005d, 0x3e0003ff, "extzb.c\t\t%20-24r, %15-19r"},
  223. {0x0000005e, 0x3e0003ff, "extzh\t\t%20-24r, %15-19r"},
  224. {0x0000005f, 0x3e0003ff, "extzh.c\t\t%20-24r, %15-19r"},
  225. {0x04000001, 0x3e000001, "jl\t\t%j"},
  226. {0x04000000, 0x3e000001, "j\t\t%j"},
  227. {0x26000000, 0x3e000000, "lb\t\t%20-24r, [%15-19r, %0-14i]"},
  228. {0x2c000000, 0x3e000000, "lbu\t\t%20-24r, [%15-19r, %0-14i]"},
  229. {0x06000003, 0x3e000007, "lb\t\t%20-24r, [%15-19r, %3-14i]+"},
  230. {0x06000006, 0x3e000007, "lbu\t\t%20-24r, [%15-19r, %3-14i]+"},
  231. {0x0e000003, 0x3e000007, "lb\t\t%20-24r, [%15-19r]+, %3-14i"},
  232. {0x0e000006, 0x3e000007, "lbu\t\t%20-24r, [%15-19r]+, %3-14i"},
  233. {0x00000060, 0x3e0003ff, "lcb\t\t[%15-19r]+"},
  234. {0x00000062, 0x3e0003ff, "lcw\t\t%20-24r, [%15-19r]+"},
  235. {0x00000066, 0x3e0003ff, "lce\t\t%20-24r, [%15-19r]+"},
  236. {0x0c00000a, 0x3e00001f, "ldc1\t\tc%15-19r, [%20-24r, %5-14i]"},
  237. {0x0c000012, 0x3e00001f, "ldc2\t\tc%15-19r, [%20-24r, %5-14i]"},
  238. {0x0c00001a, 0x3e00001f, "ldc3\t\tc%15-19r, [%20-24r, %5-14i]"},
  239. {0x000000000001LL, 0x1c000000001fLL, "ldi48\t\t%37-41r, %5-36i"},
  240. {0x22000000, 0x3e000000, "lh\t\t%20-24r, [%15-19r, %0-14i]"},
  241. {0x24000000, 0x3e000000, "lhu\t\t%20-24r, [%15-19r, %0-14i]"},
  242. {0x06000001, 0x3e000007, "lh\t\t%20-24r, [%15-19r, %3-14i]+"},
  243. {0x06000002, 0x3e000007, "lhu\t\t%20-24r, [%15-19r, %3-14i]+"},
  244. {0x0e000001, 0x3e000007, "lh\t\t%20-24r, [%15-19r]+, %3-14i"},
  245. {0x0e000002, 0x3e000007, "lhu\t\t%20-24r, [%15-19r]+, %3-14i"},
  246. {0x020c0000, 0x3e0e0000, "ldi\t\t%20-24r, 0x%1-16x(%1-16i)"},
  247. {0x0a0c0000, 0x3e0e0000, "ldis\t\t%20-24r, 0x%1-16x(%1-16i)"},
  248. {0x00006400, 0x00007c00, "ldiu!\t\t%5-9r, %0-4d"},
  249. {0x00000032, 0x3e0003ff, "ltbw\t\t%20-24r, [%15-19r, %10-14r]"},
  250. {0x00000132, 0x3e0003ff, "ltbh\t\t%20-24r, [%15-19r, %10-14r]"},
  251. {0x00000332, 0x3e0003ff, "ltbb\t\t%20-24r, [%15-19r, %10-14r]"},
  252. {0x0000000c, 0x3e0003ff, "alw\t\t%20-24r, [%15-19r]"},
  253. {0x20000000, 0x3e000000, "lw\t\t%20-24r, [%15-19r, %0-14i]"},
  254. {0x06000000, 0x3e000007, "lw\t\t%20-24r, [%15-19r, %3-14i]+"},
  255. {0x0e000000, 0x3e000007, "lw\t\t%20-24r, [%15-19r]+, %3-14i"},
  256. {0x00001000, 0x00007000, "lw!\t\t%8-11r, [%5-7r,%0-4d2]"},
  257. {0x000000000002LL, 0x1c000000001fLL, "lw48\t\t%37-41r,[0x%7-36w]"},
  258. {0x00007b00, 0x00007f00, "madh.fs!\t\t%8-11r, %4-7r"},
  259. {0x00007a00, 0x00007f00, "madl.fs!\t\t%8-11r, %4-7r"},
  260. {0x00007500, 0x00007f00, "madu!\t\t%8-11r, %4-7r"},
  261. {0x00007400, 0x00007f00, "mad.f!\t\t%8-11r, %4-7r"},
  262. {0x00007900, 0x00007f00, "mazh.f!\t\t%8-11r, %4-7r"},
  263. {0x00007800, 0x00007f00, "mazl.f!\t\t%8-11r, %4-7r"},
  264. {0x00000448, 0x3e007fff, "mfcel\t\t%20-24r"},
  265. {0x00007100, 0x00007ff0, "mfcel!\t\t%4-7r"},
  266. {0x00000848, 0x3e007fff, "mfceh\t\t%20-24r"},
  267. {0x00007110, 0x00007ff0, "mfceh!\t\t%4-7r"},
  268. {0x00000c48, 0x3e007fff, "mfcehl\t\t%20-24r, %15-19r"},
  269. {0x00000048, 0x3e0003ff, "mfce\t\t%20-24r, er%10-14d"},
  270. {0x00000050, 0x3e0003ff, "mfsr\t\t%20-24r, sr%10-14d"},
  271. {0x0c000001, 0x3e00001f, "mfcr\t\t%20-24r, c%15-19r"},
  272. {0x0c000009, 0x3e00001f, "mfc1\t\t%20-24r, c%15-19r"},
  273. {0x0c000011, 0x3e00001f, "mfc2\t\t%20-24r, c%15-19r"},
  274. {0x0c000019, 0x3e00001f, "mfc3\t\t%20-24r, c%15-19r"},
  275. {0x0c00000f, 0x3e00001f, "mfcc1\t\t%20-24r, c%15-19r"},
  276. {0x0c000017, 0x3e00001f, "mfcc2\t\t%20-24r, c%15-19r"},
  277. {0x0c00001f, 0x3e00001f, "mfcc3\t\t%20-24r, c%15-19r"},
  278. /* confilct: push! mhfl!. */
  279. {0x00000040, 0x00007fe0, "pop!\t\t%0-4r"},
  280. {0x00000060, 0x00007fe0, "push!\t\t%0-4r"},
  281. {0x00006800, 0x00007c00, "rpop!\t\t%5-9r, %0-4d"},
  282. {0x00006c00, 0x00007c00, "rpush!\t\t%5-9r, %0-4d"},
  283. {0x00007600, 0x00007f00, "msb.f!\t\t%8-11r, %4-7r"},
  284. {0x00007f00, 0x00007f00, "msbh.fs!\t\t%8-11r, %4-7r"},
  285. {0x00007e00, 0x00007f00, "msbl.fs!\t\t%8-11r, %4-7r"},
  286. {0x00007700, 0x00007f00, "msbu!\t\t%8-11r, %4-7r"},
  287. {0x00007d00, 0x00007f00, "mszh.f!\t\t%8-11r, %4-7r"},
  288. {0x00007c00, 0x00007f00, "mszl.f!\t\t%8-11r, %4-7r"},
  289. {0x0000044a, 0x3e007fff, "mtcel\t\t%20-24r"},
  290. {0x00007000, 0x00007ff0, "mtcel!\t\t%4-7r"},
  291. {0x0000084a, 0x3e007fff, "mtceh\t\t%20-24r"},
  292. {0x00007010, 0x00007ff0, "mtceh!\t\t%4-7r"},
  293. {0x00000c4a, 0x3e007fff, "mtcehl\t\t%20-24r, %15-19r"},
  294. {0x0000004a, 0x3e0003ff, "mtce\t\t%20-24r, er%10-14d"},
  295. {0x00000052, 0x3e0003ff, "mtsr\t\t%15-19r, sr%10-14d"},
  296. {0x0c000000, 0x3e00001f, "mtcr\t\t%20-24r, c%15-19r"},
  297. {0x0c000008, 0x3e00001f, "mtc1\t\t%20-24r, c%15-19r"},
  298. {0x0c000010, 0x3e00001f, "mtc2\t\t%20-24r, c%15-19r"},
  299. {0x0c000018, 0x3e00001f, "mtc3\t\t%20-24r, c%15-19r"},
  300. {0x0c00000e, 0x3e00001f, "mtcc1\t\t%20-24r, c%15-19r"},
  301. {0x0c000016, 0x3e00001f, "mtcc2\t\t%20-24r, c%15-19r"},
  302. {0x0c00001e, 0x3e00001f, "mtcc3\t\t%20-24r, c%15-19r"},
  303. {0x00000040, 0x3e0003ff, "mul\t\t%15-19r, %10-14r"},
  304. {0x00000140, 0x3e0003ff, "mulr.l\t\t%20-24r,%15-19r, %10-14r"},
  305. {0x00000240, 0x3e0003ff, "mulr.h\t\t%20-24r,%15-19r, %10-14r"},
  306. {0x00000340, 0x3e0003ff, "mulr\t\t%20-24r,%15-19r, %10-14r"},
  307. {0x00000041, 0x3e0003ff, "mul.f\t\t%15-19r, %10-14r"},
  308. {0x00000141, 0x3e0003ff, "mulr.lf\t\t%20-24r,%15-19r, %10-14r"},
  309. {0x00000241, 0x3e0003ff, "mulr.hf\t\t%20-24r,%15-19r, %10-14r"},
  310. {0x00000341, 0x3e0003ff, "mulr.f\t\t%20-24r,%15-19r, %10-14r"},
  311. {0x00000040, 0x3e0003ff, "maz\t\t%15-19r, %10-14r"},
  312. {0x00000041, 0x3e0003ff, "maz.f\t\t%15-19r, %10-14r"},
  313. {0x00007200, 0x00007f00, "mul.f!\t\t%8-11r, %4-7r"},
  314. {0x00000042, 0x3e0003ff, "mulu\t\t%15-19r, %10-14r"},
  315. {0x00000142, 0x3e0003ff, "mulur.l\t\t%20-24r,%15-19r, %10-14r"},
  316. {0x00000242, 0x3e0003ff, "mulur.h\t\t%20-24r,%15-19r, %10-14r"},
  317. {0x00000342, 0x3e0003ff, "mulur\t\t%20-24r,%15-19r, %10-14r"},
  318. {0x00000042, 0x3e0003ff, "mazu\t\t%15-19r, %10-14r"},
  319. {0x00007300, 0x00007f00, "mulu!\t\t%8-11r, %4-7r"},
  320. {0x00000056, 0x3e007fff, "mvcs\t\t%20-24r, %15-19r"},
  321. {0x00000456, 0x3e007fff, "mvcc\t\t%20-24r, %15-19r"},
  322. {0x00000856, 0x3e007fff, "mvgtu\t\t%20-24r, %15-19r"},
  323. {0x00000c56, 0x3e007fff, "mvleu\t\t%20-24r, %15-19r"},
  324. {0x00001056, 0x3e007fff, "mveq\t\t%20-24r, %15-19r"},
  325. {0x00001456, 0x3e007fff, "mvne\t\t%20-24r, %15-19r"},
  326. {0x00001856, 0x3e007fff, "mvgt\t\t%20-24r, %15-19r"},
  327. {0x00001c56, 0x3e007fff, "mvle\t\t%20-24r, %15-19r"},
  328. {0x00002056, 0x3e007fff, "mvge\t\t%20-24r, %15-19r"},
  329. {0x00002456, 0x3e007fff, "mvlt\t\t%20-24r, %15-19r"},
  330. {0x00002856, 0x3e007fff, "mvmi\t\t%20-24r, %15-19r"},
  331. {0x00002c56, 0x3e007fff, "mvpl\t\t%20-24r, %15-19r"},
  332. {0x00003056, 0x3e007fff, "mvvs\t\t%20-24r, %15-19r"},
  333. {0x00003456, 0x3e007fff, "mvvc\t\t%20-24r, %15-19r"},
  334. {0x00003c56, 0x3e007fff, "mv\t\t%20-24r, %15-19r"},
  335. {0x00004000, 0x00007c00, "mv!\t\t%5-9r, %0-4r"},
  336. {0x0000001e, 0x3e0003ff, "neg\t\t%20-24r, %10-14r"},
  337. {0x0000001f, 0x3e0003ff, "neg.c\t\t%20-24r, %10-14r"},
  338. {0x00000000, 0x3e0003ff, "nop"},
  339. {0x00000024, 0x3e0003ff, "not\t\t%20-24r, %15-19r"},
  340. {0x00000025, 0x3e0003ff, "not.c\t\t%20-24r, %15-19r"},
  341. {0x00000000, 0x00007fff, "nop!"},
  342. {0x00000022, 0x3e0003ff, "or\t\t%20-24r, %15-19r, %10-14r"},
  343. {0x00000023, 0x3e0003ff, "or.c\t\t%20-24r, %15-19r, %10-14r"},
  344. {0x020a0000, 0x3e0e0001, "ori\t\t%20-24r, 0x%1-16x"},
  345. {0x020a0001, 0x3e0e0001, "ori.c\t\t%20-24r, 0x%1-16x"},
  346. {0x0a0a0000, 0x3e0e0001, "oris\t\t%20-24r, 0x%1-16x"},
  347. {0x0a0a0001, 0x3e0e0001, "oris.c\t\t%20-24r, 0x%1-16x"},
  348. {0x1a000000, 0x3e000001, "orri\t\t%20-24r, %15-19r, 0x%1-14x"},
  349. {0x1a000001, 0x3e000001, "orri.c\t\t%20-24r, %15-19r, 0x%1-14x"},
  350. {0x00004a00, 0x00007f00, "or!\t\t%4-7r, %0-3r"},
  351. {0x040000000002LL, 0x1c0000000003LL, "orri48\t\t%38-41r,%34-37r, 0x%2-33x"},
  352. {0x040000000003LL, 0x1c0000000003LL, "orri48.c\t\t%38-41r,%34-37r, 0x%2-33x"},
  353. {0x0000000a, 0x3e0003ff, "pflush"},
  354. {0x00000038, 0x3e0003ff, "ror\t\t%20-24r, %15-19r, %10-14r"},
  355. {0x00000039, 0x3e0003ff, "ror.c\t\t%20-24r, %15-19r, %10-14r"},
  356. {0x0000003b, 0x3e0003ff, "rorc.c\t\t%20-24r, %15-19r, %10-14r"},
  357. {0x0000003c, 0x3e0003ff, "rol\t\t%20-24r, %15-19r, %10-14r"},
  358. {0x0000003d, 0x3e0003ff, "rol.c\t\t%20-24r, %15-19r, %10-14r"},
  359. {0x0000003f, 0x3e0003ff, "rolc.c\t\t%20-24r, %15-19r, %10-14r"},
  360. {0x00000078, 0x3e0003ff, "rori\t\t%20-24r, %15-19r, %10-14d"},
  361. {0x00000079, 0x3e0003ff, "rori.c\t\t%20-24r, %15-19r, %10-14d"},
  362. {0x0000007b, 0x3e0003ff, "roric.c\t\t%20-24r, %15-19r, %10-14d"},
  363. {0x0000007c, 0x3e0003ff, "roli\t\t%20-24r, %15-19r, %10-14d"},
  364. {0x0000007d, 0x3e0003ff, "roli.c\t\t%20-24r, %15-19r, %10-14d"},
  365. {0x0000007f, 0x3e0003ff, "rolic.c\t\t%20-24r, %15-19r, %10-14d"},
  366. {0x0c000084, 0x3e0003ff, "rte"},
  367. {0x2e000000, 0x3e000000, "sb\t\t%20-24r, [%15-19r, %0-14i]"},
  368. {0x06000007, 0x3e000007, "sb\t\t%20-24r, [%15-19r, %3-14i]+"},
  369. {0x0e000007, 0x3e000007, "sb\t\t%20-24r, [%15-19r]+, %3-14i"},
  370. {0x0000000e, 0x3e0003ff, "asw\t\t%20-24r, [%15-19r]"},
  371. {0x00000068, 0x3e0003ff, "scb\t\t%20-24r, [%15-19r]+"},
  372. {0x0000006a, 0x3e0003ff, "scw\t\t%20-24r, [%15-19r]+"},
  373. {0x0000006e, 0x3e0003ff, "sce\t\t[%15-19r]+"},
  374. {0x00000006, 0x3e0003ff, "sdbbp\t\t%15-19d"},
  375. {0x00000020, 0x00007fe0, "sdbbp!\t\t%0-4d"},
  376. {0x000000000000LL, 0x1c000000001fLL, "sdbbp48\t\t%5-9d"},
  377. {0x2a000000, 0x3e000000, "sh\t\t%20-24r, [%15-19r, %0-14i]"},
  378. {0x06000005, 0x3e000007, "sh\t\t%20-24r, [%15-19r, %3-14i]+"},
  379. {0x0e000005, 0x3e000007, "sh\t\t%20-24r, [%15-19r]+, %3-14i"},
  380. {0x0c0000c4, 0x3e0003ff, "sleep"},
  381. {0x00000030, 0x3e0003ff, "sll\t\t%20-24r, %15-19r, %10-14r"},
  382. {0x00000031, 0x3e0003ff, "sll.c\t\t%20-24r, %15-19r, %10-14r"},
  383. {0x00000070, 0x3e0003ff, "slli\t\t%20-24r, %15-19r, %10-14d"},
  384. {0x00000071, 0x3e0003ff, "slli.c\t\t%20-24r, %15-19r, %10-14d"},
  385. {0x00005800, 0x00007e00, "slli!\t\t%5-8r, %0-4d"},
  386. {0x00000034, 0x3e0003ff, "srl\t\t%20-24r, %15-19r, %10-14r"},
  387. {0x00000035, 0x3e0003ff, "srl.c\t\t%20-24r, %15-19r, %10-14r"},
  388. {0x00000036, 0x3e0003ff, "sra\t\t%20-24r, %15-19r, %10-14r"},
  389. {0x00000037, 0x3e0003ff, "sra.c\t\t%20-24r, %15-19r, %10-14r"},
  390. {0x00000074, 0x3e0003ff, "srli\t\t%20-24r, %15-19r, %10-14d"},
  391. {0x00000075, 0x3e0003ff, "srli.c\t\t%20-24r, %15-19r, %10-14d"},
  392. {0x00000076, 0x3e0003ff, "srai\t\t%20-24r, %15-19r, %10-14d"},
  393. {0x00000077, 0x3e0003ff, "srai.c\t\t%20-24r, %15-19r, %10-14d"},
  394. {0x00005a00, 0x00007e00, "srli!\t\t%5-8r, %0-4d"},
  395. {0x0c00000b, 0x3e00001f, "stc1\t\tc%15-19r, [%20-24r, %5-14i]"},
  396. {0x0c000013, 0x3e00001f, "stc2\t\tc%15-19r, [%20-24r, %5-14i]"},
  397. {0x0c00001b, 0x3e00001f, "stc3\t\tc%15-19r, [%20-24r, %5-14i]"},
  398. {0x00000014, 0x3e0003ff, "sub\t\t%20-24r, %15-19r, %10-14r"},
  399. {0x00000015, 0x3e0003ff, "sub.c\t\t%20-24r, %15-19r, %10-14r"},
  400. {0x00000016, 0x3e0003ff, "subc\t\t%20-24r, %15-19r, %10-14r"},
  401. {0x00000017, 0x3e0003ff, "subc.c\t\t%20-24r, %15-19r, %10-14r"},
  402. {0x00004900, 0x00007f00, "sub!\t\t%4-7r, %0-3r"},
  403. {0x28000000, 0x3e000000, "sw\t\t%20-24r, [%15-19r, %0-14i]"},
  404. {0x06000004, 0x3e000007, "sw\t\t%20-24r, [%15-19r, %3-14i]+"},
  405. {0x0e000004, 0x3e000007, "sw\t\t%20-24r, [%15-19r]+, %3-14i"},
  406. {0x00002000, 0x00007000, "sw!\t\t%8-11r, [%5-7r,%0-4d2]"},
  407. {0x000000000003LL, 0x1c000000001fLL, "sw48\t\t%37-41r, [0x%7-36w]"},
  408. {0x00000002, 0x3e0003ff, "syscall\t\t%10-24d"},
  409. {0x00000054, 0x3e007fff, "tcs"},
  410. {0x00000454, 0x3e007fff, "tcc"},
  411. {0x00003854, 0x3e007fff, "tcnz"},
  412. {0x00001054, 0x3e007fff, "teq"},
  413. {0x00000854, 0x3e007fff, "tgtu"},
  414. {0x00001854, 0x3e007fff, "tgt"},
  415. {0x00002054, 0x3e007fff, "tge"},
  416. {0x00000c54, 0x3e007fff, "tleu"},
  417. {0x00001c54, 0x3e007fff, "tle"},
  418. {0x00002454, 0x3e007fff, "tlt"},
  419. {0x0c000004, 0x3e0003ff, "stlb"},
  420. {0x0c000024, 0x3e0003ff, "mftlb"},
  421. {0x0c000044, 0x3e0003ff, "mtptlb"},
  422. {0x0c000064, 0x3e0003ff, "mtrtlb"},
  423. {0x00002854, 0x3e007fff, "tmi"},
  424. {0x00001454, 0x3e007fff, "tne"},
  425. {0x00002c54, 0x3e007fff, "tpl"},
  426. {0x00000004, 0x3e007fff, "trapcs\t\t%15-19d"},
  427. {0x00000404, 0x3e007fff, "trapcc\t\t%15-19d"},
  428. {0x00000804, 0x3e007fff, "trapgtu\t\t%15-19d"},
  429. {0x00000c04, 0x3e007fff, "trapleu\t\t%15-19d"},
  430. {0x00001004, 0x3e007fff, "trapeq\t\t%15-19d"},
  431. {0x00001404, 0x3e007fff, "trapne\t\t%15-19d"},
  432. {0x00001804, 0x3e007fff, "trapgt\t\t%15-19d"},
  433. {0x00001c04, 0x3e007fff, "traple\t\t%15-19d"},
  434. {0x00002004, 0x3e007fff, "trapge\t\t%15-19d"},
  435. {0x00002404, 0x3e007fff, "traplt\t\t%15-19d"},
  436. {0x00002804, 0x3e007fff, "trapmi\t\t%15-19d"},
  437. {0x00002c04, 0x3e007fff, "trappl\t\t%15-19d"},
  438. {0x00003004, 0x3e007fff, "trapvs\t\t%15-19d"},
  439. {0x00003404, 0x3e007fff, "trapvc\t\t%15-19d"},
  440. {0x00003c04, 0x3e007fff, "trap\t\t%15-19d"},
  441. {0x00003c54, 0x3e007fff, "tset"},
  442. {0x00003054, 0x3e007fff, "tvs"},
  443. {0x00003454, 0x3e007fff, "tvc"},
  444. {0x00000026, 0x3e0003ff, "xor\t\t%20-24r, %15-19r, %10-14r"},
  445. {0x00000027, 0x3e0003ff, "xor.c\t\t%20-24r, %15-19r, %10-14r"},
  446. };