m68k-dis.c 212 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051
  1. /* This file is composed of several different files from the upstream
  2. sourceware.org CVS. Original file boundaries marked with **** */
  3. #include <string.h>
  4. #include <math.h>
  5. #include <stdio.h>
  6. #include "dis-asm.h"
  7. /* **** floatformat.h from sourceware.org CVS 2005-08-14. */
  8. /* IEEE floating point support declarations, for GDB, the GNU Debugger.
  9. Copyright 1991, 1994, 1995, 1997, 2000, 2003 Free Software Foundation, Inc.
  10. This file is part of GDB.
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19. You should have received a copy of the GNU General Public License
  20. along with this program; if not, write to the Free Software
  21. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  22. #if !defined (FLOATFORMAT_H)
  23. #define FLOATFORMAT_H 1
  24. /*#include "ansidecl.h" */
  25. /* A floatformat consists of a sign bit, an exponent and a mantissa. Once the
  26. bytes are concatenated according to the byteorder flag, then each of those
  27. fields is contiguous. We number the bits with 0 being the most significant
  28. (i.e. BITS_BIG_ENDIAN type numbering), and specify which bits each field
  29. contains with the *_start and *_len fields. */
  30. /* What is the order of the bytes. */
  31. enum floatformat_byteorders {
  32. /* Standard little endian byte order.
  33. EX: 1.2345678e10 => 00 00 80 c5 e0 fe 06 42 */
  34. floatformat_little,
  35. /* Standard big endian byte order.
  36. EX: 1.2345678e10 => 42 06 fe e0 c5 80 00 00 */
  37. floatformat_big,
  38. /* Little endian byte order but big endian word order.
  39. EX: 1.2345678e10 => e0 fe 06 42 00 00 80 c5 */
  40. floatformat_littlebyte_bigword
  41. };
  42. enum floatformat_intbit { floatformat_intbit_yes, floatformat_intbit_no };
  43. struct floatformat
  44. {
  45. enum floatformat_byteorders byteorder;
  46. unsigned int totalsize; /* Total size of number in bits */
  47. /* Sign bit is always one bit long. 1 means negative, 0 means positive. */
  48. unsigned int sign_start;
  49. unsigned int exp_start;
  50. unsigned int exp_len;
  51. /* Bias added to a "true" exponent to form the biased exponent. It
  52. is intentionally signed as, otherwize, -exp_bias can turn into a
  53. very large number (e.g., given the exp_bias of 0x3fff and a 64
  54. bit long, the equation (long)(1 - exp_bias) evaluates to
  55. 4294950914) instead of -16382). */
  56. int exp_bias;
  57. /* Exponent value which indicates NaN. This is the actual value stored in
  58. the float, not adjusted by the exp_bias. This usually consists of all
  59. one bits. */
  60. unsigned int exp_nan;
  61. unsigned int man_start;
  62. unsigned int man_len;
  63. /* Is the integer bit explicit or implicit? */
  64. enum floatformat_intbit intbit;
  65. /* Internal name for debugging. */
  66. const char *name;
  67. /* Validator method. */
  68. int (*is_valid) (const struct floatformat *fmt, const char *from);
  69. };
  70. /* floatformats for IEEE single and double, big and little endian. */
  71. extern const struct floatformat floatformat_ieee_single_big;
  72. extern const struct floatformat floatformat_ieee_single_little;
  73. extern const struct floatformat floatformat_ieee_double_big;
  74. extern const struct floatformat floatformat_ieee_double_little;
  75. /* floatformat for ARM IEEE double, little endian bytes and big endian words */
  76. extern const struct floatformat floatformat_ieee_double_littlebyte_bigword;
  77. /* floatformats for various extendeds. */
  78. extern const struct floatformat floatformat_i387_ext;
  79. extern const struct floatformat floatformat_m68881_ext;
  80. extern const struct floatformat floatformat_i960_ext;
  81. extern const struct floatformat floatformat_m88110_ext;
  82. extern const struct floatformat floatformat_m88110_harris_ext;
  83. extern const struct floatformat floatformat_arm_ext_big;
  84. extern const struct floatformat floatformat_arm_ext_littlebyte_bigword;
  85. /* IA-64 Floating Point register spilt into memory. */
  86. extern const struct floatformat floatformat_ia64_spill_big;
  87. extern const struct floatformat floatformat_ia64_spill_little;
  88. extern const struct floatformat floatformat_ia64_quad_big;
  89. extern const struct floatformat floatformat_ia64_quad_little;
  90. /* Convert from FMT to a double.
  91. FROM is the address of the extended float.
  92. Store the double in *TO. */
  93. extern void
  94. floatformat_to_double (const struct floatformat *, const char *, double *);
  95. /* The converse: convert the double *FROM to FMT
  96. and store where TO points. */
  97. extern void
  98. floatformat_from_double (const struct floatformat *, const double *, char *);
  99. /* Return non-zero iff the data at FROM is a valid number in format FMT. */
  100. extern int
  101. floatformat_is_valid (const struct floatformat *fmt, const char *from);
  102. #endif /* defined (FLOATFORMAT_H) */
  103. /* **** End of floatformat.h */
  104. /* **** m68k-dis.h from sourceware.org CVS 2005-08-14. */
  105. /* Opcode table header for m680[01234]0/m6888[12]/m68851.
  106. Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2001,
  107. 2003, 2004 Free Software Foundation, Inc.
  108. This file is part of GDB, GAS, and the GNU binutils.
  109. GDB, GAS, and the GNU binutils are free software; you can redistribute
  110. them and/or modify them under the terms of the GNU General Public
  111. License as published by the Free Software Foundation; either version
  112. 1, or (at your option) any later version.
  113. GDB, GAS, and the GNU binutils are distributed in the hope that they
  114. will be useful, but WITHOUT ANY WARRANTY; without even the implied
  115. warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
  116. the GNU General Public License for more details.
  117. You should have received a copy of the GNU General Public License
  118. along with this file; see the file COPYING. If not, write to the Free
  119. Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
  120. 02110-1301, USA. */
  121. /* These are used as bit flags for the arch field in the m68k_opcode
  122. structure. */
  123. #define _m68k_undef 0
  124. #define m68000 0x001
  125. #define m68008 m68000 /* Synonym for -m68000. otherwise unused. */
  126. #define m68010 0x002
  127. #define m68020 0x004
  128. #define m68030 0x008
  129. #define m68ec030 m68030 /* Similar enough to -m68030 to ignore differences;
  130. gas will deal with the few differences. */
  131. #define m68040 0x010
  132. /* There is no 68050. */
  133. #define m68060 0x020
  134. #define m68881 0x040
  135. #define m68882 m68881 /* Synonym for -m68881. otherwise unused. */
  136. #define m68851 0x080
  137. #define cpu32 0x100 /* e.g., 68332 */
  138. #define mcfmac 0x200 /* ColdFire MAC. */
  139. #define mcfemac 0x400 /* ColdFire EMAC. */
  140. #define cfloat 0x800 /* ColdFire FPU. */
  141. #define mcfhwdiv 0x1000 /* ColdFire hardware divide. */
  142. #define mcfisa_a 0x2000 /* ColdFire ISA_A. */
  143. #define mcfisa_aa 0x4000 /* ColdFire ISA_A+. */
  144. #define mcfisa_b 0x8000 /* ColdFire ISA_B. */
  145. #define mcfusp 0x10000 /* ColdFire USP instructions. */
  146. #define mcf5200 0x20000
  147. #define mcf5206e 0x40000
  148. #define mcf521x 0x80000
  149. #define mcf5249 0x100000
  150. #define mcf528x 0x200000
  151. #define mcf5307 0x400000
  152. #define mcf5407 0x800000
  153. #define mcf5470 0x1000000
  154. #define mcf5480 0x2000000
  155. /* Handy aliases. */
  156. #define m68040up (m68040 | m68060)
  157. #define m68030up (m68030 | m68040up)
  158. #define m68020up (m68020 | m68030up)
  159. #define m68010up (m68010 | cpu32 | m68020up)
  160. #define m68000up (m68000 | m68010up)
  161. #define mfloat (m68881 | m68882 | m68040 | m68060)
  162. #define mmmu (m68851 | m68030 | m68040 | m68060)
  163. /* The structure used to hold information for an opcode. */
  164. struct m68k_opcode
  165. {
  166. /* The opcode name. */
  167. const char *name;
  168. /* The pseudo-size of the instruction(in bytes). Used to determine
  169. number of bytes necessary to disassemble the instruction. */
  170. unsigned int size;
  171. /* The opcode itself. */
  172. unsigned long opcode;
  173. /* The mask used by the disassembler. */
  174. unsigned long match;
  175. /* The arguments. */
  176. const char *args;
  177. /* The architectures which support this opcode. */
  178. unsigned int arch;
  179. };
  180. /* The structure used to hold information for an opcode alias. */
  181. struct m68k_opcode_alias
  182. {
  183. /* The alias name. */
  184. const char *alias;
  185. /* The instruction for which this is an alias. */
  186. const char *primary;
  187. };
  188. /* We store four bytes of opcode for all opcodes because that is the
  189. most any of them need. The actual length of an instruction is
  190. always at least 2 bytes, and is as much longer as necessary to hold
  191. the operands it has.
  192. The match field is a mask saying which bits must match particular
  193. opcode in order for an instruction to be an instance of that
  194. opcode.
  195. The args field is a string containing two characters for each
  196. operand of the instruction. The first specifies the kind of
  197. operand; the second, the place it is stored. */
  198. /* Kinds of operands:
  199. Characters used: AaBbCcDdEeFfGgHIiJkLlMmnOopQqRrSsTtU VvWwXxYyZz01234|*~%;@!&$?/<>#^+-
  200. D data register only. Stored as 3 bits.
  201. A address register only. Stored as 3 bits.
  202. a address register indirect only. Stored as 3 bits.
  203. R either kind of register. Stored as 4 bits.
  204. r either kind of register indirect only. Stored as 4 bits.
  205. At the moment, used only for cas2 instruction.
  206. F floating point coprocessor register only. Stored as 3 bits.
  207. O an offset (or width): immediate data 0-31 or data register.
  208. Stored as 6 bits in special format for BF... insns.
  209. + autoincrement only. Stored as 3 bits (number of the address register).
  210. - autodecrement only. Stored as 3 bits (number of the address register).
  211. Q quick immediate data. Stored as 3 bits.
  212. This matches an immediate operand only when value is in range 1 .. 8.
  213. M moveq immediate data. Stored as 8 bits.
  214. This matches an immediate operand only when value is in range -128..127
  215. T trap vector immediate data. Stored as 4 bits.
  216. k K-factor for fmove.p instruction. Stored as a 7-bit constant or
  217. a three bit register offset, depending on the field type.
  218. # immediate data. Stored in special places (b, w or l)
  219. which say how many bits to store.
  220. ^ immediate data for floating point instructions. Special places
  221. are offset by 2 bytes from '#'...
  222. B pc-relative address, converted to an offset
  223. that is treated as immediate data.
  224. d displacement and register. Stores the register as 3 bits
  225. and stores the displacement in the entire second word.
  226. C the CCR. No need to store it; this is just for filtering validity.
  227. S the SR. No need to store, just as with CCR.
  228. U the USP. No need to store, just as with CCR.
  229. E the MAC ACC. No need to store, just as with CCR.
  230. e the EMAC ACC[0123].
  231. G the MAC/EMAC MACSR. No need to store, just as with CCR.
  232. g the EMAC ACCEXT{01,23}.
  233. H the MASK. No need to store, just as with CCR.
  234. i the MAC/EMAC scale factor.
  235. I Coprocessor ID. Not printed if 1. The Coprocessor ID is always
  236. extracted from the 'd' field of word one, which means that an extended
  237. coprocessor opcode can be skipped using the 'i' place, if needed.
  238. s System Control register for the floating point coprocessor.
  239. J Misc register for movec instruction, stored in 'j' format.
  240. Possible values:
  241. 0x000 SFC Source Function Code reg [60, 40, 30, 20, 10]
  242. 0x001 DFC Data Function Code reg [60, 40, 30, 20, 10]
  243. 0x002 CACR Cache Control Register [60, 40, 30, 20, mcf]
  244. 0x003 TC MMU Translation Control [60, 40]
  245. 0x004 ITT0 Instruction Transparent
  246. Translation reg 0 [60, 40]
  247. 0x005 ITT1 Instruction Transparent
  248. Translation reg 1 [60, 40]
  249. 0x006 DTT0 Data Transparent
  250. Translation reg 0 [60, 40]
  251. 0x007 DTT1 Data Transparent
  252. Translation reg 1 [60, 40]
  253. 0x008 BUSCR Bus Control Register [60]
  254. 0x800 USP User Stack Pointer [60, 40, 30, 20, 10]
  255. 0x801 VBR Vector Base reg [60, 40, 30, 20, 10, mcf]
  256. 0x802 CAAR Cache Address Register [ 30, 20]
  257. 0x803 MSP Master Stack Pointer [ 40, 30, 20]
  258. 0x804 ISP Interrupt Stack Pointer [ 40, 30, 20]
  259. 0x805 MMUSR MMU Status reg [ 40]
  260. 0x806 URP User Root Pointer [60, 40]
  261. 0x807 SRP Supervisor Root Pointer [60, 40]
  262. 0x808 PCR Processor Configuration reg [60]
  263. 0xC00 ROMBAR ROM Base Address Register [520X]
  264. 0xC04 RAMBAR0 RAM Base Address Register 0 [520X]
  265. 0xC05 RAMBAR1 RAM Base Address Register 0 [520X]
  266. 0xC0F MBAR0 RAM Base Address Register 0 [520X]
  267. 0xC04 FLASHBAR FLASH Base Address Register [mcf528x]
  268. 0xC05 RAMBAR Static RAM Base Address Register [mcf528x]
  269. L Register list of the type d0-d7/a0-a7 etc.
  270. (New! Improved! Can also hold fp0-fp7, as well!)
  271. The assembler tries to see if the registers match the insn by
  272. looking at where the insn wants them stored.
  273. l Register list like L, but with all the bits reversed.
  274. Used for going the other way. . .
  275. c cache identifier which may be "nc" for no cache, "ic"
  276. for instruction cache, "dc" for data cache, or "bc"
  277. for both caches. Used in cinv and cpush. Always
  278. stored in position "d".
  279. u Any register, with ``upper'' or ``lower'' specification. Used
  280. in the mac instructions with size word.
  281. The remainder are all stored as 6 bits using an address mode and a
  282. register number; they differ in which addressing modes they match.
  283. * all (modes 0-6,7.0-4)
  284. ~ alterable memory (modes 2-6,7.0,7.1)
  285. (not 0,1,7.2-4)
  286. % alterable (modes 0-6,7.0,7.1)
  287. (not 7.2-4)
  288. ; data (modes 0,2-6,7.0-4)
  289. (not 1)
  290. @ data, but not immediate (modes 0,2-6,7.0-3)
  291. (not 1,7.4)
  292. ! control (modes 2,5,6,7.0-3)
  293. (not 0,1,3,4,7.4)
  294. & alterable control (modes 2,5,6,7.0,7.1)
  295. (not 0,1,3,4,7.2-4)
  296. $ alterable data (modes 0,2-6,7.0,7.1)
  297. (not 1,7.2-4)
  298. ? alterable control, or data register (modes 0,2,5,6,7.0,7.1)
  299. (not 1,3,4,7.2-4)
  300. / control, or data register (modes 0,2,5,6,7.0-3)
  301. (not 1,3,4,7.4)
  302. > *save operands (modes 2,4,5,6,7.0,7.1)
  303. (not 0,1,3,7.2-4)
  304. < *restore operands (modes 2,3,5,6,7.0-3)
  305. (not 0,1,4,7.4)
  306. coldfire move operands:
  307. m (modes 0-4)
  308. n (modes 5,7.2)
  309. o (modes 6,7.0,7.1,7.3,7.4)
  310. p (modes 0-5)
  311. coldfire bset/bclr/btst/mulsl/mulul operands:
  312. q (modes 0,2-5)
  313. v (modes 0,2-5,7.0,7.1)
  314. b (modes 0,2-5,7.2)
  315. w (modes 2-5,7.2)
  316. y (modes 2,5)
  317. z (modes 2,5,7.2)
  318. x mov3q immediate operand.
  319. 4 (modes 2,3,4,5)
  320. */
  321. /* For the 68851: */
  322. /* I didn't use much imagination in choosing the
  323. following codes, so many of them aren't very
  324. mnemonic. -rab
  325. 0 32 bit pmmu register
  326. Possible values:
  327. 000 TC Translation Control Register (68030, 68851)
  328. 1 16 bit pmmu register
  329. 111 AC Access Control (68851)
  330. 2 8 bit pmmu register
  331. 100 CAL Current Access Level (68851)
  332. 101 VAL Validate Access Level (68851)
  333. 110 SCC Stack Change Control (68851)
  334. 3 68030-only pmmu registers (32 bit)
  335. 010 TT0 Transparent Translation reg 0
  336. (aka Access Control reg 0 -- AC0 -- on 68ec030)
  337. 011 TT1 Transparent Translation reg 1
  338. (aka Access Control reg 1 -- AC1 -- on 68ec030)
  339. W wide pmmu registers
  340. Possible values:
  341. 001 DRP Dma Root Pointer (68851)
  342. 010 SRP Supervisor Root Pointer (68030, 68851)
  343. 011 CRP Cpu Root Pointer (68030, 68851)
  344. f function code register (68030, 68851)
  345. 0 SFC
  346. 1 DFC
  347. V VAL register only (68851)
  348. X BADx, BACx (16 bit)
  349. 100 BAD Breakpoint Acknowledge Data (68851)
  350. 101 BAC Breakpoint Acknowledge Control (68851)
  351. Y PSR (68851) (MMUSR on 68030) (ACUSR on 68ec030)
  352. Z PCSR (68851)
  353. | memory (modes 2-6, 7.*)
  354. t address test level (68030 only)
  355. Stored as 3 bits, range 0-7.
  356. Also used for breakpoint instruction now.
  357. */
  358. /* Places to put an operand, for non-general operands:
  359. Characters used: BbCcDdFfGgHhIijkLlMmNnostWw123456789/
  360. s source, low bits of first word.
  361. d dest, shifted 9 in first word
  362. 1 second word, shifted 12
  363. 2 second word, shifted 6
  364. 3 second word, shifted 0
  365. 4 third word, shifted 12
  366. 5 third word, shifted 6
  367. 6 third word, shifted 0
  368. 7 second word, shifted 7
  369. 8 second word, shifted 10
  370. 9 second word, shifted 5
  371. D store in both place 1 and place 3; for divul and divsl.
  372. B first word, low byte, for branch displacements
  373. W second word (entire), for branch displacements
  374. L second and third words (entire), for branch displacements
  375. (also overloaded for move16)
  376. b second word, low byte
  377. w second word (entire) [variable word/long branch offset for dbra]
  378. W second word (entire) (must be signed 16 bit value)
  379. l second and third word (entire)
  380. g variable branch offset for bra and similar instructions.
  381. The place to store depends on the magnitude of offset.
  382. t store in both place 7 and place 8; for floating point operations
  383. c branch offset for cpBcc operations.
  384. The place to store is word two if bit six of word one is zero,
  385. and words two and three if bit six of word one is one.
  386. i Increment by two, to skip over coprocessor extended operands. Only
  387. works with the 'I' format.
  388. k Dynamic K-factor field. Bits 6-4 of word 2, used as a register number.
  389. Also used for dynamic fmovem instruction.
  390. C floating point coprocessor constant - 7 bits. Also used for static
  391. K-factors...
  392. j Movec register #, stored in 12 low bits of second word.
  393. m For M[S]ACx; 4 bits split with MSB shifted 6 bits in first word
  394. and remaining 3 bits of register shifted 9 bits in first word.
  395. Indicate upper/lower in 1 bit shifted 7 bits in second word.
  396. Use with `R' or `u' format.
  397. n `m' withouth upper/lower indication. (For M[S]ACx; 4 bits split
  398. with MSB shifted 6 bits in first word and remaining 3 bits of
  399. register shifted 9 bits in first word. No upper/lower
  400. indication is done.) Use with `R' or `u' format.
  401. o For M[S]ACw; 4 bits shifted 12 in second word (like `1').
  402. Indicate upper/lower in 1 bit shifted 7 bits in second word.
  403. Use with `R' or `u' format.
  404. M For M[S]ACw; 4 bits in low bits of first word. Indicate
  405. upper/lower in 1 bit shifted 6 bits in second word. Use with
  406. `R' or `u' format.
  407. N For M[S]ACw; 4 bits in low bits of second word. Indicate
  408. upper/lower in 1 bit shifted 6 bits in second word. Use with
  409. `R' or `u' format.
  410. h shift indicator (scale factor), 1 bit shifted 10 in second word
  411. Places to put operand, for general operands:
  412. d destination, shifted 6 bits in first word
  413. b source, at low bit of first word, and immediate uses one byte
  414. w source, at low bit of first word, and immediate uses two bytes
  415. l source, at low bit of first word, and immediate uses four bytes
  416. s source, at low bit of first word.
  417. Used sometimes in contexts where immediate is not allowed anyway.
  418. f single precision float, low bit of 1st word, immediate uses 4 bytes
  419. F double precision float, low bit of 1st word, immediate uses 8 bytes
  420. x extended precision float, low bit of 1st word, immediate uses 12 bytes
  421. p packed float, low bit of 1st word, immediate uses 12 bytes
  422. G EMAC accumulator, load (bit 4 2nd word, !bit8 first word)
  423. H EMAC accumulator, non load (bit 4 2nd word, bit 8 first word)
  424. F EMAC ACCx
  425. f EMAC ACCy
  426. I MAC/EMAC scale factor
  427. / Like 's', but set 2nd word, bit 5 if trailing_ampersand set
  428. ] first word, bit 10
  429. */
  430. extern const struct m68k_opcode m68k_opcodes[];
  431. extern const struct m68k_opcode_alias m68k_opcode_aliases[];
  432. extern const int m68k_numopcodes, m68k_numaliases;
  433. /* **** End of m68k-opcode.h */
  434. /* **** m68k-dis.c from sourceware.org CVS 2005-08-14. */
  435. /* Print Motorola 68k instructions.
  436. Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
  437. 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  438. Free Software Foundation, Inc.
  439. This file is free software; you can redistribute it and/or modify
  440. it under the terms of the GNU General Public License as published by
  441. the Free Software Foundation; either version 2 of the License, or
  442. (at your option) any later version.
  443. This program is distributed in the hope that it will be useful,
  444. but WITHOUT ANY WARRANTY; without even the implied warranty of
  445. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  446. GNU General Public License for more details.
  447. You should have received a copy of the GNU General Public License
  448. along with this program; if not, write to the Free Software
  449. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  450. MA 02110-1301, USA. */
  451. /* Local function prototypes. */
  452. static const char * const fpcr_names[] =
  453. {
  454. "", "%fpiar", "%fpsr", "%fpiar/%fpsr", "%fpcr",
  455. "%fpiar/%fpcr", "%fpsr/%fpcr", "%fpiar/%fpsr/%fpcr"
  456. };
  457. static const char *const reg_names[] =
  458. {
  459. "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7",
  460. "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%fp", "%sp",
  461. "%ps", "%pc"
  462. };
  463. /* Name of register halves for MAC/EMAC.
  464. Separate from reg_names since 'spu', 'fpl' look weird. */
  465. static const char *const reg_half_names[] =
  466. {
  467. "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7",
  468. "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%a6", "%a7",
  469. "%ps", "%pc"
  470. };
  471. /* Sign-extend an (unsigned char). */
  472. #if __STDC__ == 1
  473. #define COERCE_SIGNED_CHAR(ch) ((signed char) (ch))
  474. #else
  475. #define COERCE_SIGNED_CHAR(ch) ((int) (((ch) ^ 0x80) & 0xFF) - 128)
  476. #endif
  477. /* Get a 1 byte signed integer. */
  478. #define NEXTBYTE(p) (p += 2, FETCH_DATA (info, p), COERCE_SIGNED_CHAR(p[-1]))
  479. /* Get a 2 byte signed integer. */
  480. #define COERCE16(x) ((int) (((x) ^ 0x8000) - 0x8000))
  481. #define NEXTWORD(p) \
  482. (p += 2, FETCH_DATA (info, p), \
  483. COERCE16 ((p[-2] << 8) + p[-1]))
  484. /* Get a 4 byte signed integer. */
  485. #define COERCE32(x) ((bfd_signed_vma) ((x) ^ 0x80000000) - 0x80000000)
  486. #define NEXTLONG(p) \
  487. (p += 4, FETCH_DATA (info, p), \
  488. (COERCE32 ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1])))
  489. /* Get a 4 byte unsigned integer. */
  490. #define NEXTULONG(p) \
  491. (p += 4, FETCH_DATA (info, p), \
  492. (unsigned int) ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1]))
  493. /* Get a single precision float. */
  494. #define NEXTSINGLE(val, p) \
  495. (p += 4, FETCH_DATA (info, p), \
  496. floatformat_to_double (&floatformat_ieee_single_big, (char *) p - 4, &val))
  497. /* Get a double precision float. */
  498. #define NEXTDOUBLE(val, p) \
  499. (p += 8, FETCH_DATA (info, p), \
  500. floatformat_to_double (&floatformat_ieee_double_big, (char *) p - 8, &val))
  501. /* Get an extended precision float. */
  502. #define NEXTEXTEND(val, p) \
  503. (p += 12, FETCH_DATA (info, p), \
  504. floatformat_to_double (&floatformat_m68881_ext, (char *) p - 12, &val))
  505. /* Need a function to convert from packed to double
  506. precision. Actually, it's easier to print a
  507. packed number than a double anyway, so maybe
  508. there should be a special case to handle this... */
  509. #define NEXTPACKED(p) \
  510. (p += 12, FETCH_DATA (info, p), 0.0)
  511. /* Maximum length of an instruction. */
  512. #define MAXLEN 22
  513. #include <setjmp.h>
  514. struct private
  515. {
  516. /* Points to first byte not fetched. */
  517. bfd_byte *max_fetched;
  518. bfd_byte the_buffer[MAXLEN];
  519. bfd_vma insn_start;
  520. jmp_buf bailout;
  521. };
  522. /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)
  523. to ADDR (exclusive) are valid. Returns 1 for success, longjmps
  524. on error. */
  525. #define FETCH_DATA(info, addr) \
  526. ((addr) <= ((struct private *) (info->private_data))->max_fetched \
  527. ? 1 : fetch_data ((info), (addr)))
  528. static int
  529. fetch_data (struct disassemble_info *info, bfd_byte *addr)
  530. {
  531. int status;
  532. struct private *priv = (struct private *)info->private_data;
  533. bfd_vma start = priv->insn_start + (priv->max_fetched - priv->the_buffer);
  534. status = (*info->read_memory_func) (start,
  535. priv->max_fetched,
  536. addr - priv->max_fetched,
  537. info);
  538. if (status != 0)
  539. {
  540. (*info->memory_error_func) (status, start, info);
  541. longjmp (priv->bailout, 1);
  542. }
  543. else
  544. priv->max_fetched = addr;
  545. return 1;
  546. }
  547. /* This function is used to print to the bit-bucket. */
  548. static int
  549. dummy_printer (FILE *file ATTRIBUTE_UNUSED,
  550. const char *format ATTRIBUTE_UNUSED,
  551. ...)
  552. {
  553. return 0;
  554. }
  555. static void
  556. dummy_print_address (bfd_vma vma ATTRIBUTE_UNUSED,
  557. struct disassemble_info *info ATTRIBUTE_UNUSED)
  558. {
  559. }
  560. /* Fetch BITS bits from a position in the instruction specified by CODE.
  561. CODE is a "place to put an argument", or 'x' for a destination
  562. that is a general address (mode and register).
  563. BUFFER contains the instruction. */
  564. static int
  565. fetch_arg (unsigned char *buffer,
  566. int code,
  567. int bits,
  568. disassemble_info *info)
  569. {
  570. int val = 0;
  571. switch (code)
  572. {
  573. case '/': /* MAC/EMAC mask bit. */
  574. val = buffer[3] >> 5;
  575. break;
  576. case 'G': /* EMAC ACC load. */
  577. val = ((buffer[3] >> 3) & 0x2) | ((~buffer[1] >> 7) & 0x1);
  578. break;
  579. case 'H': /* EMAC ACC !load. */
  580. val = ((buffer[3] >> 3) & 0x2) | ((buffer[1] >> 7) & 0x1);
  581. break;
  582. case ']': /* EMAC ACCEXT bit. */
  583. val = buffer[0] >> 2;
  584. break;
  585. case 'I': /* MAC/EMAC scale factor. */
  586. val = buffer[2] >> 1;
  587. break;
  588. case 'F': /* EMAC ACCx. */
  589. val = buffer[0] >> 1;
  590. break;
  591. case 'f':
  592. val = buffer[1];
  593. break;
  594. case 's':
  595. val = buffer[1];
  596. break;
  597. case 'd': /* Destination, for register or quick. */
  598. val = (buffer[0] << 8) + buffer[1];
  599. val >>= 9;
  600. break;
  601. case 'x': /* Destination, for general arg. */
  602. val = (buffer[0] << 8) + buffer[1];
  603. val >>= 6;
  604. break;
  605. case 'k':
  606. FETCH_DATA (info, buffer + 3);
  607. val = (buffer[3] >> 4);
  608. break;
  609. case 'C':
  610. FETCH_DATA (info, buffer + 3);
  611. val = buffer[3];
  612. break;
  613. case '1':
  614. FETCH_DATA (info, buffer + 3);
  615. val = (buffer[2] << 8) + buffer[3];
  616. val >>= 12;
  617. break;
  618. case '2':
  619. FETCH_DATA (info, buffer + 3);
  620. val = (buffer[2] << 8) + buffer[3];
  621. val >>= 6;
  622. break;
  623. case '3':
  624. case 'j':
  625. FETCH_DATA (info, buffer + 3);
  626. val = (buffer[2] << 8) + buffer[3];
  627. break;
  628. case '4':
  629. FETCH_DATA (info, buffer + 5);
  630. val = (buffer[4] << 8) + buffer[5];
  631. val >>= 12;
  632. break;
  633. case '5':
  634. FETCH_DATA (info, buffer + 5);
  635. val = (buffer[4] << 8) + buffer[5];
  636. val >>= 6;
  637. break;
  638. case '6':
  639. FETCH_DATA (info, buffer + 5);
  640. val = (buffer[4] << 8) + buffer[5];
  641. break;
  642. case '7':
  643. FETCH_DATA (info, buffer + 3);
  644. val = (buffer[2] << 8) + buffer[3];
  645. val >>= 7;
  646. break;
  647. case '8':
  648. FETCH_DATA (info, buffer + 3);
  649. val = (buffer[2] << 8) + buffer[3];
  650. val >>= 10;
  651. break;
  652. case '9':
  653. FETCH_DATA (info, buffer + 3);
  654. val = (buffer[2] << 8) + buffer[3];
  655. val >>= 5;
  656. break;
  657. case 'e':
  658. val = (buffer[1] >> 6);
  659. break;
  660. case 'm':
  661. val = (buffer[1] & 0x40 ? 0x8 : 0)
  662. | ((buffer[0] >> 1) & 0x7)
  663. | (buffer[3] & 0x80 ? 0x10 : 0);
  664. break;
  665. case 'n':
  666. val = (buffer[1] & 0x40 ? 0x8 : 0) | ((buffer[0] >> 1) & 0x7);
  667. break;
  668. case 'o':
  669. val = (buffer[2] >> 4) | (buffer[3] & 0x80 ? 0x10 : 0);
  670. break;
  671. case 'M':
  672. val = (buffer[1] & 0xf) | (buffer[3] & 0x40 ? 0x10 : 0);
  673. break;
  674. case 'N':
  675. val = (buffer[3] & 0xf) | (buffer[3] & 0x40 ? 0x10 : 0);
  676. break;
  677. case 'h':
  678. val = buffer[2] >> 2;
  679. break;
  680. default:
  681. abort ();
  682. }
  683. switch (bits)
  684. {
  685. case 1:
  686. return val & 1;
  687. case 2:
  688. return val & 3;
  689. case 3:
  690. return val & 7;
  691. case 4:
  692. return val & 017;
  693. case 5:
  694. return val & 037;
  695. case 6:
  696. return val & 077;
  697. case 7:
  698. return val & 0177;
  699. case 8:
  700. return val & 0377;
  701. case 12:
  702. return val & 07777;
  703. default:
  704. abort ();
  705. }
  706. }
  707. /* Check if an EA is valid for a particular code. This is required
  708. for the EMAC instructions since the type of source address determines
  709. if it is a EMAC-load instruciton if the EA is mode 2-5, otherwise it
  710. is a non-load EMAC instruction and the bits mean register Ry.
  711. A similar case exists for the movem instructions where the register
  712. mask is interpreted differently for different EAs. */
  713. static bfd_boolean
  714. m68k_valid_ea (char code, int val)
  715. {
  716. int mode, mask;
  717. #define M(n0,n1,n2,n3,n4,n5,n6,n70,n71,n72,n73,n74) \
  718. (n0 | n1 << 1 | n2 << 2 | n3 << 3 | n4 << 4 | n5 << 5 | n6 << 6 \
  719. | n70 << 7 | n71 << 8 | n72 << 9 | n73 << 10 | n74 << 11)
  720. switch (code)
  721. {
  722. case '*':
  723. mask = M (1,1,1,1,1,1,1,1,1,1,1,1);
  724. break;
  725. case '~':
  726. mask = M (0,0,1,1,1,1,1,1,1,0,0,0);
  727. break;
  728. case '%':
  729. mask = M (1,1,1,1,1,1,1,1,1,0,0,0);
  730. break;
  731. case ';':
  732. mask = M (1,0,1,1,1,1,1,1,1,1,1,1);
  733. break;
  734. case '@':
  735. mask = M (1,0,1,1,1,1,1,1,1,1,1,0);
  736. break;
  737. case '!':
  738. mask = M (0,0,1,0,0,1,1,1,1,1,1,0);
  739. break;
  740. case '&':
  741. mask = M (0,0,1,0,0,1,1,1,1,0,0,0);
  742. break;
  743. case '$':
  744. mask = M (1,0,1,1,1,1,1,1,1,0,0,0);
  745. break;
  746. case '?':
  747. mask = M (1,0,1,0,0,1,1,1,1,0,0,0);
  748. break;
  749. case '/':
  750. mask = M (1,0,1,0,0,1,1,1,1,1,1,0);
  751. break;
  752. case '|':
  753. mask = M (0,0,1,0,0,1,1,1,1,1,1,0);
  754. break;
  755. case '>':
  756. mask = M (0,0,1,0,1,1,1,1,1,0,0,0);
  757. break;
  758. case '<':
  759. mask = M (0,0,1,1,0,1,1,1,1,1,1,0);
  760. break;
  761. case 'm':
  762. mask = M (1,1,1,1,1,0,0,0,0,0,0,0);
  763. break;
  764. case 'n':
  765. mask = M (0,0,0,0,0,1,0,0,0,1,0,0);
  766. break;
  767. case 'o':
  768. mask = M (0,0,0,0,0,0,1,1,1,0,1,1);
  769. break;
  770. case 'p':
  771. mask = M (1,1,1,1,1,1,0,0,0,0,0,0);
  772. break;
  773. case 'q':
  774. mask = M (1,0,1,1,1,1,0,0,0,0,0,0);
  775. break;
  776. case 'v':
  777. mask = M (1,0,1,1,1,1,0,1,1,0,0,0);
  778. break;
  779. case 'b':
  780. mask = M (1,0,1,1,1,1,0,0,0,1,0,0);
  781. break;
  782. case 'w':
  783. mask = M (0,0,1,1,1,1,0,0,0,1,0,0);
  784. break;
  785. case 'y':
  786. mask = M (0,0,1,0,0,1,0,0,0,0,0,0);
  787. break;
  788. case 'z':
  789. mask = M (0,0,1,0,0,1,0,0,0,1,0,0);
  790. break;
  791. case '4':
  792. mask = M (0,0,1,1,1,1,0,0,0,0,0,0);
  793. break;
  794. default:
  795. abort ();
  796. }
  797. #undef M
  798. mode = (val >> 3) & 7;
  799. if (mode == 7)
  800. mode += val & 7;
  801. return (mask & (1 << mode)) != 0;
  802. }
  803. /* Print a base register REGNO and displacement DISP, on INFO->STREAM.
  804. REGNO = -1 for pc, -2 for none (suppressed). */
  805. static void
  806. print_base (int regno, bfd_vma disp, disassemble_info *info)
  807. {
  808. if (regno == -1)
  809. {
  810. (*info->fprintf_func) (info->stream, "%%pc@(");
  811. (*info->print_address_func) (disp, info);
  812. }
  813. else
  814. {
  815. char buf[50];
  816. if (regno == -2)
  817. (*info->fprintf_func) (info->stream, "@(");
  818. else if (regno == -3)
  819. (*info->fprintf_func) (info->stream, "%%zpc@(");
  820. else
  821. (*info->fprintf_func) (info->stream, "%s@(", reg_names[regno]);
  822. sprintf_vma (buf, disp);
  823. (*info->fprintf_func) (info->stream, "%s", buf);
  824. }
  825. }
  826. /* Print an indexed argument. The base register is BASEREG (-1 for pc).
  827. P points to extension word, in buffer.
  828. ADDR is the nominal core address of that extension word. */
  829. static unsigned char *
  830. print_indexed (int basereg,
  831. unsigned char *p,
  832. bfd_vma addr,
  833. disassemble_info *info)
  834. {
  835. int word;
  836. static const char *const scales[] = { "", ":2", ":4", ":8" };
  837. bfd_vma base_disp;
  838. bfd_vma outer_disp;
  839. char buf[40];
  840. char vmabuf[50];
  841. word = NEXTWORD (p);
  842. /* Generate the text for the index register.
  843. Where this will be output is not yet determined. */
  844. sprintf (buf, "%s:%c%s",
  845. reg_names[(word >> 12) & 0xf],
  846. (word & 0x800) ? 'l' : 'w',
  847. scales[(word >> 9) & 3]);
  848. /* Handle the 68000 style of indexing. */
  849. if ((word & 0x100) == 0)
  850. {
  851. base_disp = word & 0xff;
  852. if ((base_disp & 0x80) != 0)
  853. base_disp -= 0x100;
  854. if (basereg == -1)
  855. base_disp += addr;
  856. print_base (basereg, base_disp, info);
  857. (*info->fprintf_func) (info->stream, ",%s)", buf);
  858. return p;
  859. }
  860. /* Handle the generalized kind. */
  861. /* First, compute the displacement to add to the base register. */
  862. if (word & 0200)
  863. {
  864. if (basereg == -1)
  865. basereg = -3;
  866. else
  867. basereg = -2;
  868. }
  869. if (word & 0100)
  870. buf[0] = '\0';
  871. base_disp = 0;
  872. switch ((word >> 4) & 3)
  873. {
  874. case 2:
  875. base_disp = NEXTWORD (p);
  876. break;
  877. case 3:
  878. base_disp = NEXTLONG (p);
  879. }
  880. if (basereg == -1)
  881. base_disp += addr;
  882. /* Handle single-level case (not indirect). */
  883. if ((word & 7) == 0)
  884. {
  885. print_base (basereg, base_disp, info);
  886. if (buf[0] != '\0')
  887. (*info->fprintf_func) (info->stream, ",%s", buf);
  888. (*info->fprintf_func) (info->stream, ")");
  889. return p;
  890. }
  891. /* Two level. Compute displacement to add after indirection. */
  892. outer_disp = 0;
  893. switch (word & 3)
  894. {
  895. case 2:
  896. outer_disp = NEXTWORD (p);
  897. break;
  898. case 3:
  899. outer_disp = NEXTLONG (p);
  900. }
  901. print_base (basereg, base_disp, info);
  902. if ((word & 4) == 0 && buf[0] != '\0')
  903. {
  904. (*info->fprintf_func) (info->stream, ",%s", buf);
  905. buf[0] = '\0';
  906. }
  907. sprintf_vma (vmabuf, outer_disp);
  908. (*info->fprintf_func) (info->stream, ")@(%s", vmabuf);
  909. if (buf[0] != '\0')
  910. (*info->fprintf_func) (info->stream, ",%s", buf);
  911. (*info->fprintf_func) (info->stream, ")");
  912. return p;
  913. }
  914. /* Returns number of bytes "eaten" by the operand, or
  915. return -1 if an invalid operand was found, or -2 if
  916. an opcode tabe error was found.
  917. ADDR is the pc for this arg to be relative to. */
  918. static int
  919. print_insn_arg (const char *d,
  920. unsigned char *buffer,
  921. unsigned char *p0,
  922. bfd_vma addr,
  923. disassemble_info *info)
  924. {
  925. int val = 0;
  926. int place = d[1];
  927. unsigned char *p = p0;
  928. int regno;
  929. const char *regname;
  930. unsigned char *p1;
  931. double flval;
  932. int flt_p;
  933. bfd_signed_vma disp;
  934. unsigned int uval;
  935. switch (*d)
  936. {
  937. case 'c': /* Cache identifier. */
  938. {
  939. static const char *const cacheFieldName[] = { "nc", "dc", "ic", "bc" };
  940. val = fetch_arg (buffer, place, 2, info);
  941. (*info->fprintf_func) (info->stream, cacheFieldName[val]);
  942. break;
  943. }
  944. case 'a': /* Address register indirect only. Cf. case '+'. */
  945. {
  946. (*info->fprintf_func)
  947. (info->stream,
  948. "%s@",
  949. reg_names[fetch_arg (buffer, place, 3, info) + 8]);
  950. break;
  951. }
  952. case '_': /* 32-bit absolute address for move16. */
  953. {
  954. uval = NEXTULONG (p);
  955. (*info->print_address_func) (uval, info);
  956. break;
  957. }
  958. case 'C':
  959. (*info->fprintf_func) (info->stream, "%%ccr");
  960. break;
  961. case 'S':
  962. (*info->fprintf_func) (info->stream, "%%sr");
  963. break;
  964. case 'U':
  965. (*info->fprintf_func) (info->stream, "%%usp");
  966. break;
  967. case 'E':
  968. (*info->fprintf_func) (info->stream, "%%acc");
  969. break;
  970. case 'G':
  971. (*info->fprintf_func) (info->stream, "%%macsr");
  972. break;
  973. case 'H':
  974. (*info->fprintf_func) (info->stream, "%%mask");
  975. break;
  976. case 'J':
  977. {
  978. /* FIXME: There's a problem here, different m68k processors call the
  979. same address different names. This table can't get it right
  980. because it doesn't know which processor it's disassembling for. */
  981. static const struct { const char *name; int value; } names[]
  982. = {{"%sfc", 0x000}, {"%dfc", 0x001}, {"%cacr", 0x002},
  983. {"%tc", 0x003}, {"%itt0",0x004}, {"%itt1", 0x005},
  984. {"%dtt0",0x006}, {"%dtt1",0x007}, {"%buscr",0x008},
  985. {"%usp", 0x800}, {"%vbr", 0x801}, {"%caar", 0x802},
  986. {"%msp", 0x803}, {"%isp", 0x804},
  987. {"%flashbar", 0xc04}, {"%rambar", 0xc05}, /* mcf528x added these. */
  988. /* Should we be calling this psr like we do in case 'Y'? */
  989. {"%mmusr",0x805},
  990. {"%urp", 0x806}, {"%srp", 0x807}, {"%pcr", 0x808}};
  991. val = fetch_arg (buffer, place, 12, info);
  992. for (regno = sizeof names / sizeof names[0] - 1; regno >= 0; regno--)
  993. if (names[regno].value == val)
  994. {
  995. (*info->fprintf_func) (info->stream, "%s", names[regno].name);
  996. break;
  997. }
  998. if (regno < 0)
  999. (*info->fprintf_func) (info->stream, "%d", val);
  1000. }
  1001. break;
  1002. case 'Q':
  1003. val = fetch_arg (buffer, place, 3, info);
  1004. /* 0 means 8, except for the bkpt instruction... */
  1005. if (val == 0 && d[1] != 's')
  1006. val = 8;
  1007. (*info->fprintf_func) (info->stream, "#%d", val);
  1008. break;
  1009. case 'x':
  1010. val = fetch_arg (buffer, place, 3, info);
  1011. /* 0 means -1. */
  1012. if (val == 0)
  1013. val = -1;
  1014. (*info->fprintf_func) (info->stream, "#%d", val);
  1015. break;
  1016. case 'M':
  1017. if (place == 'h')
  1018. {
  1019. static const char *const scalefactor_name[] = { "<<", ">>" };
  1020. val = fetch_arg (buffer, place, 1, info);
  1021. (*info->fprintf_func) (info->stream, scalefactor_name[val]);
  1022. }
  1023. else
  1024. {
  1025. val = fetch_arg (buffer, place, 8, info);
  1026. if (val & 0x80)
  1027. val = val - 0x100;
  1028. (*info->fprintf_func) (info->stream, "#%d", val);
  1029. }
  1030. break;
  1031. case 'T':
  1032. val = fetch_arg (buffer, place, 4, info);
  1033. (*info->fprintf_func) (info->stream, "#%d", val);
  1034. break;
  1035. case 'D':
  1036. (*info->fprintf_func) (info->stream, "%s",
  1037. reg_names[fetch_arg (buffer, place, 3, info)]);
  1038. break;
  1039. case 'A':
  1040. (*info->fprintf_func)
  1041. (info->stream, "%s",
  1042. reg_names[fetch_arg (buffer, place, 3, info) + 010]);
  1043. break;
  1044. case 'R':
  1045. (*info->fprintf_func)
  1046. (info->stream, "%s",
  1047. reg_names[fetch_arg (buffer, place, 4, info)]);
  1048. break;
  1049. case 'r':
  1050. regno = fetch_arg (buffer, place, 4, info);
  1051. if (regno > 7)
  1052. (*info->fprintf_func) (info->stream, "%s@", reg_names[regno]);
  1053. else
  1054. (*info->fprintf_func) (info->stream, "@(%s)", reg_names[regno]);
  1055. break;
  1056. case 'F':
  1057. (*info->fprintf_func)
  1058. (info->stream, "%%fp%d",
  1059. fetch_arg (buffer, place, 3, info));
  1060. break;
  1061. case 'O':
  1062. val = fetch_arg (buffer, place, 6, info);
  1063. if (val & 0x20)
  1064. (*info->fprintf_func) (info->stream, "%s", reg_names[val & 7]);
  1065. else
  1066. (*info->fprintf_func) (info->stream, "%d", val);
  1067. break;
  1068. case '+':
  1069. (*info->fprintf_func)
  1070. (info->stream, "%s@+",
  1071. reg_names[fetch_arg (buffer, place, 3, info) + 8]);
  1072. break;
  1073. case '-':
  1074. (*info->fprintf_func)
  1075. (info->stream, "%s@-",
  1076. reg_names[fetch_arg (buffer, place, 3, info) + 8]);
  1077. break;
  1078. case 'k':
  1079. if (place == 'k')
  1080. (*info->fprintf_func)
  1081. (info->stream, "{%s}",
  1082. reg_names[fetch_arg (buffer, place, 3, info)]);
  1083. else if (place == 'C')
  1084. {
  1085. val = fetch_arg (buffer, place, 7, info);
  1086. if (val > 63) /* This is a signed constant. */
  1087. val -= 128;
  1088. (*info->fprintf_func) (info->stream, "{#%d}", val);
  1089. }
  1090. else
  1091. return -2;
  1092. break;
  1093. case '#':
  1094. case '^':
  1095. p1 = buffer + (*d == '#' ? 2 : 4);
  1096. if (place == 's')
  1097. val = fetch_arg (buffer, place, 4, info);
  1098. else if (place == 'C')
  1099. val = fetch_arg (buffer, place, 7, info);
  1100. else if (place == '8')
  1101. val = fetch_arg (buffer, place, 3, info);
  1102. else if (place == '3')
  1103. val = fetch_arg (buffer, place, 8, info);
  1104. else if (place == 'b')
  1105. val = NEXTBYTE (p1);
  1106. else if (place == 'w' || place == 'W')
  1107. val = NEXTWORD (p1);
  1108. else if (place == 'l')
  1109. val = NEXTLONG (p1);
  1110. else
  1111. return -2;
  1112. (*info->fprintf_func) (info->stream, "#%d", val);
  1113. break;
  1114. case 'B':
  1115. if (place == 'b')
  1116. disp = NEXTBYTE (p);
  1117. else if (place == 'B')
  1118. disp = COERCE_SIGNED_CHAR (buffer[1]);
  1119. else if (place == 'w' || place == 'W')
  1120. disp = NEXTWORD (p);
  1121. else if (place == 'l' || place == 'L' || place == 'C')
  1122. disp = NEXTLONG (p);
  1123. else if (place == 'g')
  1124. {
  1125. disp = NEXTBYTE (buffer);
  1126. if (disp == 0)
  1127. disp = NEXTWORD (p);
  1128. else if (disp == -1)
  1129. disp = NEXTLONG (p);
  1130. }
  1131. else if (place == 'c')
  1132. {
  1133. if (buffer[1] & 0x40) /* If bit six is one, long offset. */
  1134. disp = NEXTLONG (p);
  1135. else
  1136. disp = NEXTWORD (p);
  1137. }
  1138. else
  1139. return -2;
  1140. (*info->print_address_func) (addr + disp, info);
  1141. break;
  1142. case 'd':
  1143. val = NEXTWORD (p);
  1144. (*info->fprintf_func)
  1145. (info->stream, "%s@(%d)",
  1146. reg_names[fetch_arg (buffer, place, 3, info) + 8], val);
  1147. break;
  1148. case 's':
  1149. (*info->fprintf_func) (info->stream, "%s",
  1150. fpcr_names[fetch_arg (buffer, place, 3, info)]);
  1151. break;
  1152. case 'e':
  1153. val = fetch_arg(buffer, place, 2, info);
  1154. (*info->fprintf_func) (info->stream, "%%acc%d", val);
  1155. break;
  1156. case 'g':
  1157. val = fetch_arg(buffer, place, 1, info);
  1158. (*info->fprintf_func) (info->stream, "%%accext%s", val==0 ? "01" : "23");
  1159. break;
  1160. case 'i':
  1161. val = fetch_arg(buffer, place, 2, info);
  1162. if (val == 1)
  1163. (*info->fprintf_func) (info->stream, "<<");
  1164. else if (val == 3)
  1165. (*info->fprintf_func) (info->stream, ">>");
  1166. else
  1167. return -1;
  1168. break;
  1169. case 'I':
  1170. /* Get coprocessor ID... */
  1171. val = fetch_arg (buffer, 'd', 3, info);
  1172. if (val != 1) /* Unusual coprocessor ID? */
  1173. (*info->fprintf_func) (info->stream, "(cpid=%d) ", val);
  1174. break;
  1175. case '4':
  1176. case '*':
  1177. case '~':
  1178. case '%':
  1179. case ';':
  1180. case '@':
  1181. case '!':
  1182. case '$':
  1183. case '?':
  1184. case '/':
  1185. case '&':
  1186. case '|':
  1187. case '<':
  1188. case '>':
  1189. case 'm':
  1190. case 'n':
  1191. case 'o':
  1192. case 'p':
  1193. case 'q':
  1194. case 'v':
  1195. case 'b':
  1196. case 'w':
  1197. case 'y':
  1198. case 'z':
  1199. if (place == 'd')
  1200. {
  1201. val = fetch_arg (buffer, 'x', 6, info);
  1202. val = ((val & 7) << 3) + ((val >> 3) & 7);
  1203. }
  1204. else
  1205. val = fetch_arg (buffer, 's', 6, info);
  1206. /* If the <ea> is invalid for *d, then reject this match. */
  1207. if (!m68k_valid_ea (*d, val))
  1208. return -1;
  1209. /* Get register number assuming address register. */
  1210. regno = (val & 7) + 8;
  1211. regname = reg_names[regno];
  1212. switch (val >> 3)
  1213. {
  1214. case 0:
  1215. (*info->fprintf_func) (info->stream, "%s", reg_names[val]);
  1216. break;
  1217. case 1:
  1218. (*info->fprintf_func) (info->stream, "%s", regname);
  1219. break;
  1220. case 2:
  1221. (*info->fprintf_func) (info->stream, "%s@", regname);
  1222. break;
  1223. case 3:
  1224. (*info->fprintf_func) (info->stream, "%s@+", regname);
  1225. break;
  1226. case 4:
  1227. (*info->fprintf_func) (info->stream, "%s@-", regname);
  1228. break;
  1229. case 5:
  1230. val = NEXTWORD (p);
  1231. (*info->fprintf_func) (info->stream, "%s@(%d)", regname, val);
  1232. break;
  1233. case 6:
  1234. p = print_indexed (regno, p, addr, info);
  1235. break;
  1236. case 7:
  1237. switch (val & 7)
  1238. {
  1239. case 0:
  1240. val = NEXTWORD (p);
  1241. (*info->print_address_func) (val, info);
  1242. break;
  1243. case 1:
  1244. uval = NEXTULONG (p);
  1245. (*info->print_address_func) (uval, info);
  1246. break;
  1247. case 2:
  1248. val = NEXTWORD (p);
  1249. (*info->fprintf_func) (info->stream, "%%pc@(");
  1250. (*info->print_address_func) (addr + val, info);
  1251. (*info->fprintf_func) (info->stream, ")");
  1252. break;
  1253. case 3:
  1254. p = print_indexed (-1, p, addr, info);
  1255. break;
  1256. case 4:
  1257. flt_p = 1; /* Assume it's a float... */
  1258. switch (place)
  1259. {
  1260. case 'b':
  1261. val = NEXTBYTE (p);
  1262. flt_p = 0;
  1263. break;
  1264. case 'w':
  1265. val = NEXTWORD (p);
  1266. flt_p = 0;
  1267. break;
  1268. case 'l':
  1269. val = NEXTLONG (p);
  1270. flt_p = 0;
  1271. break;
  1272. case 'f':
  1273. NEXTSINGLE (flval, p);
  1274. break;
  1275. case 'F':
  1276. NEXTDOUBLE (flval, p);
  1277. break;
  1278. case 'x':
  1279. NEXTEXTEND (flval, p);
  1280. break;
  1281. case 'p':
  1282. flval = NEXTPACKED (p);
  1283. break;
  1284. default:
  1285. return -1;
  1286. }
  1287. if (flt_p) /* Print a float? */
  1288. (*info->fprintf_func) (info->stream, "#%g", flval);
  1289. else
  1290. (*info->fprintf_func) (info->stream, "#%d", val);
  1291. break;
  1292. default:
  1293. return -1;
  1294. }
  1295. }
  1296. /* If place is '/', then this is the case of the mask bit for
  1297. mac/emac loads. Now that the arg has been printed, grab the
  1298. mask bit and if set, add a '&' to the arg. */
  1299. if (place == '/')
  1300. {
  1301. val = fetch_arg (buffer, place, 1, info);
  1302. if (val)
  1303. info->fprintf_func (info->stream, "&");
  1304. }
  1305. break;
  1306. case 'L':
  1307. case 'l':
  1308. if (place == 'w')
  1309. {
  1310. char doneany;
  1311. p1 = buffer + 2;
  1312. val = NEXTWORD (p1);
  1313. /* Move the pointer ahead if this point is farther ahead
  1314. than the last. */
  1315. p = p1 > p ? p1 : p;
  1316. if (val == 0)
  1317. {
  1318. (*info->fprintf_func) (info->stream, "#0");
  1319. break;
  1320. }
  1321. if (*d == 'l')
  1322. {
  1323. int newval = 0;
  1324. for (regno = 0; regno < 16; ++regno)
  1325. if (val & (0x8000 >> regno))
  1326. newval |= 1 << regno;
  1327. val = newval;
  1328. }
  1329. val &= 0xffff;
  1330. doneany = 0;
  1331. for (regno = 0; regno < 16; ++regno)
  1332. if (val & (1 << regno))
  1333. {
  1334. int first_regno;
  1335. if (doneany)
  1336. (*info->fprintf_func) (info->stream, "/");
  1337. doneany = 1;
  1338. (*info->fprintf_func) (info->stream, "%s", reg_names[regno]);
  1339. first_regno = regno;
  1340. while (val & (1 << (regno + 1)))
  1341. ++regno;
  1342. if (regno > first_regno)
  1343. (*info->fprintf_func) (info->stream, "-%s",
  1344. reg_names[regno]);
  1345. }
  1346. }
  1347. else if (place == '3')
  1348. {
  1349. /* `fmovem' insn. */
  1350. char doneany;
  1351. val = fetch_arg (buffer, place, 8, info);
  1352. if (val == 0)
  1353. {
  1354. (*info->fprintf_func) (info->stream, "#0");
  1355. break;
  1356. }
  1357. if (*d == 'l')
  1358. {
  1359. int newval = 0;
  1360. for (regno = 0; regno < 8; ++regno)
  1361. if (val & (0x80 >> regno))
  1362. newval |= 1 << regno;
  1363. val = newval;
  1364. }
  1365. val &= 0xff;
  1366. doneany = 0;
  1367. for (regno = 0; regno < 8; ++regno)
  1368. if (val & (1 << regno))
  1369. {
  1370. int first_regno;
  1371. if (doneany)
  1372. (*info->fprintf_func) (info->stream, "/");
  1373. doneany = 1;
  1374. (*info->fprintf_func) (info->stream, "%%fp%d", regno);
  1375. first_regno = regno;
  1376. while (val & (1 << (regno + 1)))
  1377. ++regno;
  1378. if (regno > first_regno)
  1379. (*info->fprintf_func) (info->stream, "-%%fp%d", regno);
  1380. }
  1381. }
  1382. else if (place == '8')
  1383. {
  1384. /* fmoveml for FP status registers. */
  1385. (*info->fprintf_func) (info->stream, "%s",
  1386. fpcr_names[fetch_arg (buffer, place, 3,
  1387. info)]);
  1388. }
  1389. else
  1390. return -2;
  1391. break;
  1392. case 'X':
  1393. place = '8';
  1394. case 'Y':
  1395. case 'Z':
  1396. case 'W':
  1397. case '0':
  1398. case '1':
  1399. case '2':
  1400. case '3':
  1401. {
  1402. int val = fetch_arg (buffer, place, 5, info);
  1403. const char *name = 0;
  1404. switch (val)
  1405. {
  1406. case 2: name = "%tt0"; break;
  1407. case 3: name = "%tt1"; break;
  1408. case 0x10: name = "%tc"; break;
  1409. case 0x11: name = "%drp"; break;
  1410. case 0x12: name = "%srp"; break;
  1411. case 0x13: name = "%crp"; break;
  1412. case 0x14: name = "%cal"; break;
  1413. case 0x15: name = "%val"; break;
  1414. case 0x16: name = "%scc"; break;
  1415. case 0x17: name = "%ac"; break;
  1416. case 0x18: name = "%psr"; break;
  1417. case 0x19: name = "%pcsr"; break;
  1418. case 0x1c:
  1419. case 0x1d:
  1420. {
  1421. int break_reg = ((buffer[3] >> 2) & 7);
  1422. (*info->fprintf_func)
  1423. (info->stream, val == 0x1c ? "%%bad%d" : "%%bac%d",
  1424. break_reg);
  1425. }
  1426. break;
  1427. default:
  1428. (*info->fprintf_func) (info->stream, "<mmu register %d>", val);
  1429. }
  1430. if (name)
  1431. (*info->fprintf_func) (info->stream, "%s", name);
  1432. }
  1433. break;
  1434. case 'f':
  1435. {
  1436. int fc = fetch_arg (buffer, place, 5, info);
  1437. if (fc == 1)
  1438. (*info->fprintf_func) (info->stream, "%%dfc");
  1439. else if (fc == 0)
  1440. (*info->fprintf_func) (info->stream, "%%sfc");
  1441. else
  1442. /* xgettext:c-format */
  1443. (*info->fprintf_func) (info->stream, _("<function code %d>"), fc);
  1444. }
  1445. break;
  1446. case 'V':
  1447. (*info->fprintf_func) (info->stream, "%%val");
  1448. break;
  1449. case 't':
  1450. {
  1451. int level = fetch_arg (buffer, place, 3, info);
  1452. (*info->fprintf_func) (info->stream, "%d", level);
  1453. }
  1454. break;
  1455. case 'u':
  1456. {
  1457. short is_upper = 0;
  1458. int reg = fetch_arg (buffer, place, 5, info);
  1459. if (reg & 0x10)
  1460. {
  1461. is_upper = 1;
  1462. reg &= 0xf;
  1463. }
  1464. (*info->fprintf_func) (info->stream, "%s%s",
  1465. reg_half_names[reg],
  1466. is_upper ? "u" : "l");
  1467. }
  1468. break;
  1469. default:
  1470. return -2;
  1471. }
  1472. return p - p0;
  1473. }
  1474. /* Try to match the current instruction to best and if so, return the
  1475. number of bytes consumed from the instruction stream, else zero. */
  1476. static int
  1477. match_insn_m68k (bfd_vma memaddr,
  1478. disassemble_info * info,
  1479. const struct m68k_opcode * best,
  1480. struct private * priv)
  1481. {
  1482. unsigned char *save_p;
  1483. unsigned char *p;
  1484. const char *d;
  1485. bfd_byte *buffer = priv->the_buffer;
  1486. fprintf_ftype save_printer = info->fprintf_func;
  1487. void (* save_print_address) (bfd_vma, struct disassemble_info *)
  1488. = info->print_address_func;
  1489. /* Point at first word of argument data,
  1490. and at descriptor for first argument. */
  1491. p = buffer + 2;
  1492. /* Figure out how long the fixed-size portion of the instruction is.
  1493. The only place this is stored in the opcode table is
  1494. in the arguments--look for arguments which specify fields in the 2nd
  1495. or 3rd words of the instruction. */
  1496. for (d = best->args; *d; d += 2)
  1497. {
  1498. /* I don't think it is necessary to be checking d[0] here;
  1499. I suspect all this could be moved to the case statement below. */
  1500. if (d[0] == '#')
  1501. {
  1502. if (d[1] == 'l' && p - buffer < 6)
  1503. p = buffer + 6;
  1504. else if (p - buffer < 4 && d[1] != 'C' && d[1] != '8')
  1505. p = buffer + 4;
  1506. }
  1507. if ((d[0] == 'L' || d[0] == 'l') && d[1] == 'w' && p - buffer < 4)
  1508. p = buffer + 4;
  1509. switch (d[1])
  1510. {
  1511. case '1':
  1512. case '2':
  1513. case '3':
  1514. case '7':
  1515. case '8':
  1516. case '9':
  1517. case 'i':
  1518. if (p - buffer < 4)
  1519. p = buffer + 4;
  1520. break;
  1521. case '4':
  1522. case '5':
  1523. case '6':
  1524. if (p - buffer < 6)
  1525. p = buffer + 6;
  1526. break;
  1527. default:
  1528. break;
  1529. }
  1530. }
  1531. /* pflusha is an exceptions. It takes no arguments but is two words
  1532. long. Recognize it by looking at the lower 16 bits of the mask. */
  1533. if (p - buffer < 4 && (best->match & 0xFFFF) != 0)
  1534. p = buffer + 4;
  1535. /* lpstop is another exception. It takes a one word argument but is
  1536. three words long. */
  1537. if (p - buffer < 6
  1538. && (best->match & 0xffff) == 0xffff
  1539. && best->args[0] == '#'
  1540. && best->args[1] == 'w')
  1541. {
  1542. /* Copy the one word argument into the usual location for a one
  1543. word argument, to simplify printing it. We can get away with
  1544. this because we know exactly what the second word is, and we
  1545. aren't going to print anything based on it. */
  1546. p = buffer + 6;
  1547. FETCH_DATA (info, p);
  1548. buffer[2] = buffer[4];
  1549. buffer[3] = buffer[5];
  1550. }
  1551. FETCH_DATA (info, p);
  1552. d = best->args;
  1553. save_p = p;
  1554. info->print_address_func = dummy_print_address;
  1555. info->fprintf_func = (fprintf_ftype) dummy_printer;
  1556. /* We scan the operands twice. The first time we don't print anything,
  1557. but look for errors. */
  1558. for (; *d; d += 2)
  1559. {
  1560. int eaten = print_insn_arg (d, buffer, p, memaddr + (p - buffer), info);
  1561. if (eaten >= 0)
  1562. p += eaten;
  1563. else if (eaten == -1)
  1564. {
  1565. info->fprintf_func = save_printer;
  1566. info->print_address_func = save_print_address;
  1567. return 0;
  1568. }
  1569. else
  1570. {
  1571. info->fprintf_func (info->stream,
  1572. /* xgettext:c-format */
  1573. _("<internal error in opcode table: %s %s>\n"),
  1574. best->name, best->args);
  1575. info->fprintf_func = save_printer;
  1576. info->print_address_func = save_print_address;
  1577. return 2;
  1578. }
  1579. }
  1580. p = save_p;
  1581. info->fprintf_func = save_printer;
  1582. info->print_address_func = save_print_address;
  1583. d = best->args;
  1584. info->fprintf_func (info->stream, "%s", best->name);
  1585. if (*d)
  1586. info->fprintf_func (info->stream, " ");
  1587. while (*d)
  1588. {
  1589. p += print_insn_arg (d, buffer, p, memaddr + (p - buffer), info);
  1590. d += 2;
  1591. if (*d && *(d - 2) != 'I' && *d != 'k')
  1592. info->fprintf_func (info->stream, ",");
  1593. }
  1594. return p - buffer;
  1595. }
  1596. /* Print the m68k instruction at address MEMADDR in debugged memory,
  1597. on INFO->STREAM. Returns length of the instruction, in bytes. */
  1598. int
  1599. print_insn_m68k (bfd_vma memaddr, disassemble_info *info)
  1600. {
  1601. int i;
  1602. const char *d;
  1603. unsigned int arch_mask;
  1604. struct private priv;
  1605. bfd_byte *buffer = priv.the_buffer;
  1606. int major_opcode;
  1607. static int numopcodes[16];
  1608. static const struct m68k_opcode **opcodes[16];
  1609. int val;
  1610. if (!opcodes[0])
  1611. {
  1612. /* Speed up the matching by sorting the opcode
  1613. table on the upper four bits of the opcode. */
  1614. const struct m68k_opcode **opc_pointer[16];
  1615. /* First count how many opcodes are in each of the sixteen buckets. */
  1616. for (i = 0; i < m68k_numopcodes; i++)
  1617. numopcodes[(m68k_opcodes[i].opcode >> 28) & 15]++;
  1618. /* Then create a sorted table of pointers
  1619. that point into the unsorted table. */
  1620. opc_pointer[0] = malloc (sizeof (struct m68k_opcode *)
  1621. * m68k_numopcodes);
  1622. opcodes[0] = opc_pointer[0];
  1623. for (i = 1; i < 16; i++)
  1624. {
  1625. opc_pointer[i] = opc_pointer[i - 1] + numopcodes[i - 1];
  1626. opcodes[i] = opc_pointer[i];
  1627. }
  1628. for (i = 0; i < m68k_numopcodes; i++)
  1629. *opc_pointer[(m68k_opcodes[i].opcode >> 28) & 15]++ = &m68k_opcodes[i];
  1630. }
  1631. info->private_data = (PTR) &priv;
  1632. /* Tell objdump to use two bytes per chunk
  1633. and six bytes per line for displaying raw data. */
  1634. info->bytes_per_chunk = 2;
  1635. info->bytes_per_line = 6;
  1636. info->display_endian = BFD_ENDIAN_BIG;
  1637. priv.max_fetched = priv.the_buffer;
  1638. priv.insn_start = memaddr;
  1639. if (setjmp (priv.bailout) != 0)
  1640. /* Error return. */
  1641. return -1;
  1642. switch (info->mach)
  1643. {
  1644. default:
  1645. case 0:
  1646. arch_mask = (unsigned int) -1;
  1647. break;
  1648. case bfd_mach_m68000:
  1649. arch_mask = m68000|m68881|m68851;
  1650. break;
  1651. case bfd_mach_m68008:
  1652. arch_mask = m68008|m68881|m68851;
  1653. break;
  1654. case bfd_mach_m68010:
  1655. arch_mask = m68010|m68881|m68851;
  1656. break;
  1657. case bfd_mach_m68020:
  1658. arch_mask = m68020|m68881|m68851;
  1659. break;
  1660. case bfd_mach_m68030:
  1661. arch_mask = m68030|m68881|m68851;
  1662. break;
  1663. case bfd_mach_m68040:
  1664. arch_mask = m68040|m68881|m68851;
  1665. break;
  1666. case bfd_mach_m68060:
  1667. arch_mask = m68060|m68881|m68851;
  1668. break;
  1669. case bfd_mach_mcf5200:
  1670. arch_mask = mcfisa_a;
  1671. break;
  1672. case bfd_mach_mcf521x:
  1673. case bfd_mach_mcf528x:
  1674. arch_mask = mcfisa_a|mcfhwdiv|mcfisa_aa|mcfusp|mcfemac;
  1675. break;
  1676. case bfd_mach_mcf5206e:
  1677. arch_mask = mcfisa_a|mcfhwdiv|mcfmac;
  1678. break;
  1679. case bfd_mach_mcf5249:
  1680. arch_mask = mcfisa_a|mcfhwdiv|mcfemac;
  1681. break;
  1682. case bfd_mach_mcf5307:
  1683. arch_mask = mcfisa_a|mcfhwdiv|mcfmac;
  1684. break;
  1685. case bfd_mach_mcf5407:
  1686. arch_mask = mcfisa_a|mcfhwdiv|mcfisa_b|mcfmac;
  1687. break;
  1688. case bfd_mach_mcf547x:
  1689. case bfd_mach_mcf548x:
  1690. case bfd_mach_mcfv4e:
  1691. arch_mask = mcfisa_a|mcfhwdiv|mcfisa_b|mcfusp|cfloat|mcfemac;
  1692. break;
  1693. }
  1694. FETCH_DATA (info, buffer + 2);
  1695. major_opcode = (buffer[0] >> 4) & 15;
  1696. for (i = 0; i < numopcodes[major_opcode]; i++)
  1697. {
  1698. const struct m68k_opcode *opc = opcodes[major_opcode][i];
  1699. unsigned long opcode = opc->opcode;
  1700. unsigned long match = opc->match;
  1701. if (((0xff & buffer[0] & (match >> 24)) == (0xff & (opcode >> 24)))
  1702. && ((0xff & buffer[1] & (match >> 16)) == (0xff & (opcode >> 16)))
  1703. /* Only fetch the next two bytes if we need to. */
  1704. && (((0xffff & match) == 0)
  1705. ||
  1706. (FETCH_DATA (info, buffer + 4)
  1707. && ((0xff & buffer[2] & (match >> 8)) == (0xff & (opcode >> 8)))
  1708. && ((0xff & buffer[3] & match) == (0xff & opcode)))
  1709. )
  1710. && (opc->arch & arch_mask) != 0)
  1711. {
  1712. /* Don't use for printout the variants of divul and divsl
  1713. that have the same register number in two places.
  1714. The more general variants will match instead. */
  1715. for (d = opc->args; *d; d += 2)
  1716. if (d[1] == 'D')
  1717. break;
  1718. /* Don't use for printout the variants of most floating
  1719. point coprocessor instructions which use the same
  1720. register number in two places, as above. */
  1721. if (*d == '\0')
  1722. for (d = opc->args; *d; d += 2)
  1723. if (d[1] == 't')
  1724. break;
  1725. /* Don't match fmovel with more than one register;
  1726. wait for fmoveml. */
  1727. if (*d == '\0')
  1728. {
  1729. for (d = opc->args; *d; d += 2)
  1730. {
  1731. if (d[0] == 's' && d[1] == '8')
  1732. {
  1733. val = fetch_arg (buffer, d[1], 3, info);
  1734. if ((val & (val - 1)) != 0)
  1735. break;
  1736. }
  1737. }
  1738. }
  1739. if (*d == '\0')
  1740. if ((val = match_insn_m68k (memaddr, info, opc, & priv)))
  1741. return val;
  1742. }
  1743. }
  1744. /* Handle undefined instructions. */
  1745. info->fprintf_func (info->stream, "0%o", (buffer[0] << 8) + buffer[1]);
  1746. return 2;
  1747. }
  1748. /* **** End of m68k-dis.c */
  1749. /* **** m68k-opc.h from sourceware.org CVS 2005-08-14. */
  1750. /* Opcode table for m680[012346]0/m6888[12]/m68851/mcf5200.
  1751. Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  1752. 2000, 2001, 2003, 2004, 2005
  1753. Free Software Foundation, Inc.
  1754. This file is part of GDB, GAS, and the GNU binutils.
  1755. GDB, GAS, and the GNU binutils are free software; you can redistribute
  1756. them and/or modify them under the terms of the GNU General Public
  1757. License as published by the Free Software Foundation; either version
  1758. 1, or (at your option) any later version.
  1759. GDB, GAS, and the GNU binutils are distributed in the hope that they
  1760. will be useful, but WITHOUT ANY WARRANTY; without even the implied
  1761. warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
  1762. the GNU General Public License for more details.
  1763. You should have received a copy of the GNU General Public License
  1764. along with this file; see the file COPYING. If not, write to the Free
  1765. Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
  1766. 02110-1301, USA. */
  1767. #define one(x) ((unsigned int) (x) << 16)
  1768. #define two(x, y) (((unsigned int) (x) << 16) + (y))
  1769. /* The assembler requires that all instances of the same mnemonic must
  1770. be consecutive. If they aren't, the assembler will bomb at
  1771. runtime. */
  1772. const struct m68k_opcode m68k_opcodes[] =
  1773. {
  1774. {"abcd", 2, one(0140400), one(0170770), "DsDd", m68000up },
  1775. {"abcd", 2, one(0140410), one(0170770), "-s-d", m68000up },
  1776. {"addaw", 2, one(0150300), one(0170700), "*wAd", m68000up },
  1777. {"addal", 2, one(0150700), one(0170700), "*lAd", m68000up | mcfisa_a },
  1778. {"addib", 4, one(0003000), one(0177700), "#b$s", m68000up },
  1779. {"addiw", 4, one(0003100), one(0177700), "#w$s", m68000up },
  1780. {"addil", 6, one(0003200), one(0177700), "#l$s", m68000up },
  1781. {"addil", 6, one(0003200), one(0177700), "#lDs", mcfisa_a },
  1782. {"addqb", 2, one(0050000), one(0170700), "Qd$b", m68000up },
  1783. {"addqw", 2, one(0050100), one(0170700), "Qd%w", m68000up },
  1784. {"addql", 2, one(0050200), one(0170700), "Qd%l", m68000up | mcfisa_a },
  1785. /* The add opcode can generate the adda, addi, and addq instructions. */
  1786. {"addb", 2, one(0050000), one(0170700), "Qd$b", m68000up },
  1787. {"addb", 4, one(0003000), one(0177700), "#b$s", m68000up },
  1788. {"addb", 2, one(0150000), one(0170700), ";bDd", m68000up },
  1789. {"addb", 2, one(0150400), one(0170700), "Dd~b", m68000up },
  1790. {"addw", 2, one(0050100), one(0170700), "Qd%w", m68000up },
  1791. {"addw", 2, one(0150300), one(0170700), "*wAd", m68000up },
  1792. {"addw", 4, one(0003100), one(0177700), "#w$s", m68000up },
  1793. {"addw", 2, one(0150100), one(0170700), "*wDd", m68000up },
  1794. {"addw", 2, one(0150500), one(0170700), "Dd~w", m68000up },
  1795. {"addl", 2, one(0050200), one(0170700), "Qd%l", m68000up | mcfisa_a },
  1796. {"addl", 6, one(0003200), one(0177700), "#l$s", m68000up },
  1797. {"addl", 6, one(0003200), one(0177700), "#lDs", mcfisa_a },
  1798. {"addl", 2, one(0150700), one(0170700), "*lAd", m68000up | mcfisa_a },
  1799. {"addl", 2, one(0150200), one(0170700), "*lDd", m68000up | mcfisa_a },
  1800. {"addl", 2, one(0150600), one(0170700), "Dd~l", m68000up | mcfisa_a },
  1801. {"addxb", 2, one(0150400), one(0170770), "DsDd", m68000up },
  1802. {"addxb", 2, one(0150410), one(0170770), "-s-d", m68000up },
  1803. {"addxw", 2, one(0150500), one(0170770), "DsDd", m68000up },
  1804. {"addxw", 2, one(0150510), one(0170770), "-s-d", m68000up },
  1805. {"addxl", 2, one(0150600), one(0170770), "DsDd", m68000up | mcfisa_a },
  1806. {"addxl", 2, one(0150610), one(0170770), "-s-d", m68000up },
  1807. {"andib", 4, one(0001000), one(0177700), "#b$s", m68000up },
  1808. {"andib", 4, one(0001074), one(0177777), "#bCs", m68000up },
  1809. {"andiw", 4, one(0001100), one(0177700), "#w$s", m68000up },
  1810. {"andiw", 4, one(0001174), one(0177777), "#wSs", m68000up },
  1811. {"andil", 6, one(0001200), one(0177700), "#l$s", m68000up },
  1812. {"andil", 6, one(0001200), one(0177700), "#lDs", mcfisa_a },
  1813. {"andi", 4, one(0001100), one(0177700), "#w$s", m68000up },
  1814. {"andi", 4, one(0001074), one(0177777), "#bCs", m68000up },
  1815. {"andi", 4, one(0001174), one(0177777), "#wSs", m68000up },
  1816. /* The and opcode can generate the andi instruction. */
  1817. {"andb", 4, one(0001000), one(0177700), "#b$s", m68000up },
  1818. {"andb", 4, one(0001074), one(0177777), "#bCs", m68000up },
  1819. {"andb", 2, one(0140000), one(0170700), ";bDd", m68000up },
  1820. {"andb", 2, one(0140400), one(0170700), "Dd~b", m68000up },
  1821. {"andw", 4, one(0001100), one(0177700), "#w$s", m68000up },
  1822. {"andw", 4, one(0001174), one(0177777), "#wSs", m68000up },
  1823. {"andw", 2, one(0140100), one(0170700), ";wDd", m68000up },
  1824. {"andw", 2, one(0140500), one(0170700), "Dd~w", m68000up },
  1825. {"andl", 6, one(0001200), one(0177700), "#l$s", m68000up },
  1826. {"andl", 6, one(0001200), one(0177700), "#lDs", mcfisa_a },
  1827. {"andl", 2, one(0140200), one(0170700), ";lDd", m68000up | mcfisa_a },
  1828. {"andl", 2, one(0140600), one(0170700), "Dd~l", m68000up | mcfisa_a },
  1829. {"and", 4, one(0001100), one(0177700), "#w$w", m68000up },
  1830. {"and", 4, one(0001074), one(0177777), "#bCs", m68000up },
  1831. {"and", 4, one(0001174), one(0177777), "#wSs", m68000up },
  1832. {"and", 2, one(0140100), one(0170700), ";wDd", m68000up },
  1833. {"and", 2, one(0140500), one(0170700), "Dd~w", m68000up },
  1834. {"aslb", 2, one(0160400), one(0170770), "QdDs", m68000up },
  1835. {"aslb", 2, one(0160440), one(0170770), "DdDs", m68000up },
  1836. {"aslw", 2, one(0160500), one(0170770), "QdDs", m68000up },
  1837. {"aslw", 2, one(0160540), one(0170770), "DdDs", m68000up },
  1838. {"aslw", 2, one(0160700), one(0177700), "~s", m68000up },
  1839. {"asll", 2, one(0160600), one(0170770), "QdDs", m68000up | mcfisa_a },
  1840. {"asll", 2, one(0160640), one(0170770), "DdDs", m68000up | mcfisa_a },
  1841. {"asrb", 2, one(0160000), one(0170770), "QdDs", m68000up },
  1842. {"asrb", 2, one(0160040), one(0170770), "DdDs", m68000up },
  1843. {"asrw", 2, one(0160100), one(0170770), "QdDs", m68000up },
  1844. {"asrw", 2, one(0160140), one(0170770), "DdDs", m68000up },
  1845. {"asrw", 2, one(0160300), one(0177700), "~s", m68000up },
  1846. {"asrl", 2, one(0160200), one(0170770), "QdDs", m68000up | mcfisa_a },
  1847. {"asrl", 2, one(0160240), one(0170770), "DdDs", m68000up | mcfisa_a },
  1848. {"bhiw", 2, one(0061000), one(0177777), "BW", m68000up | mcfisa_a },
  1849. {"blsw", 2, one(0061400), one(0177777), "BW", m68000up | mcfisa_a },
  1850. {"bccw", 2, one(0062000), one(0177777), "BW", m68000up | mcfisa_a },
  1851. {"bcsw", 2, one(0062400), one(0177777), "BW", m68000up | mcfisa_a },
  1852. {"bnew", 2, one(0063000), one(0177777), "BW", m68000up | mcfisa_a },
  1853. {"beqw", 2, one(0063400), one(0177777), "BW", m68000up | mcfisa_a },
  1854. {"bvcw", 2, one(0064000), one(0177777), "BW", m68000up | mcfisa_a },
  1855. {"bvsw", 2, one(0064400), one(0177777), "BW", m68000up | mcfisa_a },
  1856. {"bplw", 2, one(0065000), one(0177777), "BW", m68000up | mcfisa_a },
  1857. {"bmiw", 2, one(0065400), one(0177777), "BW", m68000up | mcfisa_a },
  1858. {"bgew", 2, one(0066000), one(0177777), "BW", m68000up | mcfisa_a },
  1859. {"bltw", 2, one(0066400), one(0177777), "BW", m68000up | mcfisa_a },
  1860. {"bgtw", 2, one(0067000), one(0177777), "BW", m68000up | mcfisa_a },
  1861. {"blew", 2, one(0067400), one(0177777), "BW", m68000up | mcfisa_a },
  1862. {"bhil", 2, one(0061377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1863. {"blsl", 2, one(0061777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1864. {"bccl", 2, one(0062377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1865. {"bcsl", 2, one(0062777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1866. {"bnel", 2, one(0063377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1867. {"beql", 2, one(0063777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1868. {"bvcl", 2, one(0064377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1869. {"bvsl", 2, one(0064777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1870. {"bpll", 2, one(0065377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1871. {"bmil", 2, one(0065777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1872. {"bgel", 2, one(0066377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1873. {"bltl", 2, one(0066777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1874. {"bgtl", 2, one(0067377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1875. {"blel", 2, one(0067777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1876. {"bhis", 2, one(0061000), one(0177400), "BB", m68000up | mcfisa_a },
  1877. {"blss", 2, one(0061400), one(0177400), "BB", m68000up | mcfisa_a },
  1878. {"bccs", 2, one(0062000), one(0177400), "BB", m68000up | mcfisa_a },
  1879. {"bcss", 2, one(0062400), one(0177400), "BB", m68000up | mcfisa_a },
  1880. {"bnes", 2, one(0063000), one(0177400), "BB", m68000up | mcfisa_a },
  1881. {"beqs", 2, one(0063400), one(0177400), "BB", m68000up | mcfisa_a },
  1882. {"bvcs", 2, one(0064000), one(0177400), "BB", m68000up | mcfisa_a },
  1883. {"bvss", 2, one(0064400), one(0177400), "BB", m68000up | mcfisa_a },
  1884. {"bpls", 2, one(0065000), one(0177400), "BB", m68000up | mcfisa_a },
  1885. {"bmis", 2, one(0065400), one(0177400), "BB", m68000up | mcfisa_a },
  1886. {"bges", 2, one(0066000), one(0177400), "BB", m68000up | mcfisa_a },
  1887. {"blts", 2, one(0066400), one(0177400), "BB", m68000up | mcfisa_a },
  1888. {"bgts", 2, one(0067000), one(0177400), "BB", m68000up | mcfisa_a },
  1889. {"bles", 2, one(0067400), one(0177400), "BB", m68000up | mcfisa_a },
  1890. {"jhi", 2, one(0061000), one(0177400), "Bg", m68000up | mcfisa_a },
  1891. {"jls", 2, one(0061400), one(0177400), "Bg", m68000up | mcfisa_a },
  1892. {"jcc", 2, one(0062000), one(0177400), "Bg", m68000up | mcfisa_a },
  1893. {"jcs", 2, one(0062400), one(0177400), "Bg", m68000up | mcfisa_a },
  1894. {"jne", 2, one(0063000), one(0177400), "Bg", m68000up | mcfisa_a },
  1895. {"jeq", 2, one(0063400), one(0177400), "Bg", m68000up | mcfisa_a },
  1896. {"jvc", 2, one(0064000), one(0177400), "Bg", m68000up | mcfisa_a },
  1897. {"jvs", 2, one(0064400), one(0177400), "Bg", m68000up | mcfisa_a },
  1898. {"jpl", 2, one(0065000), one(0177400), "Bg", m68000up | mcfisa_a },
  1899. {"jmi", 2, one(0065400), one(0177400), "Bg", m68000up | mcfisa_a },
  1900. {"jge", 2, one(0066000), one(0177400), "Bg", m68000up | mcfisa_a },
  1901. {"jlt", 2, one(0066400), one(0177400), "Bg", m68000up | mcfisa_a },
  1902. {"jgt", 2, one(0067000), one(0177400), "Bg", m68000up | mcfisa_a },
  1903. {"jle", 2, one(0067400), one(0177400), "Bg", m68000up | mcfisa_a },
  1904. {"bchg", 2, one(0000500), one(0170700), "Dd$s", m68000up | mcfisa_a },
  1905. {"bchg", 4, one(0004100), one(0177700), "#b$s", m68000up },
  1906. {"bchg", 4, one(0004100), one(0177700), "#bqs", mcfisa_a },
  1907. {"bclr", 2, one(0000600), one(0170700), "Dd$s", m68000up | mcfisa_a },
  1908. {"bclr", 4, one(0004200), one(0177700), "#b$s", m68000up },
  1909. {"bclr", 4, one(0004200), one(0177700), "#bqs", mcfisa_a },
  1910. {"bfchg", 4, two(0165300, 0), two(0177700, 0170000), "?sO2O3", m68020up },
  1911. {"bfclr", 4, two(0166300, 0), two(0177700, 0170000), "?sO2O3", m68020up },
  1912. {"bfexts", 4, two(0165700, 0), two(0177700, 0100000), "/sO2O3D1", m68020up },
  1913. {"bfextu", 4, two(0164700, 0), two(0177700, 0100000), "/sO2O3D1", m68020up },
  1914. {"bfffo", 4, two(0166700, 0), two(0177700, 0100000), "/sO2O3D1", m68020up },
  1915. {"bfins", 4, two(0167700, 0), two(0177700, 0100000), "D1?sO2O3", m68020up },
  1916. {"bfset", 4, two(0167300, 0), two(0177700, 0170000), "?sO2O3", m68020up },
  1917. {"bftst", 4, two(0164300, 0), two(0177700, 0170000), "/sO2O3", m68020up },
  1918. {"bgnd", 2, one(0045372), one(0177777), "", cpu32 },
  1919. {"bitrev", 2, one(0000300), one(0177770), "Ds", mcfisa_aa},
  1920. {"bkpt", 2, one(0044110), one(0177770), "ts", m68010up },
  1921. {"braw", 2, one(0060000), one(0177777), "BW", m68000up | mcfisa_a },
  1922. {"bral", 2, one(0060377), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1923. {"bras", 2, one(0060000), one(0177400), "BB", m68000up | mcfisa_a },
  1924. {"bset", 2, one(0000700), one(0170700), "Dd$s", m68000up | mcfisa_a },
  1925. {"bset", 2, one(0000700), one(0170700), "Ddvs", mcfisa_a },
  1926. {"bset", 4, one(0004300), one(0177700), "#b$s", m68000up },
  1927. {"bset", 4, one(0004300), one(0177700), "#bqs", mcfisa_a },
  1928. {"bsrw", 2, one(0060400), one(0177777), "BW", m68000up | mcfisa_a },
  1929. {"bsrl", 2, one(0060777), one(0177777), "BL", m68020up | cpu32 | mcfisa_b},
  1930. {"bsrs", 2, one(0060400), one(0177400), "BB", m68000up | mcfisa_a },
  1931. {"btst", 2, one(0000400), one(0170700), "Dd;b", m68000up | mcfisa_a },
  1932. {"btst", 4, one(0004000), one(0177700), "#b@s", m68000up },
  1933. {"btst", 4, one(0004000), one(0177700), "#bqs", mcfisa_a },
  1934. {"byterev", 2, one(0001300), one(0177770), "Ds", mcfisa_aa},
  1935. {"callm", 4, one(0003300), one(0177700), "#b!s", m68020 },
  1936. {"cas2w", 6, two(0006374,0), two(0177777,0007070), "D3D6D2D5r1r4", m68020up },
  1937. {"cas2w", 6, two(0006374,0), two(0177777,0007070), "D3D6D2D5R1R4", m68020up },
  1938. {"cas2l", 6, two(0007374,0), two(0177777,0007070), "D3D6D2D5r1r4", m68020up },
  1939. {"cas2l", 6, two(0007374,0), two(0177777,0007070), "D3D6D2D5R1R4", m68020up },
  1940. {"casb", 4, two(0005300, 0), two(0177700, 0177070), "D3D2~s", m68020up },
  1941. {"casw", 4, two(0006300, 0), two(0177700, 0177070), "D3D2~s", m68020up },
  1942. {"casl", 4, two(0007300, 0), two(0177700, 0177070), "D3D2~s", m68020up },
  1943. {"chk2b", 4, two(0000300,0004000), two(0177700,07777), "!sR1", m68020up | cpu32 },
  1944. {"chk2w", 4, two(0001300,0004000), two(0177700,07777), "!sR1", m68020up | cpu32 },
  1945. {"chk2l", 4, two(0002300,0004000), two(0177700,07777), "!sR1", m68020up | cpu32 },
  1946. {"chkl", 2, one(0040400), one(0170700), ";lDd", m68000up },
  1947. {"chkw", 2, one(0040600), one(0170700), ";wDd", m68000up },
  1948. #define SCOPE_LINE (0x1 << 3)
  1949. #define SCOPE_PAGE (0x2 << 3)
  1950. #define SCOPE_ALL (0x3 << 3)
  1951. {"cinva", 2, one(0xf400|SCOPE_ALL), one(0xff38), "ce", m68040up },
  1952. {"cinvl", 2, one(0xf400|SCOPE_LINE), one(0xff38), "ceas", m68040up },
  1953. {"cinvp", 2, one(0xf400|SCOPE_PAGE), one(0xff38), "ceas", m68040up },
  1954. {"cpusha", 2, one(0xf420|SCOPE_ALL), one(0xff38), "ce", m68040up },
  1955. {"cpushl", 2, one(0xf420|SCOPE_LINE), one(0xff38), "ceas", m68040up | mcfisa_a },
  1956. {"cpushp", 2, one(0xf420|SCOPE_PAGE), one(0xff38), "ceas", m68040up },
  1957. #undef SCOPE_LINE
  1958. #undef SCOPE_PAGE
  1959. #undef SCOPE_ALL
  1960. {"clrb", 2, one(0041000), one(0177700), "$s", m68000up | mcfisa_a },
  1961. {"clrw", 2, one(0041100), one(0177700), "$s", m68000up | mcfisa_a },
  1962. {"clrl", 2, one(0041200), one(0177700), "$s", m68000up | mcfisa_a },
  1963. {"cmp2b", 4, two(0000300,0), two(0177700,07777), "!sR1", m68020up | cpu32 },
  1964. {"cmp2w", 4, two(0001300,0), two(0177700,07777), "!sR1", m68020up | cpu32 },
  1965. {"cmp2l", 4, two(0002300,0), two(0177700,07777), "!sR1", m68020up | cpu32 },
  1966. {"cmpaw", 2, one(0130300), one(0170700), "*wAd", m68000up },
  1967. {"cmpal", 2, one(0130700), one(0170700), "*lAd", m68000up | mcfisa_a },
  1968. {"cmpib", 4, one(0006000), one(0177700), "#b@s", m68000up },
  1969. {"cmpib", 4, one(0006000), one(0177700), "#bDs", mcfisa_b },
  1970. {"cmpiw", 4, one(0006100), one(0177700), "#w@s", m68000up },
  1971. {"cmpiw", 4, one(0006100), one(0177700), "#wDs", mcfisa_b },
  1972. {"cmpil", 6, one(0006200), one(0177700), "#l@s", m68000up },
  1973. {"cmpil", 6, one(0006200), one(0177700), "#lDs", mcfisa_a },
  1974. {"cmpmb", 2, one(0130410), one(0170770), "+s+d", m68000up },
  1975. {"cmpmw", 2, one(0130510), one(0170770), "+s+d", m68000up },
  1976. {"cmpml", 2, one(0130610), one(0170770), "+s+d", m68000up },
  1977. /* The cmp opcode can generate the cmpa, cmpm, and cmpi instructions. */
  1978. {"cmpb", 4, one(0006000), one(0177700), "#b@s", m68000up },
  1979. {"cmpb", 4, one(0006000), one(0177700), "#bDs", mcfisa_b },
  1980. {"cmpb", 2, one(0130410), one(0170770), "+s+d", m68000up },
  1981. {"cmpb", 2, one(0130000), one(0170700), ";bDd", m68000up },
  1982. {"cmpb", 2, one(0130000), one(0170700), "*bDd", mcfisa_b },
  1983. {"cmpw", 2, one(0130300), one(0170700), "*wAd", m68000up },
  1984. {"cmpw", 4, one(0006100), one(0177700), "#w@s", m68000up },
  1985. {"cmpw", 4, one(0006100), one(0177700), "#wDs", mcfisa_b },
  1986. {"cmpw", 2, one(0130510), one(0170770), "+s+d", m68000up },
  1987. {"cmpw", 2, one(0130100), one(0170700), "*wDd", m68000up | mcfisa_b },
  1988. {"cmpl", 2, one(0130700), one(0170700), "*lAd", m68000up | mcfisa_a },
  1989. {"cmpl", 6, one(0006200), one(0177700), "#l@s", m68000up },
  1990. {"cmpl", 6, one(0006200), one(0177700), "#lDs", mcfisa_a },
  1991. {"cmpl", 2, one(0130610), one(0170770), "+s+d", m68000up },
  1992. {"cmpl", 2, one(0130200), one(0170700), "*lDd", m68000up | mcfisa_a },
  1993. {"dbcc", 2, one(0052310), one(0177770), "DsBw", m68000up },
  1994. {"dbcs", 2, one(0052710), one(0177770), "DsBw", m68000up },
  1995. {"dbeq", 2, one(0053710), one(0177770), "DsBw", m68000up },
  1996. {"dbf", 2, one(0050710), one(0177770), "DsBw", m68000up },
  1997. {"dbge", 2, one(0056310), one(0177770), "DsBw", m68000up },
  1998. {"dbgt", 2, one(0057310), one(0177770), "DsBw", m68000up },
  1999. {"dbhi", 2, one(0051310), one(0177770), "DsBw", m68000up },
  2000. {"dble", 2, one(0057710), one(0177770), "DsBw", m68000up },
  2001. {"dbls", 2, one(0051710), one(0177770), "DsBw", m68000up },
  2002. {"dblt", 2, one(0056710), one(0177770), "DsBw", m68000up },
  2003. {"dbmi", 2, one(0055710), one(0177770), "DsBw", m68000up },
  2004. {"dbne", 2, one(0053310), one(0177770), "DsBw", m68000up },
  2005. {"dbpl", 2, one(0055310), one(0177770), "DsBw", m68000up },
  2006. {"dbt", 2, one(0050310), one(0177770), "DsBw", m68000up },
  2007. {"dbvc", 2, one(0054310), one(0177770), "DsBw", m68000up },
  2008. {"dbvs", 2, one(0054710), one(0177770), "DsBw", m68000up },
  2009. {"divsw", 2, one(0100700), one(0170700), ";wDd", m68000up | mcfhwdiv },
  2010. {"divsl", 4, two(0046100,0006000),two(0177700,0107770),";lD3D1", m68020up|cpu32 },
  2011. {"divsl", 4, two(0046100,0004000),two(0177700,0107770),";lDD", m68020up|cpu32 },
  2012. {"divsl", 4, two(0046100,0004000),two(0177700,0107770),"qsDD", mcfhwdiv },
  2013. {"divsll", 4, two(0046100,0004000),two(0177700,0107770),";lD3D1",m68020up|cpu32 },
  2014. {"divsll", 4, two(0046100,0004000),two(0177700,0107770),";lDD", m68020up|cpu32 },
  2015. {"divuw", 2, one(0100300), one(0170700), ";wDd", m68000up | mcfhwdiv },
  2016. {"divul", 4, two(0046100,0002000),two(0177700,0107770),";lD3D1", m68020up|cpu32 },
  2017. {"divul", 4, two(0046100,0000000),two(0177700,0107770),";lDD", m68020up|cpu32 },
  2018. {"divul", 4, two(0046100,0000000),two(0177700,0107770),"qsDD", mcfhwdiv },
  2019. {"divull", 4, two(0046100,0000000),two(0177700,0107770),";lD3D1",m68020up|cpu32 },
  2020. {"divull", 4, two(0046100,0000000),two(0177700,0107770),";lDD", m68020up|cpu32 },
  2021. {"eorib", 4, one(0005000), one(0177700), "#b$s", m68000up },
  2022. {"eorib", 4, one(0005074), one(0177777), "#bCs", m68000up },
  2023. {"eoriw", 4, one(0005100), one(0177700), "#w$s", m68000up },
  2024. {"eoriw", 4, one(0005174), one(0177777), "#wSs", m68000up },
  2025. {"eoril", 6, one(0005200), one(0177700), "#l$s", m68000up },
  2026. {"eoril", 6, one(0005200), one(0177700), "#lDs", mcfisa_a },
  2027. {"eori", 4, one(0005074), one(0177777), "#bCs", m68000up },
  2028. {"eori", 4, one(0005174), one(0177777), "#wSs", m68000up },
  2029. {"eori", 4, one(0005100), one(0177700), "#w$s", m68000up },
  2030. /* The eor opcode can generate the eori instruction. */
  2031. {"eorb", 4, one(0005000), one(0177700), "#b$s", m68000up },
  2032. {"eorb", 4, one(0005074), one(0177777), "#bCs", m68000up },
  2033. {"eorb", 2, one(0130400), one(0170700), "Dd$s", m68000up },
  2034. {"eorw", 4, one(0005100), one(0177700), "#w$s", m68000up },
  2035. {"eorw", 4, one(0005174), one(0177777), "#wSs", m68000up },
  2036. {"eorw", 2, one(0130500), one(0170700), "Dd$s", m68000up },
  2037. {"eorl", 6, one(0005200), one(0177700), "#l$s", m68000up },
  2038. {"eorl", 6, one(0005200), one(0177700), "#lDs", mcfisa_a },
  2039. {"eorl", 2, one(0130600), one(0170700), "Dd$s", m68000up | mcfisa_a },
  2040. {"eor", 4, one(0005074), one(0177777), "#bCs", m68000up },
  2041. {"eor", 4, one(0005174), one(0177777), "#wSs", m68000up },
  2042. {"eor", 4, one(0005100), one(0177700), "#w$s", m68000up },
  2043. {"eor", 2, one(0130500), one(0170700), "Dd$s", m68000up },
  2044. {"exg", 2, one(0140500), one(0170770), "DdDs", m68000up },
  2045. {"exg", 2, one(0140510), one(0170770), "AdAs", m68000up },
  2046. {"exg", 2, one(0140610), one(0170770), "DdAs", m68000up },
  2047. {"exg", 2, one(0140610), one(0170770), "AsDd", m68000up },
  2048. {"extw", 2, one(0044200), one(0177770), "Ds", m68000up|mcfisa_a },
  2049. {"extl", 2, one(0044300), one(0177770), "Ds", m68000up|mcfisa_a },
  2050. {"extbl", 2, one(0044700), one(0177770), "Ds", m68020up|cpu32|mcfisa_a },
  2051. {"ff1", 2, one(0002300), one(0177770), "Ds", mcfisa_aa},
  2052. /* float stuff starts here */
  2053. {"fabsb", 4, two(0xF000, 0x5818), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2054. {"fabsb", 4, two(0xF000, 0x5818), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2055. {"fabsd", 4, two(0xF000, 0x0018), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2056. {"fabsd", 4, two(0xF000, 0x0018), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2057. {"fabsd", 4, two(0xF000, 0x5418), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2058. {"fabsd", 4, two(0xF000, 0x5418), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2059. {"fabsl", 4, two(0xF000, 0x4018), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2060. {"fabsl", 4, two(0xF000, 0x4018), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2061. {"fabsp", 4, two(0xF000, 0x4C18), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2062. {"fabss", 4, two(0xF000, 0x4418), two(0xF1C0, 0xFC7F), "Ii;fF7", cfloat },
  2063. {"fabss", 4, two(0xF000, 0x4418), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2064. {"fabsw", 4, two(0xF000, 0x5018), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2065. {"fabsw", 4, two(0xF000, 0x5018), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2066. {"fabsx", 4, two(0xF000, 0x0018), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2067. {"fabsx", 4, two(0xF000, 0x4818), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2068. {"fabsx", 4, two(0xF000, 0x0018), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2069. {"fsabsb", 4, two(0xF000, 0x5858), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2070. {"fsabsb", 4, two(0xF000, 0x5858), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2071. {"fsabsd", 4, two(0xF000, 0x0058), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2072. {"fsabsd", 4, two(0xF000, 0x0058), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2073. {"fsabsd", 4, two(0xF000, 0x5458), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2074. {"fsabsd", 4, two(0xF000, 0x5458), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2075. {"fsabsl", 4, two(0xF000, 0x4058), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2076. {"fsabsl", 4, two(0xF000, 0x4058), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2077. {"fsabsp", 4, two(0xF000, 0x4C58), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2078. {"fsabss", 4, two(0xF000, 0x4258), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2079. {"fsabss", 4, two(0xF000, 0x4458), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2080. {"fsabsw", 4, two(0xF000, 0x5058), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2081. {"fsabsw", 4, two(0xF000, 0x5058), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2082. {"fsabsx", 4, two(0xF000, 0x0058), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2083. {"fsabsx", 4, two(0xF000, 0x4858), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2084. {"fsabsx", 4, two(0xF000, 0x0058), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2085. {"fdabsb", 4, two(0xF000, 0x585C), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2086. {"fdabsb", 4, two(0xF000, 0x585c), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up},
  2087. {"fdabsd", 4, two(0xF000, 0x005C), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2088. {"fdabsd", 4, two(0xF000, 0x005C), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2089. {"fdabsd", 4, two(0xF000, 0x545C), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2090. {"fdabsd", 4, two(0xF000, 0x545c), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up},
  2091. {"fdabsl", 4, two(0xF000, 0x405C), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2092. {"fdabsl", 4, two(0xF000, 0x405c), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up},
  2093. {"fdabsp", 4, two(0xF000, 0x4C5c), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up},
  2094. {"fdabss", 4, two(0xF000, 0x425C), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2095. {"fdabss", 4, two(0xF000, 0x445c), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up},
  2096. {"fdabsw", 4, two(0xF000, 0x505C), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2097. {"fdabsw", 4, two(0xF000, 0x505c), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up},
  2098. {"fdabsx", 4, two(0xF000, 0x005c), two(0xF1C0, 0xE07F), "IiF8F7", m68040up},
  2099. {"fdabsx", 4, two(0xF000, 0x485c), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up},
  2100. {"fdabsx", 4, two(0xF000, 0x005c), two(0xF1C0, 0xE07F), "IiFt", m68040up},
  2101. {"facosb", 4, two(0xF000, 0x581C), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2102. {"facosd", 4, two(0xF000, 0x541C), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2103. {"facosl", 4, two(0xF000, 0x401C), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2104. {"facosp", 4, two(0xF000, 0x4C1C), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2105. {"facoss", 4, two(0xF000, 0x441C), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2106. {"facosw", 4, two(0xF000, 0x501C), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2107. {"facosx", 4, two(0xF000, 0x001C), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2108. {"facosx", 4, two(0xF000, 0x481C), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2109. {"facosx", 4, two(0xF000, 0x001C), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2110. {"faddb", 4, two(0xF000, 0x5822), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2111. {"faddb", 4, two(0xF000, 0x5822), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2112. {"faddd", 4, two(0xF000, 0x0022), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2113. {"faddd", 4, two(0xF000, 0x5422), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2114. {"faddd", 4, two(0xF000, 0x5422), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2115. {"faddd", 4, two(0xF000, 0x5422), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2116. {"faddl", 4, two(0xF000, 0x4022), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2117. {"faddl", 4, two(0xF000, 0x4022), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2118. {"faddp", 4, two(0xF000, 0x4C22), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2119. {"fadds", 4, two(0xF000, 0x4422), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2120. {"fadds", 4, two(0xF000, 0x4422), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2121. {"faddw", 4, two(0xF000, 0x5022), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2122. {"faddw", 4, two(0xF000, 0x5022), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2123. {"faddx", 4, two(0xF000, 0x0022), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2124. {"faddx", 4, two(0xF000, 0x4822), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2125. {"fsaddb", 4, two(0xF000, 0x5862), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2126. {"fsaddb", 4, two(0xF000, 0x5862), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2127. {"fsaddd", 4, two(0xF000, 0x0066), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2128. {"fsaddd", 4, two(0xF000, 0x5462), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2129. {"fsaddd", 4, two(0xF000, 0x5462), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2130. {"fsaddl", 4, two(0xF000, 0x4062), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2131. {"fsaddl", 4, two(0xF000, 0x4062), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2132. {"fsaddp", 4, two(0xF000, 0x4C62), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2133. {"fsadds", 4, two(0xF000, 0x4462), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2134. {"fsadds", 4, two(0xF000, 0x4862), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2135. {"fsaddw", 4, two(0xF000, 0x5062), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2136. {"fsaddw", 4, two(0xF000, 0x5062), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2137. {"fsaddx", 4, two(0xF000, 0x0062), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2138. {"fsaddx", 4, two(0xF000, 0x4862), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2139. {"fdaddb", 4, two(0xF000, 0x5826), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2140. {"fdaddb", 4, two(0xF000, 0x5866), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2141. {"fdaddd", 4, two(0xF000, 0x0066), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2142. {"fdaddd", 4, two(0xF000, 0x5426), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2143. {"fdaddd", 4, two(0xF000, 0x5466), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2144. {"fdaddl", 4, two(0xF000, 0x4026), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2145. {"fdaddl", 4, two(0xF000, 0x4066), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2146. {"fdaddp", 4, two(0xF000, 0x4C66), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2147. {"fdadds", 4, two(0xF000, 0x4466), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2148. {"fdadds", 4, two(0xF000, 0x4826), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2149. {"fdaddw", 4, two(0xF000, 0x5026), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2150. {"fdaddw", 4, two(0xF000, 0x5066), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2151. {"fdaddx", 4, two(0xF000, 0x0066), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2152. {"fdaddx", 4, two(0xF000, 0x4866), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2153. {"fasinb", 4, two(0xF000, 0x580C), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2154. {"fasind", 4, two(0xF000, 0x540C), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2155. {"fasinl", 4, two(0xF000, 0x400C), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2156. {"fasinp", 4, two(0xF000, 0x4C0C), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2157. {"fasins", 4, two(0xF000, 0x440C), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2158. {"fasinw", 4, two(0xF000, 0x500C), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2159. {"fasinx", 4, two(0xF000, 0x000C), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2160. {"fasinx", 4, two(0xF000, 0x480C), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2161. {"fasinx", 4, two(0xF000, 0x000C), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2162. {"fatanb", 4, two(0xF000, 0x580A), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2163. {"fatand", 4, two(0xF000, 0x540A), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2164. {"fatanl", 4, two(0xF000, 0x400A), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2165. {"fatanp", 4, two(0xF000, 0x4C0A), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2166. {"fatans", 4, two(0xF000, 0x440A), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2167. {"fatanw", 4, two(0xF000, 0x500A), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2168. {"fatanx", 4, two(0xF000, 0x000A), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2169. {"fatanx", 4, two(0xF000, 0x480A), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2170. {"fatanx", 4, two(0xF000, 0x000A), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2171. {"fatanhb", 4, two(0xF000, 0x580D), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2172. {"fatanhd", 4, two(0xF000, 0x540D), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2173. {"fatanhl", 4, two(0xF000, 0x400D), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2174. {"fatanhp", 4, two(0xF000, 0x4C0D), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2175. {"fatanhs", 4, two(0xF000, 0x440D), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2176. {"fatanhw", 4, two(0xF000, 0x500D), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2177. {"fatanhx", 4, two(0xF000, 0x000D), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2178. {"fatanhx", 4, two(0xF000, 0x480D), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2179. {"fatanhx", 4, two(0xF000, 0x000D), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2180. {"fbeq", 2, one(0xF081), one(0xF1FF), "IdBW", mfloat | cfloat },
  2181. {"fbf", 2, one(0xF080), one(0xF1FF), "IdBW", mfloat | cfloat },
  2182. {"fbge", 2, one(0xF093), one(0xF1FF), "IdBW", mfloat | cfloat },
  2183. {"fbgl", 2, one(0xF096), one(0xF1FF), "IdBW", mfloat | cfloat },
  2184. {"fbgle", 2, one(0xF097), one(0xF1FF), "IdBW", mfloat | cfloat },
  2185. {"fbgt", 2, one(0xF092), one(0xF1FF), "IdBW", mfloat | cfloat },
  2186. {"fble", 2, one(0xF095), one(0xF1FF), "IdBW", mfloat | cfloat },
  2187. {"fblt", 2, one(0xF094), one(0xF1FF), "IdBW", mfloat | cfloat },
  2188. {"fbne", 2, one(0xF08E), one(0xF1FF), "IdBW", mfloat | cfloat },
  2189. {"fbnge", 2, one(0xF09C), one(0xF1FF), "IdBW", mfloat | cfloat },
  2190. {"fbngl", 2, one(0xF099), one(0xF1FF), "IdBW", mfloat | cfloat },
  2191. {"fbngle", 2, one(0xF098), one(0xF1FF), "IdBW", mfloat | cfloat },
  2192. {"fbngt", 2, one(0xF09D), one(0xF1FF), "IdBW", mfloat | cfloat },
  2193. {"fbnle", 2, one(0xF09A), one(0xF1FF), "IdBW", mfloat | cfloat },
  2194. {"fbnlt", 2, one(0xF09B), one(0xF1FF), "IdBW", mfloat | cfloat },
  2195. {"fboge", 2, one(0xF083), one(0xF1FF), "IdBW", mfloat | cfloat },
  2196. {"fbogl", 2, one(0xF086), one(0xF1FF), "IdBW", mfloat | cfloat },
  2197. {"fbogt", 2, one(0xF082), one(0xF1FF), "IdBW", mfloat | cfloat },
  2198. {"fbole", 2, one(0xF085), one(0xF1FF), "IdBW", mfloat | cfloat },
  2199. {"fbolt", 2, one(0xF084), one(0xF1FF), "IdBW", mfloat | cfloat },
  2200. {"fbor", 2, one(0xF087), one(0xF1FF), "IdBW", mfloat | cfloat },
  2201. {"fbseq", 2, one(0xF091), one(0xF1FF), "IdBW", mfloat | cfloat },
  2202. {"fbsf", 2, one(0xF090), one(0xF1FF), "IdBW", mfloat | cfloat },
  2203. {"fbsne", 2, one(0xF09E), one(0xF1FF), "IdBW", mfloat | cfloat },
  2204. {"fbst", 2, one(0xF09F), one(0xF1FF), "IdBW", mfloat | cfloat },
  2205. {"fbt", 2, one(0xF08F), one(0xF1FF), "IdBW", mfloat | cfloat },
  2206. {"fbueq", 2, one(0xF089), one(0xF1FF), "IdBW", mfloat | cfloat },
  2207. {"fbuge", 2, one(0xF08B), one(0xF1FF), "IdBW", mfloat | cfloat },
  2208. {"fbugt", 2, one(0xF08A), one(0xF1FF), "IdBW", mfloat | cfloat },
  2209. {"fbule", 2, one(0xF08D), one(0xF1FF), "IdBW", mfloat | cfloat },
  2210. {"fbult", 2, one(0xF08C), one(0xF1FF), "IdBW", mfloat | cfloat },
  2211. {"fbun", 2, one(0xF088), one(0xF1FF), "IdBW", mfloat | cfloat },
  2212. {"fbeql", 2, one(0xF0C1), one(0xF1FF), "IdBC", mfloat | cfloat },
  2213. {"fbfl", 2, one(0xF0C0), one(0xF1FF), "IdBC", mfloat | cfloat },
  2214. {"fbgel", 2, one(0xF0D3), one(0xF1FF), "IdBC", mfloat | cfloat },
  2215. {"fbgll", 2, one(0xF0D6), one(0xF1FF), "IdBC", mfloat | cfloat },
  2216. {"fbglel", 2, one(0xF0D7), one(0xF1FF), "IdBC", mfloat | cfloat },
  2217. {"fbgtl", 2, one(0xF0D2), one(0xF1FF), "IdBC", mfloat | cfloat },
  2218. {"fblel", 2, one(0xF0D5), one(0xF1FF), "IdBC", mfloat | cfloat },
  2219. {"fbltl", 2, one(0xF0D4), one(0xF1FF), "IdBC", mfloat | cfloat },
  2220. {"fbnel", 2, one(0xF0CE), one(0xF1FF), "IdBC", mfloat | cfloat },
  2221. {"fbngel", 2, one(0xF0DC), one(0xF1FF), "IdBC", mfloat | cfloat },
  2222. {"fbngll", 2, one(0xF0D9), one(0xF1FF), "IdBC", mfloat | cfloat },
  2223. {"fbnglel", 2, one(0xF0D8), one(0xF1FF), "IdBC", mfloat | cfloat },
  2224. {"fbngtl", 2, one(0xF0DD), one(0xF1FF), "IdBC", mfloat | cfloat },
  2225. {"fbnlel", 2, one(0xF0DA), one(0xF1FF), "IdBC", mfloat | cfloat },
  2226. {"fbnltl", 2, one(0xF0DB), one(0xF1FF), "IdBC", mfloat | cfloat },
  2227. {"fbogel", 2, one(0xF0C3), one(0xF1FF), "IdBC", mfloat | cfloat },
  2228. {"fbogll", 2, one(0xF0C6), one(0xF1FF), "IdBC", mfloat | cfloat },
  2229. {"fbogtl", 2, one(0xF0C2), one(0xF1FF), "IdBC", mfloat | cfloat },
  2230. {"fbolel", 2, one(0xF0C5), one(0xF1FF), "IdBC", mfloat | cfloat },
  2231. {"fboltl", 2, one(0xF0C4), one(0xF1FF), "IdBC", mfloat | cfloat },
  2232. {"fborl", 2, one(0xF0C7), one(0xF1FF), "IdBC", mfloat | cfloat },
  2233. {"fbseql", 2, one(0xF0D1), one(0xF1FF), "IdBC", mfloat | cfloat },
  2234. {"fbsfl", 2, one(0xF0D0), one(0xF1FF), "IdBC", mfloat | cfloat },
  2235. {"fbsnel", 2, one(0xF0DE), one(0xF1FF), "IdBC", mfloat | cfloat },
  2236. {"fbstl", 2, one(0xF0DF), one(0xF1FF), "IdBC", mfloat | cfloat },
  2237. {"fbtl", 2, one(0xF0CF), one(0xF1FF), "IdBC", mfloat | cfloat },
  2238. {"fbueql", 2, one(0xF0C9), one(0xF1FF), "IdBC", mfloat | cfloat },
  2239. {"fbugel", 2, one(0xF0CB), one(0xF1FF), "IdBC", mfloat | cfloat },
  2240. {"fbugtl", 2, one(0xF0CA), one(0xF1FF), "IdBC", mfloat | cfloat },
  2241. {"fbulel", 2, one(0xF0CD), one(0xF1FF), "IdBC", mfloat | cfloat },
  2242. {"fbultl", 2, one(0xF0CC), one(0xF1FF), "IdBC", mfloat | cfloat },
  2243. {"fbunl", 2, one(0xF0C8), one(0xF1FF), "IdBC", mfloat | cfloat },
  2244. {"fjeq", 2, one(0xF081), one(0xF1BF), "IdBc", mfloat | cfloat },
  2245. {"fjf", 2, one(0xF080), one(0xF1BF), "IdBc", mfloat | cfloat },
  2246. {"fjge", 2, one(0xF093), one(0xF1BF), "IdBc", mfloat | cfloat },
  2247. {"fjgl", 2, one(0xF096), one(0xF1BF), "IdBc", mfloat | cfloat },
  2248. {"fjgle", 2, one(0xF097), one(0xF1BF), "IdBc", mfloat | cfloat },
  2249. {"fjgt", 2, one(0xF092), one(0xF1BF), "IdBc", mfloat | cfloat },
  2250. {"fjle", 2, one(0xF095), one(0xF1BF), "IdBc", mfloat | cfloat },
  2251. {"fjlt", 2, one(0xF094), one(0xF1BF), "IdBc", mfloat | cfloat },
  2252. {"fjne", 2, one(0xF08E), one(0xF1BF), "IdBc", mfloat | cfloat },
  2253. {"fjnge", 2, one(0xF09C), one(0xF1BF), "IdBc", mfloat | cfloat },
  2254. {"fjngl", 2, one(0xF099), one(0xF1BF), "IdBc", mfloat | cfloat },
  2255. {"fjngle", 2, one(0xF098), one(0xF1BF), "IdBc", mfloat | cfloat },
  2256. {"fjngt", 2, one(0xF09D), one(0xF1BF), "IdBc", mfloat | cfloat },
  2257. {"fjnle", 2, one(0xF09A), one(0xF1BF), "IdBc", mfloat | cfloat },
  2258. {"fjnlt", 2, one(0xF09B), one(0xF1BF), "IdBc", mfloat | cfloat },
  2259. {"fjoge", 2, one(0xF083), one(0xF1BF), "IdBc", mfloat | cfloat },
  2260. {"fjogl", 2, one(0xF086), one(0xF1BF), "IdBc", mfloat | cfloat },
  2261. {"fjogt", 2, one(0xF082), one(0xF1BF), "IdBc", mfloat | cfloat },
  2262. {"fjole", 2, one(0xF085), one(0xF1BF), "IdBc", mfloat | cfloat },
  2263. {"fjolt", 2, one(0xF084), one(0xF1BF), "IdBc", mfloat | cfloat },
  2264. {"fjor", 2, one(0xF087), one(0xF1BF), "IdBc", mfloat | cfloat },
  2265. {"fjseq", 2, one(0xF091), one(0xF1BF), "IdBc", mfloat | cfloat },
  2266. {"fjsf", 2, one(0xF090), one(0xF1BF), "IdBc", mfloat | cfloat },
  2267. {"fjsne", 2, one(0xF09E), one(0xF1BF), "IdBc", mfloat | cfloat },
  2268. {"fjst", 2, one(0xF09F), one(0xF1BF), "IdBc", mfloat | cfloat },
  2269. {"fjt", 2, one(0xF08F), one(0xF1BF), "IdBc", mfloat | cfloat },
  2270. {"fjueq", 2, one(0xF089), one(0xF1BF), "IdBc", mfloat | cfloat },
  2271. {"fjuge", 2, one(0xF08B), one(0xF1BF), "IdBc", mfloat | cfloat },
  2272. {"fjugt", 2, one(0xF08A), one(0xF1BF), "IdBc", mfloat | cfloat },
  2273. {"fjule", 2, one(0xF08D), one(0xF1BF), "IdBc", mfloat | cfloat },
  2274. {"fjult", 2, one(0xF08C), one(0xF1BF), "IdBc", mfloat | cfloat },
  2275. {"fjun", 2, one(0xF088), one(0xF1BF), "IdBc", mfloat | cfloat },
  2276. {"fcmpb", 4, two(0xF000, 0x5838), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2277. {"fcmpb", 4, two(0xF000, 0x5838), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2278. {"fcmpd", 4, two(0xF000, 0x5438), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2279. {"fcmpd", 4, two(0xF000, 0x5438), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2280. {"fcmpd", 4, two(0xF000, 0x0038), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2281. {"fcmpl", 4, two(0xF000, 0x4038), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2282. {"fcmpl", 4, two(0xF000, 0x4038), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2283. {"fcmpp", 4, two(0xF000, 0x4C38), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2284. {"fcmps", 4, two(0xF000, 0x4438), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2285. {"fcmps", 4, two(0xF000, 0x4438), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2286. {"fcmpw", 4, two(0xF000, 0x5038), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2287. {"fcmpw", 4, two(0xF000, 0x5038), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2288. {"fcmpx", 4, two(0xF000, 0x0038), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2289. {"fcmpx", 4, two(0xF000, 0x4838), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2290. {"fcosb", 4, two(0xF000, 0x581D), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2291. {"fcosd", 4, two(0xF000, 0x541D), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2292. {"fcosl", 4, two(0xF000, 0x401D), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2293. {"fcosp", 4, two(0xF000, 0x4C1D), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2294. {"fcoss", 4, two(0xF000, 0x441D), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2295. {"fcosw", 4, two(0xF000, 0x501D), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2296. {"fcosx", 4, two(0xF000, 0x001D), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2297. {"fcosx", 4, two(0xF000, 0x481D), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2298. {"fcosx", 4, two(0xF000, 0x001D), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2299. {"fcoshb", 4, two(0xF000, 0x5819), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2300. {"fcoshd", 4, two(0xF000, 0x5419), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2301. {"fcoshl", 4, two(0xF000, 0x4019), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2302. {"fcoshp", 4, two(0xF000, 0x4C19), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2303. {"fcoshs", 4, two(0xF000, 0x4419), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2304. {"fcoshw", 4, two(0xF000, 0x5019), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2305. {"fcoshx", 4, two(0xF000, 0x0019), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2306. {"fcoshx", 4, two(0xF000, 0x4819), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2307. {"fcoshx", 4, two(0xF000, 0x0019), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2308. {"fdbeq", 4, two(0xF048, 0x0001), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2309. {"fdbf", 4, two(0xF048, 0x0000), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2310. {"fdbge", 4, two(0xF048, 0x0013), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2311. {"fdbgl", 4, two(0xF048, 0x0016), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2312. {"fdbgle", 4, two(0xF048, 0x0017), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2313. {"fdbgt", 4, two(0xF048, 0x0012), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2314. {"fdble", 4, two(0xF048, 0x0015), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2315. {"fdblt", 4, two(0xF048, 0x0014), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2316. {"fdbne", 4, two(0xF048, 0x000E), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2317. {"fdbnge", 4, two(0xF048, 0x001C), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2318. {"fdbngl", 4, two(0xF048, 0x0019), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2319. {"fdbngle", 4, two(0xF048, 0x0018), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2320. {"fdbngt", 4, two(0xF048, 0x001D), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2321. {"fdbnle", 4, two(0xF048, 0x001A), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2322. {"fdbnlt", 4, two(0xF048, 0x001B), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2323. {"fdboge", 4, two(0xF048, 0x0003), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2324. {"fdbogl", 4, two(0xF048, 0x0006), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2325. {"fdbogt", 4, two(0xF048, 0x0002), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2326. {"fdbole", 4, two(0xF048, 0x0005), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2327. {"fdbolt", 4, two(0xF048, 0x0004), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2328. {"fdbor", 4, two(0xF048, 0x0007), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2329. {"fdbseq", 4, two(0xF048, 0x0011), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2330. {"fdbsf", 4, two(0xF048, 0x0010), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2331. {"fdbsne", 4, two(0xF048, 0x001E), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2332. {"fdbst", 4, two(0xF048, 0x001F), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2333. {"fdbt", 4, two(0xF048, 0x000F), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2334. {"fdbueq", 4, two(0xF048, 0x0009), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2335. {"fdbuge", 4, two(0xF048, 0x000B), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2336. {"fdbugt", 4, two(0xF048, 0x000A), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2337. {"fdbule", 4, two(0xF048, 0x000D), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2338. {"fdbult", 4, two(0xF048, 0x000C), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2339. {"fdbun", 4, two(0xF048, 0x0008), two(0xF1F8, 0xFFFF), "IiDsBw", mfloat },
  2340. {"fdivb", 4, two(0xF000, 0x5820), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2341. {"fdivb", 4, two(0xF000, 0x5820), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2342. {"fdivd", 4, two(0xF000, 0x0020), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2343. {"fdivd", 4, two(0xF000, 0x5420), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2344. {"fdivd", 4, two(0xF000, 0x5420), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2345. {"fdivl", 4, two(0xF000, 0x4020), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2346. {"fdivl", 4, two(0xF000, 0x4020), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2347. {"fdivp", 4, two(0xF000, 0x4C20), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2348. {"fdivs", 4, two(0xF000, 0x4420), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2349. {"fdivs", 4, two(0xF000, 0x4420), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2350. {"fdivw", 4, two(0xF000, 0x5020), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2351. {"fdivw", 4, two(0xF000, 0x5020), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2352. {"fdivx", 4, two(0xF000, 0x0020), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2353. {"fdivx", 4, two(0xF000, 0x4820), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2354. {"fsdivb", 4, two(0xF000, 0x5860), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2355. {"fsdivb", 4, two(0xF000, 0x5860), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2356. {"fsdivd", 4, two(0xF000, 0x0060), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2357. {"fsdivd", 4, two(0xF000, 0x5460), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2358. {"fsdivd", 4, two(0xF000, 0x5460), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2359. {"fsdivl", 4, two(0xF000, 0x4060), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2360. {"fsdivl", 4, two(0xF000, 0x4060), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2361. {"fsdivp", 4, two(0xF000, 0x4C60), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2362. {"fsdivs", 4, two(0xF000, 0x4460), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2363. {"fsdivs", 4, two(0xF000, 0x4460), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2364. {"fsdivw", 4, two(0xF000, 0x5060), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2365. {"fsdivw", 4, two(0xF000, 0x5060), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2366. {"fsdivx", 4, two(0xF000, 0x0060), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2367. {"fsdivx", 4, two(0xF000, 0x4860), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2368. {"fddivb", 4, two(0xF000, 0x5864), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2369. {"fddivb", 4, two(0xF000, 0x5864), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2370. {"fddivd", 4, two(0xF000, 0x0064), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2371. {"fddivd", 4, two(0xF000, 0x5464), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2372. {"fddivd", 4, two(0xF000, 0x5464), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2373. {"fddivl", 4, two(0xF000, 0x4064), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2374. {"fddivl", 4, two(0xF000, 0x4064), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2375. {"fddivp", 4, two(0xF000, 0x4C64), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2376. {"fddivs", 4, two(0xF000, 0x4464), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2377. {"fddivs", 4, two(0xF000, 0x4464), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2378. {"fddivw", 4, two(0xF000, 0x5064), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2379. {"fddivw", 4, two(0xF000, 0x5064), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2380. {"fddivx", 4, two(0xF000, 0x0064), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2381. {"fddivx", 4, two(0xF000, 0x4864), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2382. {"fetoxb", 4, two(0xF000, 0x5810), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2383. {"fetoxd", 4, two(0xF000, 0x5410), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2384. {"fetoxl", 4, two(0xF000, 0x4010), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2385. {"fetoxp", 4, two(0xF000, 0x4C10), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2386. {"fetoxs", 4, two(0xF000, 0x4410), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2387. {"fetoxw", 4, two(0xF000, 0x5010), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2388. {"fetoxx", 4, two(0xF000, 0x0010), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2389. {"fetoxx", 4, two(0xF000, 0x4810), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2390. {"fetoxx", 4, two(0xF000, 0x0010), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2391. {"fetoxm1b", 4, two(0xF000, 0x5808), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2392. {"fetoxm1d", 4, two(0xF000, 0x5408), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2393. {"fetoxm1l", 4, two(0xF000, 0x4008), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2394. {"fetoxm1p", 4, two(0xF000, 0x4C08), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2395. {"fetoxm1s", 4, two(0xF000, 0x4408), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2396. {"fetoxm1w", 4, two(0xF000, 0x5008), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2397. {"fetoxm1x", 4, two(0xF000, 0x0008), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2398. {"fetoxm1x", 4, two(0xF000, 0x4808), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2399. {"fetoxm1x", 4, two(0xF000, 0x0008), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2400. {"fgetexpb", 4, two(0xF000, 0x581E), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2401. {"fgetexpd", 4, two(0xF000, 0x541E), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2402. {"fgetexpl", 4, two(0xF000, 0x401E), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2403. {"fgetexpp", 4, two(0xF000, 0x4C1E), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2404. {"fgetexps", 4, two(0xF000, 0x441E), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2405. {"fgetexpw", 4, two(0xF000, 0x501E), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2406. {"fgetexpx", 4, two(0xF000, 0x001E), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2407. {"fgetexpx", 4, two(0xF000, 0x481E), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2408. {"fgetexpx", 4, two(0xF000, 0x001E), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2409. {"fgetmanb", 4, two(0xF000, 0x581F), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2410. {"fgetmand", 4, two(0xF000, 0x541F), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2411. {"fgetmanl", 4, two(0xF000, 0x401F), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2412. {"fgetmanp", 4, two(0xF000, 0x4C1F), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2413. {"fgetmans", 4, two(0xF000, 0x441F), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2414. {"fgetmanw", 4, two(0xF000, 0x501F), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2415. {"fgetmanx", 4, two(0xF000, 0x001F), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2416. {"fgetmanx", 4, two(0xF000, 0x481F), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2417. {"fgetmanx", 4, two(0xF000, 0x001F), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2418. {"fintb", 4, two(0xF000, 0x5801), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2419. {"fintb", 4, two(0xF000, 0x5801), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2420. {"fintd", 4, two(0xF000, 0x0001), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2421. {"fintd", 4, two(0xF000, 0x0001), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2422. {"fintd", 4, two(0xF000, 0x5401), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2423. {"fintd", 4, two(0xF000, 0x5401), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2424. {"fintl", 4, two(0xF000, 0x4001), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2425. {"fintl", 4, two(0xF000, 0x4001), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2426. {"fintp", 4, two(0xF000, 0x4C01), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2427. {"fints", 4, two(0xF000, 0x4401), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2428. {"fints", 4, two(0xF000, 0x4401), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2429. {"fintw", 4, two(0xF000, 0x5001), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2430. {"fintw", 4, two(0xF000, 0x5001), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2431. {"fintx", 4, two(0xF000, 0x0001), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2432. {"fintx", 4, two(0xF000, 0x4801), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2433. {"fintx", 4, two(0xF000, 0x0001), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2434. {"fintrzb", 4, two(0xF000, 0x5803), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2435. {"fintrzb", 4, two(0xF000, 0x5803), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2436. {"fintrzd", 4, two(0xF000, 0x0003), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2437. {"fintrzd", 4, two(0xF000, 0x0003), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2438. {"fintrzd", 4, two(0xF000, 0x5403), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2439. {"fintrzd", 4, two(0xF000, 0x5403), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2440. {"fintrzl", 4, two(0xF000, 0x4003), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2441. {"fintrzl", 4, two(0xF000, 0x4003), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2442. {"fintrzp", 4, two(0xF000, 0x4C03), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2443. {"fintrzs", 4, two(0xF000, 0x4403), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2444. {"fintrzs", 4, two(0xF000, 0x4403), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2445. {"fintrzw", 4, two(0xF000, 0x5003), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2446. {"fintrzw", 4, two(0xF000, 0x5003), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2447. {"fintrzx", 4, two(0xF000, 0x0003), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2448. {"fintrzx", 4, two(0xF000, 0x4803), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2449. {"fintrzx", 4, two(0xF000, 0x0003), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2450. {"flog10b", 4, two(0xF000, 0x5815), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2451. {"flog10d", 4, two(0xF000, 0x5415), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2452. {"flog10l", 4, two(0xF000, 0x4015), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2453. {"flog10p", 4, two(0xF000, 0x4C15), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2454. {"flog10s", 4, two(0xF000, 0x4415), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2455. {"flog10w", 4, two(0xF000, 0x5015), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2456. {"flog10x", 4, two(0xF000, 0x0015), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2457. {"flog10x", 4, two(0xF000, 0x4815), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2458. {"flog10x", 4, two(0xF000, 0x0015), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2459. {"flog2b", 4, two(0xF000, 0x5816), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2460. {"flog2d", 4, two(0xF000, 0x5416), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2461. {"flog2l", 4, two(0xF000, 0x4016), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2462. {"flog2p", 4, two(0xF000, 0x4C16), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2463. {"flog2s", 4, two(0xF000, 0x4416), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2464. {"flog2w", 4, two(0xF000, 0x5016), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2465. {"flog2x", 4, two(0xF000, 0x0016), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2466. {"flog2x", 4, two(0xF000, 0x4816), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2467. {"flog2x", 4, two(0xF000, 0x0016), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2468. {"flognb", 4, two(0xF000, 0x5814), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2469. {"flognd", 4, two(0xF000, 0x5414), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2470. {"flognl", 4, two(0xF000, 0x4014), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2471. {"flognp", 4, two(0xF000, 0x4C14), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2472. {"flogns", 4, two(0xF000, 0x4414), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2473. {"flognw", 4, two(0xF000, 0x5014), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2474. {"flognx", 4, two(0xF000, 0x0014), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2475. {"flognx", 4, two(0xF000, 0x4814), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2476. {"flognx", 4, two(0xF000, 0x0014), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2477. {"flognp1b", 4, two(0xF000, 0x5806), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2478. {"flognp1d", 4, two(0xF000, 0x5406), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2479. {"flognp1l", 4, two(0xF000, 0x4006), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2480. {"flognp1p", 4, two(0xF000, 0x4C06), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2481. {"flognp1s", 4, two(0xF000, 0x4406), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2482. {"flognp1w", 4, two(0xF000, 0x5006), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2483. {"flognp1x", 4, two(0xF000, 0x0006), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2484. {"flognp1x", 4, two(0xF000, 0x4806), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2485. {"flognp1x", 4, two(0xF000, 0x0006), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2486. {"fmodb", 4, two(0xF000, 0x5821), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2487. {"fmodd", 4, two(0xF000, 0x5421), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2488. {"fmodl", 4, two(0xF000, 0x4021), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2489. {"fmodp", 4, two(0xF000, 0x4C21), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2490. {"fmods", 4, two(0xF000, 0x4421), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2491. {"fmodw", 4, two(0xF000, 0x5021), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2492. {"fmodx", 4, two(0xF000, 0x0021), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2493. {"fmodx", 4, two(0xF000, 0x4821), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2494. {"fmoveb", 4, two(0xF000, 0x5800), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2495. {"fmoveb", 4, two(0xF000, 0x7800), two(0xF1C0, 0xFC7F), "IiF7bs", cfloat },
  2496. {"fmoveb", 4, two(0xF000, 0x5800), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2497. {"fmoveb", 4, two(0xF000, 0x7800), two(0xF1C0, 0xFC7F), "IiF7$b", mfloat },
  2498. {"fmoved", 4, two(0xF000, 0x5400), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2499. {"fmoved", 4, two(0xF000, 0x7400), two(0xF1C0, 0xFC7F), "IiF7~F", mfloat },
  2500. {"fmoved", 4, two(0xF000, 0x0000), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2501. {"fmoved", 4, two(0xF000, 0x5400), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2502. {"fmoved", 4, two(0xF000, 0x7400), two(0xF1C0, 0xFC7F), "IiF7ws", cfloat },
  2503. {"fmovel", 4, two(0xF000, 0x4000), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2504. {"fmovel", 4, two(0xF000, 0x6000), two(0xF1C0, 0xFC7F), "IiF7$l", mfloat },
  2505. /* FIXME: the next two variants should not permit moving an address
  2506. register to anything but the floating point instruction register. */
  2507. {"fmovel", 4, two(0xF000, 0xA000), two(0xF1C0, 0xE3FF), "Iis8%s", mfloat },
  2508. {"fmovel", 4, two(0xF000, 0x8000), two(0xF1C0, 0xE3FF), "Ii*ls8", mfloat },
  2509. {"fmovel", 4, two(0xF000, 0x4000), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2510. {"fmovel", 4, two(0xF000, 0x6000), two(0xF1C0, 0xFC7F), "IiF7bs", cfloat },
  2511. /* Move the FP control registers. */
  2512. {"fmovel", 4, two(0xF000, 0xA000), two(0xF1C0, 0xE3FF), "Iis8ps", cfloat },
  2513. {"fmovel", 4, two(0xF000, 0x8000), two(0xF1C0, 0xE3FF), "Iibss8", cfloat },
  2514. {"fmovep", 4, two(0xF000, 0x4C00), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2515. {"fmovep", 4, two(0xF000, 0x6C00), two(0xF1C0, 0xFC00), "IiF7~pkC", mfloat },
  2516. {"fmovep", 4, two(0xF000, 0x7C00), two(0xF1C0, 0xFC0F), "IiF7~pDk", mfloat },
  2517. {"fmoves", 4, two(0xF000, 0x4400), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2518. {"fmoves", 4, two(0xF000, 0x6400), two(0xF1C0, 0xFC7F), "IiF7$f", mfloat },
  2519. {"fmoves", 4, two(0xF000, 0x4400), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2520. {"fmoves", 4, two(0xF000, 0x6400), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2521. {"fmovew", 4, two(0xF000, 0x5000), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2522. {"fmovew", 4, two(0xF000, 0x7000), two(0xF1C0, 0xFC7F), "IiF7$w", mfloat },
  2523. {"fmovew", 4, two(0xF000, 0x5000), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2524. {"fmovew", 4, two(0xF000, 0x7000), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2525. {"fmovex", 4, two(0xF000, 0x0000), two(0xF1FF, 0xE07F), "IiF8F7", mfloat },
  2526. {"fmovex", 4, two(0xF000, 0x4800), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2527. {"fmovex", 4, two(0xF000, 0x6800), two(0xF1C0, 0xFC7F), "IiF7~x", mfloat },
  2528. {"fsmoveb", 4, two(0xF000, 0x5840), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2529. {"fsmoveb", 4, two(0xF000, 0x5840), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2530. {"fsmoveb", 4, two(0xF000, 0x7840), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2531. {"fsmoved", 4, two(0xF000, 0x0040), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2532. {"fsmoved", 4, two(0xF000, 0x5440), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2533. {"fsmoved", 4, two(0xF000, 0x5440), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2534. {"fsmoved", 4, two(0xF000, 0x7440), two(0xF1C0, 0xFC7F), "IiF7ws", cfloat },
  2535. {"fsmovel", 4, two(0xF000, 0x4040), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2536. {"fsmovel", 4, two(0xF000, 0x4040), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2537. {"fsmovel", 4, two(0xF000, 0x6040), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2538. {"fsmoves", 4, two(0xF000, 0x4440), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2539. {"fsmoves", 4, two(0xF000, 0x4440), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2540. {"fsmoves", 4, two(0xF000, 0x6440), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2541. {"fsmovew", 4, two(0xF000, 0x5040), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2542. {"fsmovew", 4, two(0xF000, 0x5040), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2543. {"fsmovew", 4, two(0xF000, 0x7040), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2544. {"fsmovex", 4, two(0xF000, 0x0040), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2545. {"fsmovex", 4, two(0xF000, 0x4840), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2546. {"fsmovep", 4, two(0xF000, 0x4C40), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2547. {"fdmoveb", 4, two(0xF000, 0x5844), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2548. {"fdmoveb", 4, two(0xF000, 0x5844), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2549. {"fdmoveb", 4, two(0xF000, 0x7844), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2550. {"fdmoved", 4, two(0xF000, 0x0044), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2551. {"fdmoved", 4, two(0xF000, 0x5444), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2552. {"fdmoved", 4, two(0xF000, 0x5444), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2553. {"fdmoved", 4, two(0xF000, 0x7444), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2554. {"fdmovel", 4, two(0xF000, 0x4044), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2555. {"fdmovel", 4, two(0xF000, 0x4044), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2556. {"fdmovel", 4, two(0xF000, 0x6044), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2557. {"fdmoves", 4, two(0xF000, 0x4444), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2558. {"fdmoves", 4, two(0xF000, 0x4444), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2559. {"fdmoves", 4, two(0xF000, 0x6444), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2560. {"fdmovew", 4, two(0xF000, 0x5044), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2561. {"fdmovew", 4, two(0xF000, 0x5044), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2562. {"fdmovew", 4, two(0xF000, 0x7044), two(0xF1C0, 0xFC7F), "IiF7qs", cfloat },
  2563. {"fdmovex", 4, two(0xF000, 0x0044), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2564. {"fdmovex", 4, two(0xF000, 0x4844), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2565. {"fdmovep", 4, two(0xF000, 0x4C44), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2566. {"fmovecrx", 4, two(0xF000, 0x5C00), two(0xF1FF, 0xFC00), "Ii#CF7", mfloat },
  2567. {"fmovemd", 4, two(0xF000, 0xD000), two(0xFFC0, 0xFF00), "Iizsl3", cfloat },
  2568. {"fmovemd", 4, two(0xF000, 0xD000), two(0xFFC0, 0xFF00), "Iizs#3", cfloat },
  2569. {"fmovemd", 4, two(0xF000, 0xF000), two(0xFFC0, 0xFF00), "Ii#3ys", cfloat },
  2570. {"fmovemd", 4, two(0xF000, 0xF000), two(0xFFC0, 0xFF00), "Iil3ys", cfloat },
  2571. {"fmovemx", 4, two(0xF000, 0xF800), two(0xF1C0, 0xFF8F), "IiDk&s", mfloat },
  2572. {"fmovemx", 4, two(0xF020, 0xE800), two(0xF1F8, 0xFF8F), "IiDk-s", mfloat },
  2573. {"fmovemx", 4, two(0xF000, 0xD800), two(0xF1C0, 0xFF8F), "Ii&sDk", mfloat },
  2574. {"fmovemx", 4, two(0xF018, 0xD800), two(0xF1F8, 0xFF8F), "Ii+sDk", mfloat },
  2575. {"fmovemx", 4, two(0xF000, 0xF000), two(0xF1C0, 0xFF00), "Idl3&s", mfloat },
  2576. {"fmovemx", 4, two(0xF000, 0xF000), two(0xF1C0, 0xFF00), "Id#3&s", mfloat },
  2577. {"fmovemx", 4, two(0xF000, 0xD000), two(0xF1C0, 0xFF00), "Id&sl3", mfloat },
  2578. {"fmovemx", 4, two(0xF000, 0xD000), two(0xF1C0, 0xFF00), "Id&s#3", mfloat },
  2579. {"fmovemx", 4, two(0xF020, 0xE000), two(0xF1F8, 0xFF00), "IdL3-s", mfloat },
  2580. {"fmovemx", 4, two(0xF020, 0xE000), two(0xF1F8, 0xFF00), "Id#3-s", mfloat },
  2581. {"fmovemx", 4, two(0xF018, 0xD000), two(0xF1F8, 0xFF00), "Id+sl3", mfloat },
  2582. {"fmovemx", 4, two(0xF018, 0xD000), two(0xF1F8, 0xFF00), "Id+s#3", mfloat },
  2583. {"fmoveml", 4, two(0xF000, 0xA000), two(0xF1C0, 0xE3FF), "Iis8%s", mfloat },
  2584. {"fmoveml", 4, two(0xF000, 0xA000), two(0xF1C0, 0xE3FF), "IiL8~s", mfloat },
  2585. /* FIXME: In the next instruction, we should only permit %dn if the
  2586. target is a single register. We should only permit %an if the
  2587. target is a single %fpiar. */
  2588. {"fmoveml", 4, two(0xF000, 0x8000), two(0xF1C0, 0xE3FF), "Ii*lL8", mfloat },
  2589. {"fmovem", 4, two(0xF000, 0xD000), two(0xFFC0, 0xFF00), "IizsL3", cfloat },
  2590. {"fmovem", 4, two(0xF000, 0xD000), two(0xFFC0, 0xFF00), "Iizs#3", cfloat },
  2591. {"fmovem", 4, two(0xF000, 0xF000), two(0xFFC0, 0xFF00), "Ii#3ys", cfloat },
  2592. {"fmovem", 4, two(0xF000, 0xF000), two(0xFFC0, 0xFF00), "IiL3ys", cfloat },
  2593. {"fmovem", 4, two(0xF020, 0xE000), two(0xF1F8, 0xFF00), "IdL3-s", mfloat },
  2594. {"fmovem", 4, two(0xF000, 0xF000), two(0xF1C0, 0xFF00), "Idl3&s", mfloat },
  2595. {"fmovem", 4, two(0xF018, 0xD000), two(0xF1F8, 0xFF00), "Id+sl3", mfloat },
  2596. {"fmovem", 4, two(0xF000, 0xD000), two(0xF1C0, 0xFF00), "Id&sl3", mfloat },
  2597. {"fmovem", 4, two(0xF020, 0xE000), two(0xF1F8, 0xFF00), "Id#3-s", mfloat },
  2598. {"fmovem", 4, two(0xF020, 0xE800), two(0xF1F8, 0xFF8F), "IiDk-s", mfloat },
  2599. {"fmovem", 4, two(0xF000, 0xF000), two(0xF1C0, 0xFF00), "Id#3&s", mfloat },
  2600. {"fmovem", 4, two(0xF000, 0xF800), two(0xF1C0, 0xFF8F), "IiDk&s", mfloat },
  2601. {"fmovem", 4, two(0xF018, 0xD000), two(0xF1F8, 0xFF00), "Id+s#3", mfloat },
  2602. {"fmovem", 4, two(0xF018, 0xD800), two(0xF1F8, 0xFF8F), "Ii+sDk", mfloat },
  2603. {"fmovem", 4, two(0xF000, 0xD000), two(0xF1C0, 0xFF00), "Id&s#3", mfloat },
  2604. {"fmovem", 4, two(0xF000, 0xD800), two(0xF1C0, 0xFF8F), "Ii&sDk", mfloat },
  2605. {"fmovem", 4, two(0xF000, 0xA000), two(0xF1C0, 0xE3FF), "Iis8%s", mfloat },
  2606. {"fmovem", 4, two(0xF000, 0x8000), two(0xF1C0, 0xE3FF), "Ii*ss8", mfloat },
  2607. {"fmovem", 4, two(0xF000, 0xA000), two(0xF1C0, 0xE3FF), "IiL8~s", mfloat },
  2608. {"fmovem", 4, two(0xF000, 0x8000), two(0xF2C0, 0xE3FF), "Ii*sL8", mfloat },
  2609. {"fmulb", 4, two(0xF000, 0x5823), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2610. {"fmulb", 4, two(0xF000, 0x5823), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2611. {"fmuld", 4, two(0xF000, 0x0023), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2612. {"fmuld", 4, two(0xF000, 0x5423), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2613. {"fmuld", 4, two(0xF000, 0x5423), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2614. {"fmull", 4, two(0xF000, 0x4023), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2615. {"fmull", 4, two(0xF000, 0x4023), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2616. {"fmulp", 4, two(0xF000, 0x4C23), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2617. {"fmuls", 4, two(0xF000, 0x4423), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2618. {"fmuls", 4, two(0xF000, 0x4423), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2619. {"fmulw", 4, two(0xF000, 0x5023), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2620. {"fmulw", 4, two(0xF000, 0x5023), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2621. {"fmulx", 4, two(0xF000, 0x0023), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2622. {"fmulx", 4, two(0xF000, 0x4823), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2623. {"fsmulb", 4, two(0xF000, 0x5863), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2624. {"fsmulb", 4, two(0xF000, 0x5863), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2625. {"fsmuld", 4, two(0xF000, 0x0063), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2626. {"fsmuld", 4, two(0xF000, 0x5463), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2627. {"fsmuld", 4, two(0xF000, 0x5463), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2628. {"fsmull", 4, two(0xF000, 0x4063), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2629. {"fsmull", 4, two(0xF000, 0x4063), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2630. {"fsmulp", 4, two(0xF000, 0x4C63), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2631. {"fsmuls", 4, two(0xF000, 0x4463), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2632. {"fsmuls", 4, two(0xF000, 0x4463), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2633. {"fsmulw", 4, two(0xF000, 0x5063), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2634. {"fsmulw", 4, two(0xF000, 0x5063), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2635. {"fsmulx", 4, two(0xF000, 0x0063), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2636. {"fsmulx", 4, two(0xF000, 0x4863), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2637. {"fdmulb", 4, two(0xF000, 0x5867), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2638. {"fdmulb", 4, two(0xF000, 0x5867), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2639. {"fdmuld", 4, two(0xF000, 0x0067), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2640. {"fdmuld", 4, two(0xF000, 0x5467), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2641. {"fdmuld", 4, two(0xF000, 0x5467), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2642. {"fdmull", 4, two(0xF000, 0x4067), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2643. {"fdmull", 4, two(0xF000, 0x4067), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2644. {"fdmulp", 4, two(0xF000, 0x4C67), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2645. {"fdmuls", 4, two(0xF000, 0x4467), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2646. {"fdmuls", 4, two(0xF000, 0x4467), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2647. {"fdmulw", 4, two(0xF000, 0x5067), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2648. {"fdmulw", 4, two(0xF000, 0x5067), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2649. {"fdmulx", 4, two(0xF000, 0x0067), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2650. {"fdmulx", 4, two(0xF000, 0x4867), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2651. {"fnegb", 4, two(0xF000, 0x581A), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2652. {"fnegb", 4, two(0xF000, 0x581A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2653. {"fnegd", 4, two(0xF000, 0x001A), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2654. {"fnegd", 4, two(0xF000, 0x001A), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2655. {"fnegd", 4, two(0xF000, 0x541A), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2656. {"fnegd", 4, two(0xF000, 0x541A), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2657. {"fnegl", 4, two(0xF000, 0x401A), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2658. {"fnegl", 4, two(0xF000, 0x401A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2659. {"fnegp", 4, two(0xF000, 0x4C1A), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2660. {"fnegs", 4, two(0xF000, 0x441A), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2661. {"fnegs", 4, two(0xF000, 0x441A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2662. {"fnegw", 4, two(0xF000, 0x501A), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2663. {"fnegw", 4, two(0xF000, 0x501A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2664. {"fnegx", 4, two(0xF000, 0x001A), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2665. {"fnegx", 4, two(0xF000, 0x481A), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2666. {"fnegx", 4, two(0xF000, 0x001A), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2667. {"fsnegb", 4, two(0xF000, 0x585A), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2668. {"fsnegb", 4, two(0xF000, 0x585A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2669. {"fsnegd", 4, two(0xF000, 0x005A), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2670. {"fsnegd", 4, two(0xF000, 0x005A), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2671. {"fsnegd", 4, two(0xF000, 0x545A), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2672. {"fsnegd", 4, two(0xF000, 0x545A), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2673. {"fsnegl", 4, two(0xF000, 0x405A), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2674. {"fsnegl", 4, two(0xF000, 0x405A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2675. {"fsnegp", 4, two(0xF000, 0x4C5A), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2676. {"fsnegs", 4, two(0xF000, 0x445A), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2677. {"fsnegs", 4, two(0xF000, 0x445A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2678. {"fsnegw", 4, two(0xF000, 0x505A), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2679. {"fsnegw", 4, two(0xF000, 0x505A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2680. {"fsnegx", 4, two(0xF000, 0x005A), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2681. {"fsnegx", 4, two(0xF000, 0x485A), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2682. {"fsnegx", 4, two(0xF000, 0x005A), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2683. {"fdnegb", 4, two(0xF000, 0x585E), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2684. {"fdnegb", 4, two(0xF000, 0x585E), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2685. {"fdnegd", 4, two(0xF000, 0x005E), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2686. {"fdnegd", 4, two(0xF000, 0x005E), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2687. {"fdnegd", 4, two(0xF000, 0x545E), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2688. {"fdnegd", 4, two(0xF000, 0x545E), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2689. {"fdnegl", 4, two(0xF000, 0x405E), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2690. {"fdnegl", 4, two(0xF000, 0x405E), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2691. {"fdnegp", 4, two(0xF000, 0x4C5E), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2692. {"fdnegs", 4, two(0xF000, 0x445E), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2693. {"fdnegs", 4, two(0xF000, 0x445E), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2694. {"fdnegw", 4, two(0xF000, 0x505E), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2695. {"fdnegw", 4, two(0xF000, 0x505E), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2696. {"fdnegx", 4, two(0xF000, 0x005E), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2697. {"fdnegx", 4, two(0xF000, 0x485E), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2698. {"fdnegx", 4, two(0xF000, 0x005E), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2699. {"fnop", 4, two(0xF280, 0x0000), two(0xFFFF, 0xFFFF), "Ii", mfloat | cfloat },
  2700. {"fremb", 4, two(0xF000, 0x5825), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2701. {"fremd", 4, two(0xF000, 0x5425), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2702. {"freml", 4, two(0xF000, 0x4025), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2703. {"fremp", 4, two(0xF000, 0x4C25), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2704. {"frems", 4, two(0xF000, 0x4425), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2705. {"fremw", 4, two(0xF000, 0x5025), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2706. {"fremx", 4, two(0xF000, 0x0025), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2707. {"fremx", 4, two(0xF000, 0x4825), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2708. {"frestore", 2, one(0xF140), one(0xF1C0), "Id<s", mfloat },
  2709. {"frestore", 2, one(0xF140), one(0xF1C0), "Idys", cfloat },
  2710. {"fsave", 2, one(0xF100), one(0xF1C0), "Id>s", mfloat },
  2711. {"fsave", 2, one(0xF100), one(0xF1C0), "Idzs", cfloat },
  2712. {"fscaleb", 4, two(0xF000, 0x5826), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2713. {"fscaled", 4, two(0xF000, 0x5426), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2714. {"fscalel", 4, two(0xF000, 0x4026), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2715. {"fscalep", 4, two(0xF000, 0x4C26), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2716. {"fscales", 4, two(0xF000, 0x4426), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2717. {"fscalew", 4, two(0xF000, 0x5026), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2718. {"fscalex", 4, two(0xF000, 0x0026), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2719. {"fscalex", 4, two(0xF000, 0x4826), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2720. /* $ is necessary to prevent the assembler from using PC-relative.
  2721. If @ were used, "label: fseq label" could produce "ftrapeq", 2,
  2722. because "label" became "pc@label". */
  2723. {"fseq", 4, two(0xF040, 0x0001), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2724. {"fsf", 4, two(0xF040, 0x0000), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2725. {"fsge", 4, two(0xF040, 0x0013), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2726. {"fsgl", 4, two(0xF040, 0x0016), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2727. {"fsgle", 4, two(0xF040, 0x0017), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2728. {"fsgt", 4, two(0xF040, 0x0012), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2729. {"fsle", 4, two(0xF040, 0x0015), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2730. {"fslt", 4, two(0xF040, 0x0014), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2731. {"fsne", 4, two(0xF040, 0x000E), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2732. {"fsnge", 4, two(0xF040, 0x001C), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2733. {"fsngl", 4, two(0xF040, 0x0019), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2734. {"fsngle", 4, two(0xF040, 0x0018), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2735. {"fsngt", 4, two(0xF040, 0x001D), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2736. {"fsnle", 4, two(0xF040, 0x001A), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2737. {"fsnlt", 4, two(0xF040, 0x001B), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2738. {"fsoge", 4, two(0xF040, 0x0003), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2739. {"fsogl", 4, two(0xF040, 0x0006), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2740. {"fsogt", 4, two(0xF040, 0x0002), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2741. {"fsole", 4, two(0xF040, 0x0005), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2742. {"fsolt", 4, two(0xF040, 0x0004), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2743. {"fsor", 4, two(0xF040, 0x0007), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2744. {"fsseq", 4, two(0xF040, 0x0011), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2745. {"fssf", 4, two(0xF040, 0x0010), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2746. {"fssne", 4, two(0xF040, 0x001E), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2747. {"fsst", 4, two(0xF040, 0x001F), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2748. {"fst", 4, two(0xF040, 0x000F), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2749. {"fsueq", 4, two(0xF040, 0x0009), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2750. {"fsuge", 4, two(0xF040, 0x000B), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2751. {"fsugt", 4, two(0xF040, 0x000A), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2752. {"fsule", 4, two(0xF040, 0x000D), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2753. {"fsult", 4, two(0xF040, 0x000C), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2754. {"fsun", 4, two(0xF040, 0x0008), two(0xF1C0, 0xFFFF), "Ii$s", mfloat },
  2755. {"fsgldivb", 4, two(0xF000, 0x5824), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2756. {"fsgldivd", 4, two(0xF000, 0x5424), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2757. {"fsgldivl", 4, two(0xF000, 0x4024), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2758. {"fsgldivp", 4, two(0xF000, 0x4C24), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2759. {"fsgldivs", 4, two(0xF000, 0x4424), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2760. {"fsgldivw", 4, two(0xF000, 0x5024), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2761. {"fsgldivx", 4, two(0xF000, 0x0024), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2762. {"fsgldivx", 4, two(0xF000, 0x4824), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2763. {"fsgldivx", 4, two(0xF000, 0x0024), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2764. {"fsglmulb", 4, two(0xF000, 0x5827), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2765. {"fsglmuld", 4, two(0xF000, 0x5427), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2766. {"fsglmull", 4, two(0xF000, 0x4027), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2767. {"fsglmulp", 4, two(0xF000, 0x4C27), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2768. {"fsglmuls", 4, two(0xF000, 0x4427), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2769. {"fsglmulw", 4, two(0xF000, 0x5027), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2770. {"fsglmulx", 4, two(0xF000, 0x0027), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2771. {"fsglmulx", 4, two(0xF000, 0x4827), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2772. {"fsglmulx", 4, two(0xF000, 0x0027), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2773. {"fsinb", 4, two(0xF000, 0x580E), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2774. {"fsind", 4, two(0xF000, 0x540E), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2775. {"fsinl", 4, two(0xF000, 0x400E), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2776. {"fsinp", 4, two(0xF000, 0x4C0E), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2777. {"fsins", 4, two(0xF000, 0x440E), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2778. {"fsinw", 4, two(0xF000, 0x500E), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2779. {"fsinx", 4, two(0xF000, 0x000E), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2780. {"fsinx", 4, two(0xF000, 0x480E), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2781. {"fsinx", 4, two(0xF000, 0x000E), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2782. {"fsincosb", 4, two(0xF000, 0x5830), two(0xF1C0, 0xFC78), "Ii;bF3F7", mfloat },
  2783. {"fsincosd", 4, two(0xF000, 0x5430), two(0xF1C0, 0xFC78), "Ii;FF3F7", mfloat },
  2784. {"fsincosl", 4, two(0xF000, 0x4030), two(0xF1C0, 0xFC78), "Ii;lF3F7", mfloat },
  2785. {"fsincosp", 4, two(0xF000, 0x4C30), two(0xF1C0, 0xFC78), "Ii;pF3F7", mfloat },
  2786. {"fsincoss", 4, two(0xF000, 0x4430), two(0xF1C0, 0xFC78), "Ii;fF3F7", mfloat },
  2787. {"fsincosw", 4, two(0xF000, 0x5030), two(0xF1C0, 0xFC78), "Ii;wF3F7", mfloat },
  2788. {"fsincosx", 4, two(0xF000, 0x0030), two(0xF1C0, 0xE078), "IiF8F3F7", mfloat },
  2789. {"fsincosx", 4, two(0xF000, 0x4830), two(0xF1C0, 0xFC78), "Ii;xF3F7", mfloat },
  2790. {"fsinhb", 4, two(0xF000, 0x5802), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2791. {"fsinhd", 4, two(0xF000, 0x5402), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2792. {"fsinhl", 4, two(0xF000, 0x4002), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2793. {"fsinhp", 4, two(0xF000, 0x4C02), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2794. {"fsinhs", 4, two(0xF000, 0x4402), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2795. {"fsinhw", 4, two(0xF000, 0x5002), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2796. {"fsinhx", 4, two(0xF000, 0x0002), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2797. {"fsinhx", 4, two(0xF000, 0x4802), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2798. {"fsinhx", 4, two(0xF000, 0x0002), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2799. {"fsqrtb", 4, two(0xF000, 0x5804), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2800. {"fsqrtb", 4, two(0xF000, 0x5804), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2801. {"fsqrtd", 4, two(0xF000, 0x0004), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2802. {"fsqrtd", 4, two(0xF000, 0x0004), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2803. {"fsqrtd", 4, two(0xF000, 0x5404), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2804. {"fsqrtd", 4, two(0xF000, 0x5404), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2805. {"fsqrtl", 4, two(0xF000, 0x4004), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2806. {"fsqrtl", 4, two(0xF000, 0x4004), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2807. {"fsqrtp", 4, two(0xF000, 0x4C04), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2808. {"fsqrts", 4, two(0xF000, 0x4404), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2809. {"fsqrts", 4, two(0xF000, 0x4404), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2810. {"fsqrtw", 4, two(0xF000, 0x5004), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2811. {"fsqrtw", 4, two(0xF000, 0x5004), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2812. {"fsqrtx", 4, two(0xF000, 0x0004), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2813. {"fsqrtx", 4, two(0xF000, 0x4804), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2814. {"fsqrtx", 4, two(0xF000, 0x0004), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2815. {"fssqrtb", 4, two(0xF000, 0x5841), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2816. {"fssqrtb", 4, two(0xF000, 0x5841), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2817. {"fssqrtd", 4, two(0xF000, 0x0041), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2818. {"fssqrtd", 4, two(0xF000, 0x0041), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2819. {"fssqrtd", 4, two(0xF000, 0x5441), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2820. {"fssqrtd", 4, two(0xF000, 0x5441), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2821. {"fssqrtl", 4, two(0xF000, 0x4041), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2822. {"fssqrtl", 4, two(0xF000, 0x4041), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2823. {"fssqrtp", 4, two(0xF000, 0x4C41), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2824. {"fssqrts", 4, two(0xF000, 0x4441), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2825. {"fssqrts", 4, two(0xF000, 0x4441), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2826. {"fssqrtw", 4, two(0xF000, 0x5041), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2827. {"fssqrtw", 4, two(0xF000, 0x5041), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2828. {"fssqrtx", 4, two(0xF000, 0x0041), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2829. {"fssqrtx", 4, two(0xF000, 0x4841), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2830. {"fssqrtx", 4, two(0xF000, 0x0041), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2831. {"fdsqrtb", 4, two(0xF000, 0x5845), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2832. {"fdsqrtb", 4, two(0xF000, 0x5845), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2833. {"fdsqrtd", 4, two(0xF000, 0x0045), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2834. {"fdsqrtd", 4, two(0xF000, 0x0045), two(0xF1C0, 0xE07F), "IiFt", cfloat },
  2835. {"fdsqrtd", 4, two(0xF000, 0x5445), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2836. {"fdsqrtl", 4, two(0xF000, 0x4045), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2837. {"fdsqrtl", 4, two(0xF000, 0x4045), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2838. {"fdsqrtp", 4, two(0xF000, 0x4C45), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2839. {"fdsqrts", 4, two(0xF000, 0x4445), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2840. {"fdsqrts", 4, two(0xF000, 0x4445), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2841. {"fdsqrtw", 4, two(0xF000, 0x5045), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2842. {"fdsqrtw", 4, two(0xF000, 0x5045), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2843. {"fdsqrtx", 4, two(0xF000, 0x0045), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2844. {"fdsqrtx", 4, two(0xF000, 0x4845), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2845. {"fdsqrtx", 4, two(0xF000, 0x0045), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2846. {"fsubb", 4, two(0xF000, 0x5828), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2847. {"fsubb", 4, two(0xF000, 0x5828), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2848. {"fsubd", 4, two(0xF000, 0x0028), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2849. {"fsubd", 4, two(0xF000, 0x5428), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2850. {"fsubd", 4, two(0xF000, 0x5428), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2851. {"fsubl", 4, two(0xF000, 0x4028), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2852. {"fsubl", 4, two(0xF000, 0x4028), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2853. {"fsubp", 4, two(0xF000, 0x4C28), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2854. {"fsubs", 4, two(0xF000, 0x4428), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2855. {"fsubs", 4, two(0xF000, 0x4428), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2856. {"fsubw", 4, two(0xF000, 0x5028), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2857. {"fsubw", 4, two(0xF000, 0x5028), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2858. {"fsubx", 4, two(0xF000, 0x0028), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2859. {"fsubx", 4, two(0xF000, 0x4828), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2860. {"fsubx", 4, two(0xF000, 0x0028), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2861. {"fssubb", 4, two(0xF000, 0x5828), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2862. {"fssubb", 4, two(0xF000, 0x5868), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2863. {"fssubd", 4, two(0xF000, 0x0068), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2864. {"fssubd", 4, two(0xF000, 0x5468), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2865. {"fssubd", 4, two(0xF000, 0x5468), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2866. {"fssubl", 4, two(0xF000, 0x4068), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2867. {"fssubl", 4, two(0xF000, 0x4068), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2868. {"fssubp", 4, two(0xF000, 0x4C68), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2869. {"fssubs", 4, two(0xF000, 0x4468), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2870. {"fssubs", 4, two(0xF000, 0x4468), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2871. {"fssubw", 4, two(0xF000, 0x5068), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2872. {"fssubw", 4, two(0xF000, 0x5068), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2873. {"fssubx", 4, two(0xF000, 0x0068), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2874. {"fssubx", 4, two(0xF000, 0x4868), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2875. {"fssubx", 4, two(0xF000, 0x0068), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2876. {"fdsubb", 4, two(0xF000, 0x586A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2877. {"fdsubb", 4, two(0xF000, 0x586c), two(0xF1C0, 0xFC7F), "Ii;bF7", m68040up },
  2878. {"fdsubd", 4, two(0xF000, 0x006A), two(0xF1C0, 0xE07F), "IiF8F7", cfloat },
  2879. {"fdsubd", 4, two(0xF000, 0x546A), two(0xF1C0, 0xFC7F), "IiwsF7", cfloat },
  2880. {"fdsubd", 4, two(0xF000, 0x546c), two(0xF1C0, 0xFC7F), "Ii;FF7", m68040up },
  2881. {"fdsubl", 4, two(0xF000, 0x406A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2882. {"fdsubl", 4, two(0xF000, 0x406c), two(0xF1C0, 0xFC7F), "Ii;lF7", m68040up },
  2883. {"fdsubp", 4, two(0xF000, 0x4C6c), two(0xF1C0, 0xFC7F), "Ii;pF7", m68040up },
  2884. {"fdsubs", 4, two(0xF000, 0x446A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2885. {"fdsubs", 4, two(0xF000, 0x446c), two(0xF1C0, 0xFC7F), "Ii;fF7", m68040up },
  2886. {"fdsubw", 4, two(0xF000, 0x506A), two(0xF1C0, 0xFC7F), "IibsF7", cfloat },
  2887. {"fdsubw", 4, two(0xF000, 0x506c), two(0xF1C0, 0xFC7F), "Ii;wF7", m68040up },
  2888. {"fdsubx", 4, two(0xF000, 0x006c), two(0xF1C0, 0xE07F), "IiF8F7", m68040up },
  2889. {"fdsubx", 4, two(0xF000, 0x486c), two(0xF1C0, 0xFC7F), "Ii;xF7", m68040up },
  2890. {"fdsubx", 4, two(0xF000, 0x006c), two(0xF1C0, 0xE07F), "IiFt", m68040up },
  2891. {"ftanb", 4, two(0xF000, 0x580F), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2892. {"ftand", 4, two(0xF000, 0x540F), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2893. {"ftanl", 4, two(0xF000, 0x400F), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2894. {"ftanp", 4, two(0xF000, 0x4C0F), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2895. {"ftans", 4, two(0xF000, 0x440F), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2896. {"ftanw", 4, two(0xF000, 0x500F), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2897. {"ftanx", 4, two(0xF000, 0x000F), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2898. {"ftanx", 4, two(0xF000, 0x480F), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2899. {"ftanx", 4, two(0xF000, 0x000F), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2900. {"ftanhb", 4, two(0xF000, 0x5809), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2901. {"ftanhd", 4, two(0xF000, 0x5409), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2902. {"ftanhl", 4, two(0xF000, 0x4009), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2903. {"ftanhp", 4, two(0xF000, 0x4C09), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2904. {"ftanhs", 4, two(0xF000, 0x4409), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2905. {"ftanhw", 4, two(0xF000, 0x5009), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2906. {"ftanhx", 4, two(0xF000, 0x0009), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2907. {"ftanhx", 4, two(0xF000, 0x4809), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2908. {"ftanhx", 4, two(0xF000, 0x0009), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2909. {"ftentoxb", 4, two(0xF000, 0x5812), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  2910. {"ftentoxd", 4, two(0xF000, 0x5412), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  2911. {"ftentoxl", 4, two(0xF000, 0x4012), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  2912. {"ftentoxp", 4, two(0xF000, 0x4C12), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  2913. {"ftentoxs", 4, two(0xF000, 0x4412), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  2914. {"ftentoxw", 4, two(0xF000, 0x5012), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  2915. {"ftentoxx", 4, two(0xF000, 0x0012), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  2916. {"ftentoxx", 4, two(0xF000, 0x4812), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  2917. {"ftentoxx", 4, two(0xF000, 0x0012), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  2918. {"ftrapeq", 4, two(0xF07C, 0x0001), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2919. {"ftrapf", 4, two(0xF07C, 0x0000), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2920. {"ftrapge", 4, two(0xF07C, 0x0013), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2921. {"ftrapgl", 4, two(0xF07C, 0x0016), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2922. {"ftrapgle", 4, two(0xF07C, 0x0017), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2923. {"ftrapgt", 4, two(0xF07C, 0x0012), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2924. {"ftraple", 4, two(0xF07C, 0x0015), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2925. {"ftraplt", 4, two(0xF07C, 0x0014), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2926. {"ftrapne", 4, two(0xF07C, 0x000E), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2927. {"ftrapnge", 4, two(0xF07C, 0x001C), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2928. {"ftrapngl", 4, two(0xF07C, 0x0019), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2929. {"ftrapngle", 4,two(0xF07C, 0x0018), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2930. {"ftrapngt", 4, two(0xF07C, 0x001D), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2931. {"ftrapnle", 4, two(0xF07C, 0x001A), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2932. {"ftrapnlt", 4, two(0xF07C, 0x001B), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2933. {"ftrapoge", 4, two(0xF07C, 0x0003), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2934. {"ftrapogl", 4, two(0xF07C, 0x0006), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2935. {"ftrapogt", 4, two(0xF07C, 0x0002), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2936. {"ftrapole", 4, two(0xF07C, 0x0005), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2937. {"ftrapolt", 4, two(0xF07C, 0x0004), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2938. {"ftrapor", 4, two(0xF07C, 0x0007), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2939. {"ftrapseq", 4, two(0xF07C, 0x0011), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2940. {"ftrapsf", 4, two(0xF07C, 0x0010), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2941. {"ftrapsne", 4, two(0xF07C, 0x001E), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2942. {"ftrapst", 4, two(0xF07C, 0x001F), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2943. {"ftrapt", 4, two(0xF07C, 0x000F), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2944. {"ftrapueq", 4, two(0xF07C, 0x0009), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2945. {"ftrapuge", 4, two(0xF07C, 0x000B), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2946. {"ftrapugt", 4, two(0xF07C, 0x000A), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2947. {"ftrapule", 4, two(0xF07C, 0x000D), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2948. {"ftrapult", 4, two(0xF07C, 0x000C), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2949. {"ftrapun", 4, two(0xF07C, 0x0008), two(0xF1FF, 0xFFFF), "Ii", mfloat },
  2950. {"ftrapeqw", 4, two(0xF07A, 0x0001), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2951. {"ftrapfw", 4, two(0xF07A, 0x0000), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2952. {"ftrapgew", 4, two(0xF07A, 0x0013), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2953. {"ftrapglw", 4, two(0xF07A, 0x0016), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2954. {"ftrapglew", 4,two(0xF07A, 0x0017), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2955. {"ftrapgtw", 4, two(0xF07A, 0x0012), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2956. {"ftraplew", 4, two(0xF07A, 0x0015), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2957. {"ftrapltw", 4, two(0xF07A, 0x0014), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2958. {"ftrapnew", 4, two(0xF07A, 0x000E), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2959. {"ftrapngew", 4,two(0xF07A, 0x001C), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2960. {"ftrapnglw", 4,two(0xF07A, 0x0019), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2961. {"ftrapnglew", 4,two(0xF07A, 0x0018), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2962. {"ftrapngtw", 4,two(0xF07A, 0x001D), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2963. {"ftrapnlew", 4,two(0xF07A, 0x001A), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2964. {"ftrapnltw", 4,two(0xF07A, 0x001B), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2965. {"ftrapogew", 4,two(0xF07A, 0x0003), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2966. {"ftrapoglw", 4,two(0xF07A, 0x0006), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2967. {"ftrapogtw", 4,two(0xF07A, 0x0002), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2968. {"ftrapolew", 4,two(0xF07A, 0x0005), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2969. {"ftrapoltw", 4,two(0xF07A, 0x0004), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2970. {"ftraporw", 4, two(0xF07A, 0x0007), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2971. {"ftrapseqw", 4,two(0xF07A, 0x0011), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2972. {"ftrapsfw", 4, two(0xF07A, 0x0010), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2973. {"ftrapsnew", 4,two(0xF07A, 0x001E), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2974. {"ftrapstw", 4, two(0xF07A, 0x001F), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2975. {"ftraptw", 4, two(0xF07A, 0x000F), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2976. {"ftrapueqw", 4,two(0xF07A, 0x0009), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2977. {"ftrapugew", 4,two(0xF07A, 0x000B), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2978. {"ftrapugtw", 4,two(0xF07A, 0x000A), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2979. {"ftrapulew", 4,two(0xF07A, 0x000D), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2980. {"ftrapultw", 4,two(0xF07A, 0x000C), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2981. {"ftrapunw", 4, two(0xF07A, 0x0008), two(0xF1FF, 0xFFFF), "Ii^w", mfloat },
  2982. {"ftrapeql", 4, two(0xF07B, 0x0001), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2983. {"ftrapfl", 4, two(0xF07B, 0x0000), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2984. {"ftrapgel", 4, two(0xF07B, 0x0013), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2985. {"ftrapgll", 4, two(0xF07B, 0x0016), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2986. {"ftrapglel", 4,two(0xF07B, 0x0017), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2987. {"ftrapgtl", 4, two(0xF07B, 0x0012), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2988. {"ftraplel", 4, two(0xF07B, 0x0015), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2989. {"ftrapltl", 4, two(0xF07B, 0x0014), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2990. {"ftrapnel", 4, two(0xF07B, 0x000E), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2991. {"ftrapngel", 4,two(0xF07B, 0x001C), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2992. {"ftrapngll", 4,two(0xF07B, 0x0019), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2993. {"ftrapnglel", 4,two(0xF07B, 0x0018), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2994. {"ftrapngtl", 4,two(0xF07B, 0x001D), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2995. {"ftrapnlel", 4,two(0xF07B, 0x001A), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2996. {"ftrapnltl", 4,two(0xF07B, 0x001B), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2997. {"ftrapogel", 4,two(0xF07B, 0x0003), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2998. {"ftrapogll", 4,two(0xF07B, 0x0006), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  2999. {"ftrapogtl", 4,two(0xF07B, 0x0002), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3000. {"ftrapolel", 4,two(0xF07B, 0x0005), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3001. {"ftrapoltl", 4,two(0xF07B, 0x0004), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3002. {"ftraporl", 4, two(0xF07B, 0x0007), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3003. {"ftrapseql", 4,two(0xF07B, 0x0011), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3004. {"ftrapsfl", 4, two(0xF07B, 0x0010), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3005. {"ftrapsnel", 4,two(0xF07B, 0x001E), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3006. {"ftrapstl", 4, two(0xF07B, 0x001F), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3007. {"ftraptl", 4, two(0xF07B, 0x000F), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3008. {"ftrapueql", 4,two(0xF07B, 0x0009), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3009. {"ftrapugel", 4,two(0xF07B, 0x000B), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3010. {"ftrapugtl", 4,two(0xF07B, 0x000A), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3011. {"ftrapulel", 4,two(0xF07B, 0x000D), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3012. {"ftrapultl", 4,two(0xF07B, 0x000C), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3013. {"ftrapunl", 4, two(0xF07B, 0x0008), two(0xF1FF, 0xFFFF), "Ii^l", mfloat },
  3014. {"ftstb", 4, two(0xF000, 0x583A), two(0xF1C0, 0xFC7F), "Ii;b", mfloat },
  3015. {"ftstb", 4, two(0xF000, 0x583A), two(0xF1C0, 0xFC7F), "Iibs", cfloat },
  3016. {"ftstd", 4, two(0xF000, 0x003A), two(0xF1C0, 0xE07F), "IiF8", cfloat },
  3017. {"ftstd", 4, two(0xF000, 0x543A), two(0xF1C0, 0xFC7F), "Ii;F", mfloat },
  3018. {"ftstd", 4, two(0xF000, 0x543A), two(0xF1C0, 0xFC7F), "Iibs", cfloat },
  3019. {"ftstl", 4, two(0xF000, 0x403A), two(0xF1C0, 0xFC7F), "Ii;l", mfloat },
  3020. {"ftstl", 4, two(0xF000, 0x403A), two(0xF1C0, 0xFC7F), "Iibs", cfloat },
  3021. {"ftstp", 4, two(0xF000, 0x4C3A), two(0xF1C0, 0xFC7F), "Ii;p", mfloat },
  3022. {"ftsts", 4, two(0xF000, 0x443A), two(0xF1C0, 0xFC7F), "Ii;f", mfloat },
  3023. {"ftsts", 4, two(0xF000, 0x443A), two(0xF1C0, 0xFC7F), "Iibs", cfloat },
  3024. {"ftstw", 4, two(0xF000, 0x503A), two(0xF1C0, 0xFC7F), "Ii;w", mfloat },
  3025. {"ftstw", 4, two(0xF000, 0x503A), two(0xF1C0, 0xFC7F), "Iibs", cfloat },
  3026. {"ftstx", 4, two(0xF000, 0x003A), two(0xF1C0, 0xE07F), "IiF8", mfloat },
  3027. {"ftstx", 4, two(0xF000, 0x483A), two(0xF1C0, 0xFC7F), "Ii;x", mfloat },
  3028. {"ftwotoxb", 4, two(0xF000, 0x5811), two(0xF1C0, 0xFC7F), "Ii;bF7", mfloat },
  3029. {"ftwotoxd", 4, two(0xF000, 0x5411), two(0xF1C0, 0xFC7F), "Ii;FF7", mfloat },
  3030. {"ftwotoxl", 4, two(0xF000, 0x4011), two(0xF1C0, 0xFC7F), "Ii;lF7", mfloat },
  3031. {"ftwotoxp", 4, two(0xF000, 0x4C11), two(0xF1C0, 0xFC7F), "Ii;pF7", mfloat },
  3032. {"ftwotoxs", 4, two(0xF000, 0x4411), two(0xF1C0, 0xFC7F), "Ii;fF7", mfloat },
  3033. {"ftwotoxw", 4, two(0xF000, 0x5011), two(0xF1C0, 0xFC7F), "Ii;wF7", mfloat },
  3034. {"ftwotoxx", 4, two(0xF000, 0x0011), two(0xF1C0, 0xE07F), "IiF8F7", mfloat },
  3035. {"ftwotoxx", 4, two(0xF000, 0x4811), two(0xF1C0, 0xFC7F), "Ii;xF7", mfloat },
  3036. {"ftwotoxx", 4, two(0xF000, 0x0011), two(0xF1C0, 0xE07F), "IiFt", mfloat },
  3037. {"halt", 2, one(0045310), one(0177777), "", m68060 | mcfisa_a },
  3038. {"illegal", 2, one(0045374), one(0177777), "", m68000up | mcfisa_a },
  3039. {"intouch", 2, one(0xf428), one(0xfff8), "As", mcfisa_b },
  3040. {"jmp", 2, one(0047300), one(0177700), "!s", m68000up | mcfisa_a },
  3041. {"jra", 2, one(0060000), one(0177400), "Bg", m68000up | mcfisa_a },
  3042. {"jra", 2, one(0047300), one(0177700), "!s", m68000up | mcfisa_a },
  3043. {"jsr", 2, one(0047200), one(0177700), "!s", m68000up | mcfisa_a },
  3044. {"jbsr", 2, one(0060400), one(0177400), "Bg", m68000up | mcfisa_a },
  3045. {"jbsr", 2, one(0047200), one(0177700), "!s", m68000up | mcfisa_a },
  3046. {"lea", 2, one(0040700), one(0170700), "!sAd", m68000up | mcfisa_a },
  3047. {"lpstop", 6, two(0174000,0000700),two(0177777,0177777),"#w", cpu32|m68060 },
  3048. {"linkw", 4, one(0047120), one(0177770), "As#w", m68000up | mcfisa_a },
  3049. {"linkl", 6, one(0044010), one(0177770), "As#l", m68020up | cpu32 },
  3050. {"link", 4, one(0047120), one(0177770), "As#W", m68000up | mcfisa_a },
  3051. {"link", 6, one(0044010), one(0177770), "As#l", m68020up | cpu32 },
  3052. {"lslb", 2, one(0160410), one(0170770), "QdDs", m68000up },
  3053. {"lslb", 2, one(0160450), one(0170770), "DdDs", m68000up },
  3054. {"lslw", 2, one(0160510), one(0170770), "QdDs", m68000up },
  3055. {"lslw", 2, one(0160550), one(0170770), "DdDs", m68000up },
  3056. {"lslw", 2, one(0161700), one(0177700), "~s", m68000up },
  3057. {"lsll", 2, one(0160610), one(0170770), "QdDs", m68000up | mcfisa_a },
  3058. {"lsll", 2, one(0160650), one(0170770), "DdDs", m68000up | mcfisa_a },
  3059. {"lsrb", 2, one(0160010), one(0170770), "QdDs", m68000up },
  3060. {"lsrb", 2, one(0160050), one(0170770), "DdDs", m68000up },
  3061. {"lsrw", 2, one(0160110), one(0170770), "QdDs", m68000up },
  3062. {"lsrw", 2, one(0160150), one(0170770), "DdDs", m68000up },
  3063. {"lsrw", 2, one(0161300), one(0177700), "~s", m68000up },
  3064. {"lsrl", 2, one(0160210), one(0170770), "QdDs", m68000up | mcfisa_a },
  3065. {"lsrl", 2, one(0160250), one(0170770), "DdDs", m68000up | mcfisa_a },
  3066. {"macw", 4, two(0xa080, 0x0000), two(0xf180, 0x0910), "uNuoiI4/Rn", mcfmac },
  3067. {"macw", 4, two(0xa080, 0x0200), two(0xf180, 0x0910), "uNuoMh4/Rn", mcfmac },
  3068. {"macw", 4, two(0xa080, 0x0000), two(0xf180, 0x0f10), "uNuo4/Rn", mcfmac },
  3069. {"macw", 4, two(0xa000, 0x0000), two(0xf1b0, 0x0900), "uMumiI", mcfmac },
  3070. {"macw", 4, two(0xa000, 0x0200), two(0xf1b0, 0x0900), "uMumMh", mcfmac },
  3071. {"macw", 4, two(0xa000, 0x0000), two(0xf1b0, 0x0f00), "uMum", mcfmac },
  3072. {"macw", 4, two(0xa000, 0x0000), two(0xf100, 0x0900), "uNuoiI4/RneG", mcfemac },/* Ry,Rx,SF,<ea>,accX. */
  3073. {"macw", 4, two(0xa000, 0x0200), two(0xf100, 0x0900), "uNuoMh4/RneG", mcfemac },/* Ry,Rx,+1/-1,<ea>,accX. */
  3074. {"macw", 4, two(0xa000, 0x0000), two(0xf100, 0x0f00), "uNuo4/RneG", mcfemac },/* Ry,Rx,<ea>,accX. */
  3075. {"macw", 4, two(0xa000, 0x0000), two(0xf130, 0x0900), "uMumiIeH", mcfemac },/* Ry,Rx,SF,accX. */
  3076. {"macw", 4, two(0xa000, 0x0200), two(0xf130, 0x0900), "uMumMheH", mcfemac },/* Ry,Rx,+1/-1,accX. */
  3077. {"macw", 4, two(0xa000, 0x0000), two(0xf130, 0x0f00), "uMumeH", mcfemac }, /* Ry,Rx,accX. */
  3078. {"macl", 4, two(0xa080, 0x0800), two(0xf180, 0x0910), "RNRoiI4/Rn", mcfmac },
  3079. {"macl", 4, two(0xa080, 0x0a00), two(0xf180, 0x0910), "RNRoMh4/Rn", mcfmac },
  3080. {"macl", 4, two(0xa080, 0x0800), two(0xf180, 0x0f10), "RNRo4/Rn", mcfmac },
  3081. {"macl", 4, two(0xa000, 0x0800), two(0xf1b0, 0x0b00), "RMRmiI", mcfmac },
  3082. {"macl", 4, two(0xa000, 0x0a00), two(0xf1b0, 0x0b00), "RMRmMh", mcfmac },
  3083. {"macl", 4, two(0xa000, 0x0800), two(0xf1b0, 0x0800), "RMRm", mcfmac },
  3084. {"macl", 4, two(0xa000, 0x0800), two(0xf100, 0x0900), "R3R1iI4/RneG", mcfemac },
  3085. {"macl", 4, two(0xa000, 0x0a00), two(0xf100, 0x0900), "R3R1Mh4/RneG", mcfemac },
  3086. {"macl", 4, two(0xa000, 0x0800), two(0xf100, 0x0f00), "R3R14/RneG", mcfemac },
  3087. {"macl", 4, two(0xa000, 0x0800), two(0xf130, 0x0900), "RMRmiIeH", mcfemac },
  3088. {"macl", 4, two(0xa000, 0x0a00), two(0xf130, 0x0900), "RMRmMheH", mcfemac },
  3089. {"macl", 4, two(0xa000, 0x0800), two(0xf130, 0x0f00), "RMRmeH", mcfemac },
  3090. /* NOTE: The mcf5200 family programmer's reference manual does not
  3091. indicate the byte form of the movea instruction is invalid (as it
  3092. is on 68000 family cpus). However, experiments on the 5202 yeild
  3093. unexpected results. The value is copied, but it is not sign extended
  3094. (as is done with movea.w) and the top three bytes in the address
  3095. register are not disturbed. I don't know if this is the intended
  3096. behavior --- it could be a hole in instruction decoding (Motorola
  3097. decided not to trap all invalid instructions for performance reasons)
  3098. --- but I suspect that it is not.
  3099. I reported this to Motorola ISD Technical Communications Support,
  3100. which replied that other coldfire assemblers reject movea.b. For
  3101. this reason I've decided to not allow moveab.
  3102. jtc@cygnus.com - 97/01/24. */
  3103. {"moveal", 2, one(0020100), one(0170700), "*lAd", m68000up | mcfisa_a },
  3104. {"moveaw", 2, one(0030100), one(0170700), "*wAd", m68000up | mcfisa_a },
  3105. {"movclrl", 2, one(0xA1C0), one(0xf9f0), "eFRs", mcfemac },
  3106. {"movec", 4, one(0047173), one(0177777), "R1Jj", m68010up | mcfisa_a },
  3107. {"movec", 4, one(0047173), one(0177777), "R1#j", m68010up | mcfisa_a },
  3108. {"movec", 4, one(0047172), one(0177777), "JjR1", m68010up },
  3109. {"movec", 4, one(0047172), one(0177777), "#jR1", m68010up },
  3110. {"movemw", 4, one(0044200), one(0177700), "Lw&s", m68000up },
  3111. {"movemw", 4, one(0044240), one(0177770), "lw-s", m68000up },
  3112. {"movemw", 4, one(0044200), one(0177700), "#w>s", m68000up },
  3113. {"movemw", 4, one(0046200), one(0177700), "<sLw", m68000up },
  3114. {"movemw", 4, one(0046200), one(0177700), "<s#w", m68000up },
  3115. {"moveml", 4, one(0044300), one(0177700), "Lw&s", m68000up },
  3116. {"moveml", 4, one(0044340), one(0177770), "lw-s", m68000up },
  3117. {"moveml", 4, one(0044300), one(0177700), "#w>s", m68000up },
  3118. {"moveml", 4, one(0046300), one(0177700), "<sLw", m68000up },
  3119. {"moveml", 4, one(0046300), one(0177700), "<s#w", m68000up },
  3120. /* FIXME: need specifier for mode 2 and 5 to simplify below insn patterns. */
  3121. {"moveml", 4, one(0044320), one(0177770), "Lwas", mcfisa_a },
  3122. {"moveml", 4, one(0044320), one(0177770), "#was", mcfisa_a },
  3123. {"moveml", 4, one(0044350), one(0177770), "Lwds", mcfisa_a },
  3124. {"moveml", 4, one(0044350), one(0177770), "#wds", mcfisa_a },
  3125. {"moveml", 4, one(0046320), one(0177770), "asLw", mcfisa_a },
  3126. {"moveml", 4, one(0046320), one(0177770), "as#w", mcfisa_a },
  3127. {"moveml", 4, one(0046350), one(0177770), "dsLw", mcfisa_a },
  3128. {"moveml", 4, one(0046350), one(0177770), "ds#w", mcfisa_a },
  3129. {"movepw", 2, one(0000410), one(0170770), "dsDd", m68000up },
  3130. {"movepw", 2, one(0000610), one(0170770), "Ddds", m68000up },
  3131. {"movepl", 2, one(0000510), one(0170770), "dsDd", m68000up },
  3132. {"movepl", 2, one(0000710), one(0170770), "Ddds", m68000up },
  3133. {"moveq", 2, one(0070000), one(0170400), "MsDd", m68000up | mcfisa_a },
  3134. {"moveq", 2, one(0070000), one(0170400), "#BDd", m68000up | mcfisa_a },
  3135. /* The move opcode can generate the movea and moveq instructions. */
  3136. {"moveb", 2, one(0010000), one(0170000), ";b$d", m68000up },
  3137. {"moveb", 2, one(0010000), one(0170070), "Ds$d", mcfisa_a },
  3138. {"moveb", 2, one(0010020), one(0170070), "as$d", mcfisa_a },
  3139. {"moveb", 2, one(0010030), one(0170070), "+s$d", mcfisa_a },
  3140. {"moveb", 2, one(0010040), one(0170070), "-s$d", mcfisa_a },
  3141. {"moveb", 2, one(0010000), one(0170000), "nsqd", mcfisa_a },
  3142. {"moveb", 2, one(0010000), one(0170700), "obDd", mcfisa_a },
  3143. {"moveb", 2, one(0010200), one(0170700), "obad", mcfisa_a },
  3144. {"moveb", 2, one(0010300), one(0170700), "ob+d", mcfisa_a },
  3145. {"moveb", 2, one(0010400), one(0170700), "ob-d", mcfisa_a },
  3146. {"moveb", 2, one(0010000), one(0170000), "obnd", mcfisa_b },
  3147. {"movew", 2, one(0030000), one(0170000), "*w%d", m68000up },
  3148. {"movew", 2, one(0030000), one(0170000), "ms%d", mcfisa_a },
  3149. {"movew", 2, one(0030000), one(0170000), "nspd", mcfisa_a },
  3150. {"movew", 2, one(0030000), one(0170000), "owmd", mcfisa_a },
  3151. {"movew", 2, one(0030000), one(0170000), "ownd", mcfisa_b },
  3152. {"movew", 2, one(0040300), one(0177700), "Ss$s", m68000up },
  3153. {"movew", 2, one(0040300), one(0177770), "SsDs", mcfisa_a },
  3154. {"movew", 2, one(0041300), one(0177700), "Cs$s", m68010up },
  3155. {"movew", 2, one(0041300), one(0177770), "CsDs", mcfisa_a },
  3156. {"movew", 2, one(0042300), one(0177700), ";wCd", m68000up },
  3157. {"movew", 2, one(0042300), one(0177700), "DsCd", mcfisa_a },
  3158. {"movew", 4, one(0042374), one(0177777), "#wCd", mcfisa_a },
  3159. {"movew", 2, one(0043300), one(0177700), ";wSd", m68000up },
  3160. {"movew", 2, one(0043300), one(0177700), "DsSd", mcfisa_a },
  3161. {"movew", 4, one(0043374), one(0177777), "#wSd", mcfisa_a },
  3162. {"movel", 2, one(0070000), one(0170400), "MsDd", m68000up | mcfisa_a },
  3163. {"movel", 2, one(0020000), one(0170000), "*l%d", m68000up },
  3164. {"movel", 2, one(0020000), one(0170000), "ms%d", mcfisa_a },
  3165. {"movel", 2, one(0020000), one(0170000), "nspd", mcfisa_a },
  3166. {"movel", 2, one(0020000), one(0170000), "olmd", mcfisa_a },
  3167. {"movel", 2, one(0020000), one(0170000), "olnd", mcfisa_b },
  3168. {"movel", 2, one(0047140), one(0177770), "AsUd", m68000up | mcfusp },
  3169. {"movel", 2, one(0047150), one(0177770), "UdAs", m68000up | mcfusp },
  3170. {"movel", 2, one(0120600), one(0177760), "EsRs", mcfmac },
  3171. {"movel", 2, one(0120400), one(0177760), "RsEs", mcfmac },
  3172. {"movel", 6, one(0120474), one(0177777), "#lEs", mcfmac },
  3173. {"movel", 2, one(0124600), one(0177760), "GsRs", mcfmac },
  3174. {"movel", 2, one(0124400), one(0177760), "RsGs", mcfmac },
  3175. {"movel", 6, one(0124474), one(0177777), "#lGs", mcfmac },
  3176. {"movel", 2, one(0126600), one(0177760), "HsRs", mcfmac },
  3177. {"movel", 2, one(0126400), one(0177760), "RsHs", mcfmac },
  3178. {"movel", 6, one(0126474), one(0177777), "#lHs", mcfmac },
  3179. {"movel", 2, one(0124700), one(0177777), "GsCs", mcfmac },
  3180. {"movel", 2, one(0xa180), one(0xf9f0), "eFRs", mcfemac }, /* ACCx,Rx. */
  3181. {"movel", 2, one(0xab80), one(0xfbf0), "g]Rs", mcfemac }, /* ACCEXTx,Rx. */
  3182. {"movel", 2, one(0xa980), one(0xfff0), "G-Rs", mcfemac }, /* macsr,Rx. */
  3183. {"movel", 2, one(0xad80), one(0xfff0), "H-Rs", mcfemac }, /* mask,Rx. */
  3184. {"movel", 2, one(0xa110), one(0xf9fc), "efeF", mcfemac }, /* ACCy,ACCx. */
  3185. {"movel", 2, one(0xa9c0), one(0xffff), "G-C-", mcfemac }, /* macsr,ccr. */
  3186. {"movel", 2, one(0xa100), one(0xf9f0), "RseF", mcfemac }, /* Rx,ACCx. */
  3187. {"movel", 6, one(0xa13c), one(0xf9ff), "#leF", mcfemac }, /* #,ACCx. */
  3188. {"movel", 2, one(0xab00), one(0xfbc0), "Rsg]", mcfemac }, /* Rx,ACCEXTx. */
  3189. {"movel", 6, one(0xab3c), one(0xfbff), "#lg]", mcfemac }, /* #,ACCEXTx. */
  3190. {"movel", 2, one(0xa900), one(0xffc0), "RsG-", mcfemac }, /* Rx,macsr. */
  3191. {"movel", 6, one(0xa93c), one(0xffff), "#lG-", mcfemac }, /* #,macsr. */
  3192. {"movel", 2, one(0xad00), one(0xffc0), "RsH-", mcfemac }, /* Rx,mask. */
  3193. {"movel", 6, one(0xad3c), one(0xffff), "#lH-", mcfemac }, /* #,mask. */
  3194. {"move", 2, one(0030000), one(0170000), "*w%d", m68000up },
  3195. {"move", 2, one(0030000), one(0170000), "ms%d", mcfisa_a },
  3196. {"move", 2, one(0030000), one(0170000), "nspd", mcfisa_a },
  3197. {"move", 2, one(0030000), one(0170000), "owmd", mcfisa_a },
  3198. {"move", 2, one(0030000), one(0170000), "ownd", mcfisa_b },
  3199. {"move", 2, one(0040300), one(0177700), "Ss$s", m68000up },
  3200. {"move", 2, one(0040300), one(0177770), "SsDs", mcfisa_a },
  3201. {"move", 2, one(0041300), one(0177700), "Cs$s", m68010up },
  3202. {"move", 2, one(0041300), one(0177770), "CsDs", mcfisa_a },
  3203. {"move", 2, one(0042300), one(0177700), ";wCd", m68000up },
  3204. {"move", 2, one(0042300), one(0177700), "DsCd", mcfisa_a },
  3205. {"move", 4, one(0042374), one(0177777), "#wCd", mcfisa_a },
  3206. {"move", 2, one(0043300), one(0177700), ";wSd", m68000up },
  3207. {"move", 2, one(0043300), one(0177700), "DsSd", mcfisa_a },
  3208. {"move", 4, one(0043374), one(0177777), "#wSd", mcfisa_a },
  3209. {"move", 2, one(0047140), one(0177770), "AsUd", m68000up },
  3210. {"move", 2, one(0047150), one(0177770), "UdAs", m68000up },
  3211. {"mov3ql", 2, one(0120500), one(0170700), "xd%s", mcfisa_b },
  3212. {"mvsb", 2, one(0070400), one(0170700), "*bDd", mcfisa_b },
  3213. {"mvsw", 2, one(0070500), one(0170700), "*wDd", mcfisa_b },
  3214. {"mvzb", 2, one(0070600), one(0170700), "*bDd", mcfisa_b },
  3215. {"mvzw", 2, one(0070700), one(0170700), "*wDd", mcfisa_b },
  3216. {"movesb", 4, two(0007000, 0), two(0177700, 07777), "~sR1", m68010up },
  3217. {"movesb", 4, two(0007000, 04000), two(0177700, 07777), "R1~s", m68010up },
  3218. {"movesw", 4, two(0007100, 0), two(0177700, 07777), "~sR1", m68010up },
  3219. {"movesw", 4, two(0007100, 04000), two(0177700, 07777), "R1~s", m68010up },
  3220. {"movesl", 4, two(0007200, 0), two(0177700, 07777), "~sR1", m68010up },
  3221. {"movesl", 4, two(0007200, 04000), two(0177700, 07777), "R1~s", m68010up },
  3222. {"move16", 4, two(0xf620, 0x8000), two(0xfff8, 0x8fff), "+s+1", m68040up },
  3223. {"move16", 2, one(0xf600), one(0xfff8), "+s_L", m68040up },
  3224. {"move16", 2, one(0xf608), one(0xfff8), "_L+s", m68040up },
  3225. {"move16", 2, one(0xf610), one(0xfff8), "as_L", m68040up },
  3226. {"move16", 2, one(0xf618), one(0xfff8), "_Las", m68040up },
  3227. {"msacw", 4, two(0xa080, 0x0100), two(0xf180, 0x0910), "uNuoiI4/Rn", mcfmac },
  3228. {"msacw", 4, two(0xa080, 0x0300), two(0xf180, 0x0910), "uNuoMh4/Rn", mcfmac },
  3229. {"msacw", 4, two(0xa080, 0x0100), two(0xf180, 0x0f10), "uNuo4/Rn", mcfmac },
  3230. {"msacw", 4, two(0xa000, 0x0100), two(0xf1b0, 0x0900), "uMumiI", mcfmac },
  3231. {"msacw", 4, two(0xa000, 0x0300), two(0xf1b0, 0x0900), "uMumMh", mcfmac },
  3232. {"msacw", 4, two(0xa000, 0x0100), two(0xf1b0, 0x0f00), "uMum", mcfmac },
  3233. {"msacw", 4, two(0xa000, 0x0100), two(0xf100, 0x0900), "uMumiI4/RneG", mcfemac },/* Ry,Rx,SF,<ea>,accX. */
  3234. {"msacw", 4, two(0xa000, 0x0300), two(0xf100, 0x0900), "uMumMh4/RneG", mcfemac },/* Ry,Rx,+1/-1,<ea>,accX. */
  3235. {"msacw", 4, two(0xa000, 0x0100), two(0xf100, 0x0f00), "uMum4/RneG", mcfemac },/* Ry,Rx,<ea>,accX. */
  3236. {"msacw", 4, two(0xa000, 0x0100), two(0xf130, 0x0900), "uMumiIeH", mcfemac },/* Ry,Rx,SF,accX. */
  3237. {"msacw", 4, two(0xa000, 0x0300), two(0xf130, 0x0900), "uMumMheH", mcfemac },/* Ry,Rx,+1/-1,accX. */
  3238. {"msacw", 4, two(0xa000, 0x0100), two(0xf130, 0x0f00), "uMumeH", mcfemac }, /* Ry,Rx,accX. */
  3239. {"msacl", 4, two(0xa080, 0x0900), two(0xf180, 0x0910), "RNRoiI4/Rn", mcfmac },
  3240. {"msacl", 4, two(0xa080, 0x0b00), two(0xf180, 0x0910), "RNRoMh4/Rn", mcfmac },
  3241. {"msacl", 4, two(0xa080, 0x0900), two(0xf180, 0x0f10), "RNRo4/Rn", mcfmac },
  3242. {"msacl", 4, two(0xa000, 0x0900), two(0xf1b0, 0x0b00), "RMRmiI", mcfmac },
  3243. {"msacl", 4, two(0xa000, 0x0b00), two(0xf1b0, 0x0b00), "RMRmMh", mcfmac },
  3244. {"msacl", 4, two(0xa000, 0x0900), two(0xf1b0, 0x0800), "RMRm", mcfmac },
  3245. {"msacl", 4, two(0xa000, 0x0900), two(0xf100, 0x0900), "R3R1iI4/RneG", mcfemac },
  3246. {"msacl", 4, two(0xa000, 0x0b00), two(0xf100, 0x0900), "R3R1Mh4/RneG", mcfemac },
  3247. {"msacl", 4, two(0xa000, 0x0900), two(0xf100, 0x0f00), "R3R14/RneG", mcfemac },
  3248. {"msacl", 4, two(0xa000, 0x0900), two(0xf130, 0x0900), "RMRmiIeH", mcfemac },
  3249. {"msacl", 4, two(0xa000, 0x0b00), two(0xf130, 0x0900), "RMRmMheH", mcfemac },
  3250. {"msacl", 4, two(0xa000, 0x0900), two(0xf130, 0x0f00), "RMRmeH", mcfemac },
  3251. {"mulsw", 2, one(0140700), one(0170700), ";wDd", m68000up|mcfisa_a },
  3252. {"mulsl", 4, two(0046000,004000), two(0177700,0107770), ";lD1", m68020up|cpu32 },
  3253. {"mulsl", 4, two(0046000,004000), two(0177700,0107770), "qsD1", mcfisa_a },
  3254. {"mulsl", 4, two(0046000,006000), two(0177700,0107770), ";lD3D1",m68020up|cpu32 },
  3255. {"muluw", 2, one(0140300), one(0170700), ";wDd", m68000up|mcfisa_a },
  3256. {"mulul", 4, two(0046000,000000), two(0177700,0107770), ";lD1", m68020up|cpu32 },
  3257. {"mulul", 4, two(0046000,000000), two(0177700,0107770), "qsD1", mcfisa_a },
  3258. {"mulul", 4, two(0046000,002000), two(0177700,0107770), ";lD3D1",m68020up|cpu32 },
  3259. {"nbcd", 2, one(0044000), one(0177700), "$s", m68000up },
  3260. {"negb", 2, one(0042000), one(0177700), "$s", m68000up },
  3261. {"negw", 2, one(0042100), one(0177700), "$s", m68000up },
  3262. {"negl", 2, one(0042200), one(0177700), "$s", m68000up },
  3263. {"negl", 2, one(0042200), one(0177700), "Ds", mcfisa_a},
  3264. {"negxb", 2, one(0040000), one(0177700), "$s", m68000up },
  3265. {"negxw", 2, one(0040100), one(0177700), "$s", m68000up },
  3266. {"negxl", 2, one(0040200), one(0177700), "$s", m68000up },
  3267. {"negxl", 2, one(0040200), one(0177700), "Ds", mcfisa_a},
  3268. {"nop", 2, one(0047161), one(0177777), "", m68000up | mcfisa_a},
  3269. {"notb", 2, one(0043000), one(0177700), "$s", m68000up },
  3270. {"notw", 2, one(0043100), one(0177700), "$s", m68000up },
  3271. {"notl", 2, one(0043200), one(0177700), "$s", m68000up },
  3272. {"notl", 2, one(0043200), one(0177700), "Ds", mcfisa_a},
  3273. {"orib", 4, one(0000000), one(0177700), "#b$s", m68000up },
  3274. {"orib", 4, one(0000074), one(0177777), "#bCs", m68000up },
  3275. {"oriw", 4, one(0000100), one(0177700), "#w$s", m68000up },
  3276. {"oriw", 4, one(0000174), one(0177777), "#wSs", m68000up },
  3277. {"oril", 6, one(0000200), one(0177700), "#l$s", m68000up },
  3278. {"oril", 6, one(0000200), one(0177700), "#lDs", mcfisa_a },
  3279. {"ori", 4, one(0000074), one(0177777), "#bCs", m68000up },
  3280. {"ori", 4, one(0000100), one(0177700), "#w$s", m68000up },
  3281. {"ori", 4, one(0000174), one(0177777), "#wSs", m68000up },
  3282. /* The or opcode can generate the ori instruction. */
  3283. {"orb", 4, one(0000000), one(0177700), "#b$s", m68000up },
  3284. {"orb", 4, one(0000074), one(0177777), "#bCs", m68000up },
  3285. {"orb", 2, one(0100000), one(0170700), ";bDd", m68000up },
  3286. {"orb", 2, one(0100400), one(0170700), "Dd~s", m68000up },
  3287. {"orw", 4, one(0000100), one(0177700), "#w$s", m68000up },
  3288. {"orw", 4, one(0000174), one(0177777), "#wSs", m68000up },
  3289. {"orw", 2, one(0100100), one(0170700), ";wDd", m68000up },
  3290. {"orw", 2, one(0100500), one(0170700), "Dd~s", m68000up },
  3291. {"orl", 6, one(0000200), one(0177700), "#l$s", m68000up },
  3292. {"orl", 6, one(0000200), one(0177700), "#lDs", mcfisa_a },
  3293. {"orl", 2, one(0100200), one(0170700), ";lDd", m68000up | mcfisa_a },
  3294. {"orl", 2, one(0100600), one(0170700), "Dd~s", m68000up | mcfisa_a },
  3295. {"or", 4, one(0000074), one(0177777), "#bCs", m68000up },
  3296. {"or", 4, one(0000100), one(0177700), "#w$s", m68000up },
  3297. {"or", 4, one(0000174), one(0177777), "#wSs", m68000up },
  3298. {"or", 2, one(0100100), one(0170700), ";wDd", m68000up },
  3299. {"or", 2, one(0100500), one(0170700), "Dd~s", m68000up },
  3300. {"pack", 4, one(0100500), one(0170770), "DsDd#w", m68020up },
  3301. {"pack", 4, one(0100510), one(0170770), "-s-d#w", m68020up },
  3302. {"pbac", 2, one(0xf087), one(0xffbf), "Bc", m68851 },
  3303. {"pbacw", 2, one(0xf087), one(0xffff), "BW", m68851 },
  3304. {"pbas", 2, one(0xf086), one(0xffbf), "Bc", m68851 },
  3305. {"pbasw", 2, one(0xf086), one(0xffff), "BW", m68851 },
  3306. {"pbbc", 2, one(0xf081), one(0xffbf), "Bc", m68851 },
  3307. {"pbbcw", 2, one(0xf081), one(0xffff), "BW", m68851 },
  3308. {"pbbs", 2, one(0xf080), one(0xffbf), "Bc", m68851 },
  3309. {"pbbsw", 2, one(0xf080), one(0xffff), "BW", m68851 },
  3310. {"pbcc", 2, one(0xf08f), one(0xffbf), "Bc", m68851 },
  3311. {"pbccw", 2, one(0xf08f), one(0xffff), "BW", m68851 },
  3312. {"pbcs", 2, one(0xf08e), one(0xffbf), "Bc", m68851 },
  3313. {"pbcsw", 2, one(0xf08e), one(0xffff), "BW", m68851 },
  3314. {"pbgc", 2, one(0xf08d), one(0xffbf), "Bc", m68851 },
  3315. {"pbgcw", 2, one(0xf08d), one(0xffff), "BW", m68851 },
  3316. {"pbgs", 2, one(0xf08c), one(0xffbf), "Bc", m68851 },
  3317. {"pbgsw", 2, one(0xf08c), one(0xffff), "BW", m68851 },
  3318. {"pbic", 2, one(0xf08b), one(0xffbf), "Bc", m68851 },
  3319. {"pbicw", 2, one(0xf08b), one(0xffff), "BW", m68851 },
  3320. {"pbis", 2, one(0xf08a), one(0xffbf), "Bc", m68851 },
  3321. {"pbisw", 2, one(0xf08a), one(0xffff), "BW", m68851 },
  3322. {"pblc", 2, one(0xf083), one(0xffbf), "Bc", m68851 },
  3323. {"pblcw", 2, one(0xf083), one(0xffff), "BW", m68851 },
  3324. {"pbls", 2, one(0xf082), one(0xffbf), "Bc", m68851 },
  3325. {"pblsw", 2, one(0xf082), one(0xffff), "BW", m68851 },
  3326. {"pbsc", 2, one(0xf085), one(0xffbf), "Bc", m68851 },
  3327. {"pbscw", 2, one(0xf085), one(0xffff), "BW", m68851 },
  3328. {"pbss", 2, one(0xf084), one(0xffbf), "Bc", m68851 },
  3329. {"pbssw", 2, one(0xf084), one(0xffff), "BW", m68851 },
  3330. {"pbwc", 2, one(0xf089), one(0xffbf), "Bc", m68851 },
  3331. {"pbwcw", 2, one(0xf089), one(0xffff), "BW", m68851 },
  3332. {"pbws", 2, one(0xf088), one(0xffbf), "Bc", m68851 },
  3333. {"pbwsw", 2, one(0xf088), one(0xffff), "BW", m68851 },
  3334. {"pdbac", 4, two(0xf048, 0x0007), two(0xfff8, 0xffff), "DsBw", m68851 },
  3335. {"pdbas", 4, two(0xf048, 0x0006), two(0xfff8, 0xffff), "DsBw", m68851 },
  3336. {"pdbbc", 4, two(0xf048, 0x0001), two(0xfff8, 0xffff), "DsBw", m68851 },
  3337. {"pdbbs", 4, two(0xf048, 0x0000), two(0xfff8, 0xffff), "DsBw", m68851 },
  3338. {"pdbcc", 4, two(0xf048, 0x000f), two(0xfff8, 0xffff), "DsBw", m68851 },
  3339. {"pdbcs", 4, two(0xf048, 0x000e), two(0xfff8, 0xffff), "DsBw", m68851 },
  3340. {"pdbgc", 4, two(0xf048, 0x000d), two(0xfff8, 0xffff), "DsBw", m68851 },
  3341. {"pdbgs", 4, two(0xf048, 0x000c), two(0xfff8, 0xffff), "DsBw", m68851 },
  3342. {"pdbic", 4, two(0xf048, 0x000b), two(0xfff8, 0xffff), "DsBw", m68851 },
  3343. {"pdbis", 4, two(0xf048, 0x000a), two(0xfff8, 0xffff), "DsBw", m68851 },
  3344. {"pdblc", 4, two(0xf048, 0x0003), two(0xfff8, 0xffff), "DsBw", m68851 },
  3345. {"pdbls", 4, two(0xf048, 0x0002), two(0xfff8, 0xffff), "DsBw", m68851 },
  3346. {"pdbsc", 4, two(0xf048, 0x0005), two(0xfff8, 0xffff), "DsBw", m68851 },
  3347. {"pdbss", 4, two(0xf048, 0x0004), two(0xfff8, 0xffff), "DsBw", m68851 },
  3348. {"pdbwc", 4, two(0xf048, 0x0009), two(0xfff8, 0xffff), "DsBw", m68851 },
  3349. {"pdbws", 4, two(0xf048, 0x0008), two(0xfff8, 0xffff), "DsBw", m68851 },
  3350. {"pea", 2, one(0044100), one(0177700), "!s", m68000up|mcfisa_a },
  3351. {"pflusha", 2, one(0xf518), one(0xfff8), "", m68040up },
  3352. {"pflusha", 4, two(0xf000,0x2400), two(0xffff,0xffff), "", m68030 | m68851 },
  3353. {"pflush", 4, two(0xf000,0x3010), two(0xffc0,0xfe10), "T3T9", m68030|m68851 },
  3354. {"pflush", 4, two(0xf000,0x3810), two(0xffc0,0xfe10), "T3T9&s", m68030|m68851 },
  3355. {"pflush", 4, two(0xf000,0x3008), two(0xffc0,0xfe18), "D3T9", m68030|m68851 },
  3356. {"pflush", 4, two(0xf000,0x3808), two(0xffc0,0xfe18), "D3T9&s", m68030|m68851 },
  3357. {"pflush", 4, two(0xf000,0x3000), two(0xffc0,0xfe1e), "f3T9", m68030|m68851 },
  3358. {"pflush", 4, two(0xf000,0x3800), two(0xffc0,0xfe1e), "f3T9&s", m68030|m68851 },
  3359. {"pflush", 2, one(0xf508), one(0xfff8), "as", m68040up },
  3360. {"pflush", 2, one(0xf508), one(0xfff8), "As", m68040up },
  3361. {"pflushan", 2, one(0xf510), one(0xfff8), "", m68040up },
  3362. {"pflushn", 2, one(0xf500), one(0xfff8), "as", m68040up },
  3363. {"pflushn", 2, one(0xf500), one(0xfff8), "As", m68040up },
  3364. {"pflushr", 4, two(0xf000, 0xa000), two(0xffc0, 0xffff), "|s", m68851 },
  3365. {"pflushs", 4, two(0xf000, 0x3410), two(0xfff8, 0xfe10), "T3T9", m68851 },
  3366. {"pflushs", 4, two(0xf000, 0x3c10), two(0xfff8, 0xfe10), "T3T9&s", m68851 },
  3367. {"pflushs", 4, two(0xf000, 0x3408), two(0xfff8, 0xfe18), "D3T9", m68851 },
  3368. {"pflushs", 4, two(0xf000, 0x3c08), two(0xfff8, 0xfe18), "D3T9&s", m68851 },
  3369. {"pflushs", 4, two(0xf000, 0x3400), two(0xfff8, 0xfe1e), "f3T9", m68851 },
  3370. {"pflushs", 4, two(0xf000, 0x3c00), two(0xfff8, 0xfe1e), "f3T9&s", m68851 },
  3371. {"ploadr", 4, two(0xf000,0x2210), two(0xffc0,0xfff0), "T3&s", m68030|m68851 },
  3372. {"ploadr", 4, two(0xf000,0x2208), two(0xffc0,0xfff8), "D3&s", m68030|m68851 },
  3373. {"ploadr", 4, two(0xf000,0x2200), two(0xffc0,0xfffe), "f3&s", m68030|m68851 },
  3374. {"ploadw", 4, two(0xf000,0x2010), two(0xffc0,0xfff0), "T3&s", m68030|m68851 },
  3375. {"ploadw", 4, two(0xf000,0x2008), two(0xffc0,0xfff8), "D3&s", m68030|m68851 },
  3376. {"ploadw", 4, two(0xf000,0x2000), two(0xffc0,0xfffe), "f3&s", m68030|m68851 },
  3377. {"plpar", 2, one(0xf5c8), one(0xfff8), "as", m68060 },
  3378. {"plpaw", 2, one(0xf588), one(0xfff8), "as", m68060 },
  3379. {"pmove", 4, two(0xf000,0x4000), two(0xffc0,0xffff), "*l08", m68030|m68851 },
  3380. {"pmove", 4, two(0xf000,0x5c00), two(0xffc0,0xffff), "*w18", m68851 },
  3381. {"pmove", 4, two(0xf000,0x4000), two(0xffc0,0xe3ff), "*b28", m68851 },
  3382. {"pmove", 4, two(0xf000,0x4200), two(0xffc0,0xffff), "08%s", m68030|m68851 },
  3383. {"pmove", 4, two(0xf000,0x5e00), two(0xffc0,0xffff), "18%s", m68851 },
  3384. {"pmove", 4, two(0xf000,0x4200), two(0xffc0,0xe3ff), "28%s", m68851 },
  3385. {"pmove", 4, two(0xf000,0x4000), two(0xffc0,0xe3ff), "|sW8", m68030|m68851 },
  3386. {"pmove", 4, two(0xf000,0x4200), two(0xffc0,0xe3ff), "W8~s", m68030|m68851 },
  3387. {"pmove", 4, two(0xf000,0x6200), two(0xffc0,0xe3e3), "*wX3", m68851 },
  3388. {"pmove", 4, two(0xf000,0x6000), two(0xffc0,0xe3e3), "X3%s", m68851 },
  3389. {"pmove", 4, two(0xf000,0x6000), two(0xffc0,0xffff), "*wY8", m68030|m68851 },
  3390. {"pmove", 4, two(0xf000,0x6200), two(0xffc0,0xffff), "Y8%s", m68030|m68851 },
  3391. {"pmove", 4, two(0xf000,0x6600), two(0xffc0,0xffff), "Z8%s", m68851 },
  3392. {"pmove", 4, two(0xf000,0x0800), two(0xffc0,0xfbff), "*l38", m68030 },
  3393. {"pmove", 4, two(0xf000,0x0a00), two(0xffc0,0xfbff), "38%s", m68030 },
  3394. {"pmovefd", 4, two(0xf000, 0x4100), two(0xffc0, 0xe3ff), "*l08", m68030 },
  3395. {"pmovefd", 4, two(0xf000, 0x4100), two(0xffc0, 0xe3ff), "|sW8", m68030 },
  3396. {"pmovefd", 4, two(0xf000, 0x0900), two(0xffc0, 0xfbff), "*l38", m68030 },
  3397. {"prestore", 2, one(0xf140), one(0xffc0), "<s", m68851 },
  3398. {"psave", 2, one(0xf100), one(0xffc0), ">s", m68851 },
  3399. {"psac", 4, two(0xf040, 0x0007), two(0xffc0, 0xffff), "$s", m68851 },
  3400. {"psas", 4, two(0xf040, 0x0006), two(0xffc0, 0xffff), "$s", m68851 },
  3401. {"psbc", 4, two(0xf040, 0x0001), two(0xffc0, 0xffff), "$s", m68851 },
  3402. {"psbs", 4, two(0xf040, 0x0000), two(0xffc0, 0xffff), "$s", m68851 },
  3403. {"pscc", 4, two(0xf040, 0x000f), two(0xffc0, 0xffff), "$s", m68851 },
  3404. {"pscs", 4, two(0xf040, 0x000e), two(0xffc0, 0xffff), "$s", m68851 },
  3405. {"psgc", 4, two(0xf040, 0x000d), two(0xffc0, 0xffff), "$s", m68851 },
  3406. {"psgs", 4, two(0xf040, 0x000c), two(0xffc0, 0xffff), "$s", m68851 },
  3407. {"psic", 4, two(0xf040, 0x000b), two(0xffc0, 0xffff), "$s", m68851 },
  3408. {"psis", 4, two(0xf040, 0x000a), two(0xffc0, 0xffff), "$s", m68851 },
  3409. {"pslc", 4, two(0xf040, 0x0003), two(0xffc0, 0xffff), "$s", m68851 },
  3410. {"psls", 4, two(0xf040, 0x0002), two(0xffc0, 0xffff), "$s", m68851 },
  3411. {"pssc", 4, two(0xf040, 0x0005), two(0xffc0, 0xffff), "$s", m68851 },
  3412. {"psss", 4, two(0xf040, 0x0004), two(0xffc0, 0xffff), "$s", m68851 },
  3413. {"pswc", 4, two(0xf040, 0x0009), two(0xffc0, 0xffff), "$s", m68851 },
  3414. {"psws", 4, two(0xf040, 0x0008), two(0xffc0, 0xffff), "$s", m68851 },
  3415. {"ptestr", 4, two(0xf000,0x8210), two(0xffc0, 0xe3f0), "T3&st8", m68030|m68851 },
  3416. {"ptestr", 4, two(0xf000,0x8310), two(0xffc0,0xe310), "T3&st8A9", m68030|m68851 },
  3417. {"ptestr", 4, two(0xf000,0x8208), two(0xffc0,0xe3f8), "D3&st8", m68030|m68851 },
  3418. {"ptestr", 4, two(0xf000,0x8308), two(0xffc0,0xe318), "D3&st8A9", m68030|m68851 },
  3419. {"ptestr", 4, two(0xf000,0x8200), two(0xffc0,0xe3fe), "f3&st8", m68030|m68851 },
  3420. {"ptestr", 4, two(0xf000,0x8300), two(0xffc0,0xe31e), "f3&st8A9", m68030|m68851 },
  3421. {"ptestr", 2, one(0xf568), one(0xfff8), "as", m68040 },
  3422. {"ptestw", 4, two(0xf000,0x8010), two(0xffc0,0xe3f0), "T3&st8", m68030|m68851 },
  3423. {"ptestw", 4, two(0xf000,0x8110), two(0xffc0,0xe310), "T3&st8A9", m68030|m68851 },
  3424. {"ptestw", 4, two(0xf000,0x8008), two(0xffc0,0xe3f8), "D3&st8", m68030|m68851 },
  3425. {"ptestw", 4, two(0xf000,0x8108), two(0xffc0,0xe318), "D3&st8A9", m68030|m68851 },
  3426. {"ptestw", 4, two(0xf000,0x8000), two(0xffc0,0xe3fe), "f3&st8", m68030|m68851 },
  3427. {"ptestw", 4, two(0xf000,0x8100), two(0xffc0,0xe31e), "f3&st8A9", m68030|m68851 },
  3428. {"ptestw", 2, one(0xf548), one(0xfff8), "as", m68040 },
  3429. {"ptrapacw", 6, two(0xf07a, 0x0007), two(0xffff, 0xffff), "#w", m68851 },
  3430. {"ptrapacl", 6, two(0xf07b, 0x0007), two(0xffff, 0xffff), "#l", m68851 },
  3431. {"ptrapac", 4, two(0xf07c, 0x0007), two(0xffff, 0xffff), "", m68851 },
  3432. {"ptrapasw", 6, two(0xf07a, 0x0006), two(0xffff, 0xffff), "#w", m68851 },
  3433. {"ptrapasl", 6, two(0xf07b, 0x0006), two(0xffff, 0xffff), "#l", m68851 },
  3434. {"ptrapas", 4, two(0xf07c, 0x0006), two(0xffff, 0xffff), "", m68851 },
  3435. {"ptrapbcw", 6, two(0xf07a, 0x0001), two(0xffff, 0xffff), "#w", m68851 },
  3436. {"ptrapbcl", 6, two(0xf07b, 0x0001), two(0xffff, 0xffff), "#l", m68851 },
  3437. {"ptrapbc", 4, two(0xf07c, 0x0001), two(0xffff, 0xffff), "", m68851 },
  3438. {"ptrapbsw", 6, two(0xf07a, 0x0000), two(0xffff, 0xffff), "#w", m68851 },
  3439. {"ptrapbsl", 6, two(0xf07b, 0x0000), two(0xffff, 0xffff), "#l", m68851 },
  3440. {"ptrapbs", 4, two(0xf07c, 0x0000), two(0xffff, 0xffff), "", m68851 },
  3441. {"ptrapccw", 6, two(0xf07a, 0x000f), two(0xffff, 0xffff), "#w", m68851 },
  3442. {"ptrapccl", 6, two(0xf07b, 0x000f), two(0xffff, 0xffff), "#l", m68851 },
  3443. {"ptrapcc", 4, two(0xf07c, 0x000f), two(0xffff, 0xffff), "", m68851 },
  3444. {"ptrapcsw", 6, two(0xf07a, 0x000e), two(0xffff, 0xffff), "#w", m68851 },
  3445. {"ptrapcsl", 6, two(0xf07b, 0x000e), two(0xffff, 0xffff), "#l", m68851 },
  3446. {"ptrapcs", 4, two(0xf07c, 0x000e), two(0xffff, 0xffff), "", m68851 },
  3447. {"ptrapgcw", 6, two(0xf07a, 0x000d), two(0xffff, 0xffff), "#w", m68851 },
  3448. {"ptrapgcl", 6, two(0xf07b, 0x000d), two(0xffff, 0xffff), "#l", m68851 },
  3449. {"ptrapgc", 4, two(0xf07c, 0x000d), two(0xffff, 0xffff), "", m68851 },
  3450. {"ptrapgsw", 6, two(0xf07a, 0x000c), two(0xffff, 0xffff), "#w", m68851 },
  3451. {"ptrapgsl", 6, two(0xf07b, 0x000c), two(0xffff, 0xffff), "#l", m68851 },
  3452. {"ptrapgs", 4, two(0xf07c, 0x000c), two(0xffff, 0xffff), "", m68851 },
  3453. {"ptrapicw", 6, two(0xf07a, 0x000b), two(0xffff, 0xffff), "#w", m68851 },
  3454. {"ptrapicl", 6, two(0xf07b, 0x000b), two(0xffff, 0xffff), "#l", m68851 },
  3455. {"ptrapic", 4, two(0xf07c, 0x000b), two(0xffff, 0xffff), "", m68851 },
  3456. {"ptrapisw", 6, two(0xf07a, 0x000a), two(0xffff, 0xffff), "#w", m68851 },
  3457. {"ptrapisl", 6, two(0xf07b, 0x000a), two(0xffff, 0xffff), "#l", m68851 },
  3458. {"ptrapis", 4, two(0xf07c, 0x000a), two(0xffff, 0xffff), "", m68851 },
  3459. {"ptraplcw", 6, two(0xf07a, 0x0003), two(0xffff, 0xffff), "#w", m68851 },
  3460. {"ptraplcl", 6, two(0xf07b, 0x0003), two(0xffff, 0xffff), "#l", m68851 },
  3461. {"ptraplc", 4, two(0xf07c, 0x0003), two(0xffff, 0xffff), "", m68851 },
  3462. {"ptraplsw", 6, two(0xf07a, 0x0002), two(0xffff, 0xffff), "#w", m68851 },
  3463. {"ptraplsl", 6, two(0xf07b, 0x0002), two(0xffff, 0xffff), "#l", m68851 },
  3464. {"ptrapls", 4, two(0xf07c, 0x0002), two(0xffff, 0xffff), "", m68851 },
  3465. {"ptrapscw", 6, two(0xf07a, 0x0005), two(0xffff, 0xffff), "#w", m68851 },
  3466. {"ptrapscl", 6, two(0xf07b, 0x0005), two(0xffff, 0xffff), "#l", m68851 },
  3467. {"ptrapsc", 4, two(0xf07c, 0x0005), two(0xffff, 0xffff), "", m68851 },
  3468. {"ptrapssw", 6, two(0xf07a, 0x0004), two(0xffff, 0xffff), "#w", m68851 },
  3469. {"ptrapssl", 6, two(0xf07b, 0x0004), two(0xffff, 0xffff), "#l", m68851 },
  3470. {"ptrapss", 4, two(0xf07c, 0x0004), two(0xffff, 0xffff), "", m68851 },
  3471. {"ptrapwcw", 6, two(0xf07a, 0x0009), two(0xffff, 0xffff), "#w", m68851 },
  3472. {"ptrapwcl", 6, two(0xf07b, 0x0009), two(0xffff, 0xffff), "#l", m68851 },
  3473. {"ptrapwc", 4, two(0xf07c, 0x0009), two(0xffff, 0xffff), "", m68851 },
  3474. {"ptrapwsw", 6, two(0xf07a, 0x0008), two(0xffff, 0xffff), "#w", m68851 },
  3475. {"ptrapwsl", 6, two(0xf07b, 0x0008), two(0xffff, 0xffff), "#l", m68851 },
  3476. {"ptrapws", 4, two(0xf07c, 0x0008), two(0xffff, 0xffff), "", m68851 },
  3477. {"pulse", 2, one(0045314), one(0177777), "", m68060 | mcfisa_a },
  3478. {"pvalid", 4, two(0xf000, 0x2800), two(0xffc0, 0xffff), "Vs&s", m68851 },
  3479. {"pvalid", 4, two(0xf000, 0x2c00), two(0xffc0, 0xfff8), "A3&s", m68851 },
  3480. /* FIXME: don't allow Dw==Dx. */
  3481. {"remsl", 4, two(0x4c40, 0x0800), two(0xffc0, 0x8ff8), "qsD3D1", mcfhwdiv },
  3482. {"remul", 4, two(0x4c40, 0x0000), two(0xffc0, 0x8ff8), "qsD3D1", mcfhwdiv },
  3483. {"reset", 2, one(0047160), one(0177777), "", m68000up },
  3484. {"rolb", 2, one(0160430), one(0170770), "QdDs", m68000up },
  3485. {"rolb", 2, one(0160470), one(0170770), "DdDs", m68000up },
  3486. {"rolw", 2, one(0160530), one(0170770), "QdDs", m68000up },
  3487. {"rolw", 2, one(0160570), one(0170770), "DdDs", m68000up },
  3488. {"rolw", 2, one(0163700), one(0177700), "~s", m68000up },
  3489. {"roll", 2, one(0160630), one(0170770), "QdDs", m68000up },
  3490. {"roll", 2, one(0160670), one(0170770), "DdDs", m68000up },
  3491. {"rorb", 2, one(0160030), one(0170770), "QdDs", m68000up },
  3492. {"rorb", 2, one(0160070), one(0170770), "DdDs", m68000up },
  3493. {"rorw", 2, one(0160130), one(0170770), "QdDs", m68000up },
  3494. {"rorw", 2, one(0160170), one(0170770), "DdDs", m68000up },
  3495. {"rorw", 2, one(0163300), one(0177700), "~s", m68000up },
  3496. {"rorl", 2, one(0160230), one(0170770), "QdDs", m68000up },
  3497. {"rorl", 2, one(0160270), one(0170770), "DdDs", m68000up },
  3498. {"roxlb", 2, one(0160420), one(0170770), "QdDs", m68000up },
  3499. {"roxlb", 2, one(0160460), one(0170770), "DdDs", m68000up },
  3500. {"roxlw", 2, one(0160520), one(0170770), "QdDs", m68000up },
  3501. {"roxlw", 2, one(0160560), one(0170770), "DdDs", m68000up },
  3502. {"roxlw", 2, one(0162700), one(0177700), "~s", m68000up },
  3503. {"roxll", 2, one(0160620), one(0170770), "QdDs", m68000up },
  3504. {"roxll", 2, one(0160660), one(0170770), "DdDs", m68000up },
  3505. {"roxrb", 2, one(0160020), one(0170770), "QdDs", m68000up },
  3506. {"roxrb", 2, one(0160060), one(0170770), "DdDs", m68000up },
  3507. {"roxrw", 2, one(0160120), one(0170770), "QdDs", m68000up },
  3508. {"roxrw", 2, one(0160160), one(0170770), "DdDs", m68000up },
  3509. {"roxrw", 2, one(0162300), one(0177700), "~s", m68000up },
  3510. {"roxrl", 2, one(0160220), one(0170770), "QdDs", m68000up },
  3511. {"roxrl", 2, one(0160260), one(0170770), "DdDs", m68000up },
  3512. {"rtd", 4, one(0047164), one(0177777), "#w", m68010up },
  3513. {"rte", 2, one(0047163), one(0177777), "", m68000up | mcfisa_a },
  3514. {"rtm", 2, one(0003300), one(0177760), "Rs", m68020 },
  3515. {"rtr", 2, one(0047167), one(0177777), "", m68000up },
  3516. {"rts", 2, one(0047165), one(0177777), "", m68000up | mcfisa_a },
  3517. {"satsl", 2, one(0046200), one(0177770), "Ds", mcfisa_b },
  3518. {"sbcd", 2, one(0100400), one(0170770), "DsDd", m68000up },
  3519. {"sbcd", 2, one(0100410), one(0170770), "-s-d", m68000up },
  3520. {"scc", 2, one(0052300), one(0177700), "$s", m68000up },
  3521. {"scc", 2, one(0052300), one(0177700), "Ds", mcfisa_a },
  3522. {"scs", 2, one(0052700), one(0177700), "$s", m68000up },
  3523. {"scs", 2, one(0052700), one(0177700), "Ds", mcfisa_a },
  3524. {"seq", 2, one(0053700), one(0177700), "$s", m68000up },
  3525. {"seq", 2, one(0053700), one(0177700), "Ds", mcfisa_a },
  3526. {"sf", 2, one(0050700), one(0177700), "$s", m68000up },
  3527. {"sf", 2, one(0050700), one(0177700), "Ds", mcfisa_a },
  3528. {"sge", 2, one(0056300), one(0177700), "$s", m68000up },
  3529. {"sge", 2, one(0056300), one(0177700), "Ds", mcfisa_a },
  3530. {"sgt", 2, one(0057300), one(0177700), "$s", m68000up },
  3531. {"sgt", 2, one(0057300), one(0177700), "Ds", mcfisa_a },
  3532. {"shi", 2, one(0051300), one(0177700), "$s", m68000up },
  3533. {"shi", 2, one(0051300), one(0177700), "Ds", mcfisa_a },
  3534. {"sle", 2, one(0057700), one(0177700), "$s", m68000up },
  3535. {"sle", 2, one(0057700), one(0177700), "Ds", mcfisa_a },
  3536. {"sls", 2, one(0051700), one(0177700), "$s", m68000up },
  3537. {"sls", 2, one(0051700), one(0177700), "Ds", mcfisa_a },
  3538. {"slt", 2, one(0056700), one(0177700), "$s", m68000up },
  3539. {"slt", 2, one(0056700), one(0177700), "Ds", mcfisa_a },
  3540. {"smi", 2, one(0055700), one(0177700), "$s", m68000up },
  3541. {"smi", 2, one(0055700), one(0177700), "Ds", mcfisa_a },
  3542. {"sne", 2, one(0053300), one(0177700), "$s", m68000up },
  3543. {"sne", 2, one(0053300), one(0177700), "Ds", mcfisa_a },
  3544. {"spl", 2, one(0055300), one(0177700), "$s", m68000up },
  3545. {"spl", 2, one(0055300), one(0177700), "Ds", mcfisa_a },
  3546. {"st", 2, one(0050300), one(0177700), "$s", m68000up },
  3547. {"st", 2, one(0050300), one(0177700), "Ds", mcfisa_a },
  3548. {"svc", 2, one(0054300), one(0177700), "$s", m68000up },
  3549. {"svc", 2, one(0054300), one(0177700), "Ds", mcfisa_a },
  3550. {"svs", 2, one(0054700), one(0177700), "$s", m68000up },
  3551. {"svs", 2, one(0054700), one(0177700), "Ds", mcfisa_a },
  3552. {"stop", 4, one(0047162), one(0177777), "#w", m68000up | mcfisa_a },
  3553. {"strldsr", 4, two(0040347,0043374), two(0177777,0177777), "#w", mcfisa_aa},
  3554. {"subal", 2, one(0110700), one(0170700), "*lAd", m68000up | mcfisa_a },
  3555. {"subaw", 2, one(0110300), one(0170700), "*wAd", m68000up },
  3556. {"subib", 4, one(0002000), one(0177700), "#b$s", m68000up },
  3557. {"subiw", 4, one(0002100), one(0177700), "#w$s", m68000up },
  3558. {"subil", 6, one(0002200), one(0177700), "#l$s", m68000up },
  3559. {"subil", 6, one(0002200), one(0177700), "#lDs", mcfisa_a },
  3560. {"subqb", 2, one(0050400), one(0170700), "Qd%s", m68000up },
  3561. {"subqw", 2, one(0050500), one(0170700), "Qd%s", m68000up },
  3562. {"subql", 2, one(0050600), one(0170700), "Qd%s", m68000up | mcfisa_a },
  3563. /* The sub opcode can generate the suba, subi, and subq instructions. */
  3564. {"subb", 2, one(0050400), one(0170700), "Qd%s", m68000up },
  3565. {"subb", 4, one(0002000), one(0177700), "#b$s", m68000up },
  3566. {"subb", 2, one(0110000), one(0170700), ";bDd", m68000up },
  3567. {"subb", 2, one(0110400), one(0170700), "Dd~s", m68000up },
  3568. {"subw", 2, one(0050500), one(0170700), "Qd%s", m68000up },
  3569. {"subw", 4, one(0002100), one(0177700), "#w$s", m68000up },
  3570. {"subw", 2, one(0110300), one(0170700), "*wAd", m68000up },
  3571. {"subw", 2, one(0110100), one(0170700), "*wDd", m68000up },
  3572. {"subw", 2, one(0110500), one(0170700), "Dd~s", m68000up },
  3573. {"subl", 2, one(0050600), one(0170700), "Qd%s", m68000up | mcfisa_a },
  3574. {"subl", 6, one(0002200), one(0177700), "#l$s", m68000up },
  3575. {"subl", 6, one(0002200), one(0177700), "#lDs", mcfisa_a },
  3576. {"subl", 2, one(0110700), one(0170700), "*lAd", m68000up | mcfisa_a },
  3577. {"subl", 2, one(0110200), one(0170700), "*lDd", m68000up | mcfisa_a },
  3578. {"subl", 2, one(0110600), one(0170700), "Dd~s", m68000up | mcfisa_a },
  3579. {"subxb", 2, one(0110400), one(0170770), "DsDd", m68000up },
  3580. {"subxb", 2, one(0110410), one(0170770), "-s-d", m68000up },
  3581. {"subxw", 2, one(0110500), one(0170770), "DsDd", m68000up },
  3582. {"subxw", 2, one(0110510), one(0170770), "-s-d", m68000up },
  3583. {"subxl", 2, one(0110600), one(0170770), "DsDd", m68000up | mcfisa_a },
  3584. {"subxl", 2, one(0110610), one(0170770), "-s-d", m68000up },
  3585. {"swap", 2, one(0044100), one(0177770), "Ds", m68000up | mcfisa_a },
  3586. /* swbeg and swbegl are magic constants used on sysV68. The compiler
  3587. generates them before a switch table. They tell the debugger and
  3588. disassembler that a switch table follows. The parameter is the
  3589. number of elements in the table. swbeg means that the entries in
  3590. the table are word (2 byte) sized, and swbegl means that the
  3591. entries in the table are longword (4 byte) sized. */
  3592. {"swbeg", 4, one(0045374), one(0177777), "#w", m68000up | mcfisa_a },
  3593. {"swbegl", 6, one(0045375), one(0177777), "#l", m68000up | mcfisa_a },
  3594. {"tas", 2, one(0045300), one(0177700), "$s", m68000up | mcfisa_b},
  3595. #define TBL1(name,insn_size,signed,round,size) \
  3596. {name, insn_size, two(0174000, (signed<<11)|(!round<<10)|(size<<6)|0000400), \
  3597. two(0177700,0107777), "!sD1", cpu32 }, \
  3598. {name, insn_size, two(0174000, (signed<<11)|(!round<<10)|(size<<6)), \
  3599. two(0177770,0107770), "DsD3D1", cpu32 }
  3600. #define TBL(name1, name2, name3, s, r) \
  3601. TBL1(name1, 4, s, r, 0), TBL1(name2, 4, s, r, 1), TBL1(name3, 4, s, r, 2)
  3602. TBL("tblsb", "tblsw", "tblsl", 2, 1),
  3603. TBL("tblsnb", "tblsnw", "tblsnl", 2, 0),
  3604. TBL("tblub", "tbluw", "tblul", 0, 1),
  3605. TBL("tblunb", "tblunw", "tblunl", 0, 0),
  3606. {"trap", 2, one(0047100), one(0177760), "Ts", m68000up | mcfisa_a },
  3607. {"trapcc", 2, one(0052374), one(0177777), "", m68020up | cpu32 },
  3608. {"trapcs", 2, one(0052774), one(0177777), "", m68020up | cpu32 },
  3609. {"trapeq", 2, one(0053774), one(0177777), "", m68020up | cpu32 },
  3610. {"trapf", 2, one(0050774), one(0177777), "", m68020up | cpu32 | mcfisa_a },
  3611. {"trapge", 2, one(0056374), one(0177777), "", m68020up | cpu32 },
  3612. {"trapgt", 2, one(0057374), one(0177777), "", m68020up | cpu32 },
  3613. {"traphi", 2, one(0051374), one(0177777), "", m68020up | cpu32 },
  3614. {"traple", 2, one(0057774), one(0177777), "", m68020up | cpu32 },
  3615. {"trapls", 2, one(0051774), one(0177777), "", m68020up | cpu32 },
  3616. {"traplt", 2, one(0056774), one(0177777), "", m68020up | cpu32 },
  3617. {"trapmi", 2, one(0055774), one(0177777), "", m68020up | cpu32 },
  3618. {"trapne", 2, one(0053374), one(0177777), "", m68020up | cpu32 },
  3619. {"trappl", 2, one(0055374), one(0177777), "", m68020up | cpu32 },
  3620. {"trapt", 2, one(0050374), one(0177777), "", m68020up | cpu32 },
  3621. {"trapvc", 2, one(0054374), one(0177777), "", m68020up | cpu32 },
  3622. {"trapvs", 2, one(0054774), one(0177777), "", m68020up | cpu32 },
  3623. {"trapccw", 4, one(0052372), one(0177777), "#w", m68020up|cpu32 },
  3624. {"trapcsw", 4, one(0052772), one(0177777), "#w", m68020up|cpu32 },
  3625. {"trapeqw", 4, one(0053772), one(0177777), "#w", m68020up|cpu32 },
  3626. {"trapfw", 4, one(0050772), one(0177777), "#w", m68020up|cpu32|mcfisa_a},
  3627. {"trapgew", 4, one(0056372), one(0177777), "#w", m68020up|cpu32 },
  3628. {"trapgtw", 4, one(0057372), one(0177777), "#w", m68020up|cpu32 },
  3629. {"traphiw", 4, one(0051372), one(0177777), "#w", m68020up|cpu32 },
  3630. {"traplew", 4, one(0057772), one(0177777), "#w", m68020up|cpu32 },
  3631. {"traplsw", 4, one(0051772), one(0177777), "#w", m68020up|cpu32 },
  3632. {"trapltw", 4, one(0056772), one(0177777), "#w", m68020up|cpu32 },
  3633. {"trapmiw", 4, one(0055772), one(0177777), "#w", m68020up|cpu32 },
  3634. {"trapnew", 4, one(0053372), one(0177777), "#w", m68020up|cpu32 },
  3635. {"trapplw", 4, one(0055372), one(0177777), "#w", m68020up|cpu32 },
  3636. {"traptw", 4, one(0050372), one(0177777), "#w", m68020up|cpu32 },
  3637. {"trapvcw", 4, one(0054372), one(0177777), "#w", m68020up|cpu32 },
  3638. {"trapvsw", 4, one(0054772), one(0177777), "#w", m68020up|cpu32 },
  3639. {"trapccl", 6, one(0052373), one(0177777), "#l", m68020up|cpu32 },
  3640. {"trapcsl", 6, one(0052773), one(0177777), "#l", m68020up|cpu32 },
  3641. {"trapeql", 6, one(0053773), one(0177777), "#l", m68020up|cpu32 },
  3642. {"trapfl", 6, one(0050773), one(0177777), "#l", m68020up|cpu32|mcfisa_a},
  3643. {"trapgel", 6, one(0056373), one(0177777), "#l", m68020up|cpu32 },
  3644. {"trapgtl", 6, one(0057373), one(0177777), "#l", m68020up|cpu32 },
  3645. {"traphil", 6, one(0051373), one(0177777), "#l", m68020up|cpu32 },
  3646. {"traplel", 6, one(0057773), one(0177777), "#l", m68020up|cpu32 },
  3647. {"traplsl", 6, one(0051773), one(0177777), "#l", m68020up|cpu32 },
  3648. {"trapltl", 6, one(0056773), one(0177777), "#l", m68020up|cpu32 },
  3649. {"trapmil", 6, one(0055773), one(0177777), "#l", m68020up|cpu32 },
  3650. {"trapnel", 6, one(0053373), one(0177777), "#l", m68020up|cpu32 },
  3651. {"trappll", 6, one(0055373), one(0177777), "#l", m68020up|cpu32 },
  3652. {"traptl", 6, one(0050373), one(0177777), "#l", m68020up|cpu32 },
  3653. {"trapvcl", 6, one(0054373), one(0177777), "#l", m68020up|cpu32 },
  3654. {"trapvsl", 6, one(0054773), one(0177777), "#l", m68020up|cpu32 },
  3655. {"trapv", 2, one(0047166), one(0177777), "", m68000up },
  3656. {"tstb", 2, one(0045000), one(0177700), ";b", m68020up|cpu32|mcfisa_a },
  3657. {"tstb", 2, one(0045000), one(0177700), "$b", m68000up },
  3658. {"tstw", 2, one(0045100), one(0177700), "*w", m68020up|cpu32|mcfisa_a },
  3659. {"tstw", 2, one(0045100), one(0177700), "$w", m68000up },
  3660. {"tstl", 2, one(0045200), one(0177700), "*l", m68020up|cpu32|mcfisa_a },
  3661. {"tstl", 2, one(0045200), one(0177700), "$l", m68000up },
  3662. {"unlk", 2, one(0047130), one(0177770), "As", m68000up | mcfisa_a },
  3663. {"unpk", 4, one(0100600), one(0170770), "DsDd#w", m68020up },
  3664. {"unpk", 4, one(0100610), one(0170770), "-s-d#w", m68020up },
  3665. {"wddatab", 2, one(0175400), one(0177700), "~s", mcfisa_a },
  3666. {"wddataw", 2, one(0175500), one(0177700), "~s", mcfisa_a },
  3667. {"wddatal", 2, one(0175600), one(0177700), "~s", mcfisa_a },
  3668. {"wdebug", 4, two(0175720, 03), two(0177770, 0xffff), "as", mcfisa_a },
  3669. {"wdebug", 4, two(0175750, 03), two(0177770, 0xffff), "ds", mcfisa_a },
  3670. };
  3671. const int m68k_numopcodes = sizeof m68k_opcodes / sizeof m68k_opcodes[0];
  3672. /* These aliases used to be in the above table, each one duplicating
  3673. all of the entries for its primary exactly. This table was
  3674. constructed by mechanical processing of the opcode table, with a
  3675. small number of tweaks done by hand. There are probably a lot more
  3676. aliases above that could be moved down here, except for very minor
  3677. differences. */
  3678. const struct m68k_opcode_alias m68k_opcode_aliases[] =
  3679. {
  3680. { "add", "addw", },
  3681. { "adda", "addaw", },
  3682. { "addi", "addiw", },
  3683. { "addq", "addqw", },
  3684. { "addx", "addxw", },
  3685. { "asl", "aslw", },
  3686. { "asr", "asrw", },
  3687. { "bhi", "bhiw", },
  3688. { "bls", "blsw", },
  3689. { "bcc", "bccw", },
  3690. { "bcs", "bcsw", },
  3691. { "bne", "bnew", },
  3692. { "beq", "beqw", },
  3693. { "bvc", "bvcw", },
  3694. { "bvs", "bvsw", },
  3695. { "bpl", "bplw", },
  3696. { "bmi", "bmiw", },
  3697. { "bge", "bgew", },
  3698. { "blt", "bltw", },
  3699. { "bgt", "bgtw", },
  3700. { "ble", "blew", },
  3701. { "bra", "braw", },
  3702. { "bsr", "bsrw", },
  3703. { "bhib", "bhis", },
  3704. { "blsb", "blss", },
  3705. { "bccb", "bccs", },
  3706. { "bcsb", "bcss", },
  3707. { "bneb", "bnes", },
  3708. { "beqb", "beqs", },
  3709. { "bvcb", "bvcs", },
  3710. { "bvsb", "bvss", },
  3711. { "bplb", "bpls", },
  3712. { "bmib", "bmis", },
  3713. { "bgeb", "bges", },
  3714. { "bltb", "blts", },
  3715. { "bgtb", "bgts", },
  3716. { "bleb", "bles", },
  3717. { "brab", "bras", },
  3718. { "bsrb", "bsrs", },
  3719. { "bhs", "bccw" },
  3720. { "bhss", "bccs" },
  3721. { "bhsb", "bccs" },
  3722. { "bhsw", "bccw" },
  3723. { "bhsl", "bccl" },
  3724. { "blo", "bcsw" },
  3725. { "blos", "bcss" },
  3726. { "blob", "bcss" },
  3727. { "blow", "bcsw" },
  3728. { "blol", "bcsl" },
  3729. { "br", "braw", },
  3730. { "brs", "bras", },
  3731. { "brb", "bras", },
  3732. { "brw", "braw", },
  3733. { "brl", "bral", },
  3734. { "jfnlt", "bcc", }, /* Apparently a sun alias. */
  3735. { "jfngt", "ble", }, /* Apparently a sun alias. */
  3736. { "jfeq", "beqs", }, /* Apparently a sun alias. */
  3737. { "bchgb", "bchg", },
  3738. { "bchgl", "bchg", },
  3739. { "bclrb", "bclr", },
  3740. { "bclrl", "bclr", },
  3741. { "bsetb", "bset", },
  3742. { "bsetl", "bset", },
  3743. { "btstb", "btst", },
  3744. { "btstl", "btst", },
  3745. { "cas2", "cas2w", },
  3746. { "cas", "casw", },
  3747. { "chk2", "chk2w", },
  3748. { "chk", "chkw", },
  3749. { "clr", "clrw", },
  3750. { "cmp2", "cmp2w", },
  3751. { "cmpa", "cmpaw", },
  3752. { "cmpi", "cmpiw", },
  3753. { "cmpm", "cmpmw", },
  3754. { "cmp", "cmpw", },
  3755. { "dbccw", "dbcc", },
  3756. { "dbcsw", "dbcs", },
  3757. { "dbeqw", "dbeq", },
  3758. { "dbfw", "dbf", },
  3759. { "dbgew", "dbge", },
  3760. { "dbgtw", "dbgt", },
  3761. { "dbhiw", "dbhi", },
  3762. { "dblew", "dble", },
  3763. { "dblsw", "dbls", },
  3764. { "dbltw", "dblt", },
  3765. { "dbmiw", "dbmi", },
  3766. { "dbnew", "dbne", },
  3767. { "dbplw", "dbpl", },
  3768. { "dbtw", "dbt", },
  3769. { "dbvcw", "dbvc", },
  3770. { "dbvsw", "dbvs", },
  3771. { "dbhs", "dbcc", },
  3772. { "dbhsw", "dbcc", },
  3773. { "dbra", "dbf", },
  3774. { "dbraw", "dbf", },
  3775. { "tdivsl", "divsl", },
  3776. { "divs", "divsw", },
  3777. { "divu", "divuw", },
  3778. { "ext", "extw", },
  3779. { "extbw", "extw", },
  3780. { "extwl", "extl", },
  3781. { "fbneq", "fbne", },
  3782. { "fbsneq", "fbsne", },
  3783. { "fdbneq", "fdbne", },
  3784. { "fdbsneq", "fdbsne", },
  3785. { "fmovecr", "fmovecrx", },
  3786. { "fmovm", "fmovem", },
  3787. { "fsneq", "fsne", },
  3788. { "fssneq", "fssne", },
  3789. { "ftrapneq", "ftrapne", },
  3790. { "ftrapsneq", "ftrapsne", },
  3791. { "fjneq", "fjne", },
  3792. { "fjsneq", "fjsne", },
  3793. { "jmpl", "jmp", },
  3794. { "jmps", "jmp", },
  3795. { "jsrl", "jsr", },
  3796. { "jsrs", "jsr", },
  3797. { "leal", "lea", },
  3798. { "lsl", "lslw", },
  3799. { "lsr", "lsrw", },
  3800. { "mac", "macw" },
  3801. { "movea", "moveaw", },
  3802. { "movem", "movemw", },
  3803. { "movml", "moveml", },
  3804. { "movmw", "movemw", },
  3805. { "movm", "movemw", },
  3806. { "movep", "movepw", },
  3807. { "movpw", "movepw", },
  3808. { "moves", "movesw" },
  3809. { "muls", "mulsw", },
  3810. { "mulu", "muluw", },
  3811. { "msac", "msacw" },
  3812. { "nbcdb", "nbcd" },
  3813. { "neg", "negw", },
  3814. { "negx", "negxw", },
  3815. { "not", "notw", },
  3816. { "peal", "pea", },
  3817. { "rol", "rolw", },
  3818. { "ror", "rorw", },
  3819. { "roxl", "roxlw", },
  3820. { "roxr", "roxrw", },
  3821. { "sats", "satsl", },
  3822. { "sbcdb", "sbcd", },
  3823. { "sccb", "scc", },
  3824. { "scsb", "scs", },
  3825. { "seqb", "seq", },
  3826. { "sfb", "sf", },
  3827. { "sgeb", "sge", },
  3828. { "sgtb", "sgt", },
  3829. { "shib", "shi", },
  3830. { "sleb", "sle", },
  3831. { "slsb", "sls", },
  3832. { "sltb", "slt", },
  3833. { "smib", "smi", },
  3834. { "sneb", "sne", },
  3835. { "splb", "spl", },
  3836. { "stb", "st", },
  3837. { "svcb", "svc", },
  3838. { "svsb", "svs", },
  3839. { "sfge", "sge", },
  3840. { "sfgt", "sgt", },
  3841. { "sfle", "sle", },
  3842. { "sflt", "slt", },
  3843. { "sfneq", "sne", },
  3844. { "suba", "subaw", },
  3845. { "subi", "subiw", },
  3846. { "subq", "subqw", },
  3847. { "sub", "subw", },
  3848. { "subx", "subxw", },
  3849. { "swapw", "swap", },
  3850. { "tasb", "tas", },
  3851. { "tpcc", "trapcc", },
  3852. { "tcc", "trapcc", },
  3853. { "tst", "tstw", },
  3854. { "jbra", "jra", },
  3855. { "jbhi", "jhi", },
  3856. { "jbls", "jls", },
  3857. { "jbcc", "jcc", },
  3858. { "jbcs", "jcs", },
  3859. { "jbne", "jne", },
  3860. { "jbeq", "jeq", },
  3861. { "jbvc", "jvc", },
  3862. { "jbvs", "jvs", },
  3863. { "jbpl", "jpl", },
  3864. { "jbmi", "jmi", },
  3865. { "jbge", "jge", },
  3866. { "jblt", "jlt", },
  3867. { "jbgt", "jgt", },
  3868. { "jble", "jle", },
  3869. { "movql", "moveq", },
  3870. { "moveql", "moveq", },
  3871. { "movl", "movel", },
  3872. { "movq", "moveq", },
  3873. { "moval", "moveal", },
  3874. { "movaw", "moveaw", },
  3875. { "movb", "moveb", },
  3876. { "movc", "movec", },
  3877. { "movecl", "movec", },
  3878. { "movpl", "movepl", },
  3879. { "movw", "movew", },
  3880. { "movsb", "movesb", },
  3881. { "movsl", "movesl", },
  3882. { "movsw", "movesw", },
  3883. { "mov3q", "mov3ql", },
  3884. { "tdivul", "divul", }, /* For m68k-svr4. */
  3885. { "fmovb", "fmoveb", },
  3886. { "fsmovb", "fsmoveb", },
  3887. { "fdmovb", "fdmoveb", },
  3888. { "fmovd", "fmoved", },
  3889. { "fsmovd", "fsmoved", },
  3890. { "fmovl", "fmovel", },
  3891. { "fsmovl", "fsmovel", },
  3892. { "fdmovl", "fdmovel", },
  3893. { "fmovp", "fmovep", },
  3894. { "fsmovp", "fsmovep", },
  3895. { "fdmovp", "fdmovep", },
  3896. { "fmovs", "fmoves", },
  3897. { "fsmovs", "fsmoves", },
  3898. { "fdmovs", "fdmoves", },
  3899. { "fmovw", "fmovew", },
  3900. { "fsmovw", "fsmovew", },
  3901. { "fdmovw", "fdmovew", },
  3902. { "fmovx", "fmovex", },
  3903. { "fsmovx", "fsmovex", },
  3904. { "fdmovx", "fdmovex", },
  3905. { "fmovcr", "fmovecr", },
  3906. { "fmovcrx", "fmovecrx", },
  3907. { "ftestb", "ftstb", },
  3908. { "ftestd", "ftstd", },
  3909. { "ftestl", "ftstl", },
  3910. { "ftestp", "ftstp", },
  3911. { "ftests", "ftsts", },
  3912. { "ftestw", "ftstw", },
  3913. { "ftestx", "ftstx", },
  3914. { "bitrevl", "bitrev", },
  3915. { "byterevl", "byterev", },
  3916. { "ff1l", "ff1", },
  3917. };
  3918. const int m68k_numaliases =
  3919. sizeof m68k_opcode_aliases / sizeof m68k_opcode_aliases[0];
  3920. /* **** End of m68k-opc.c */
  3921. /* **** floatformat.c from sourceware.org CVS 2005-08-14. */
  3922. /* IEEE floating point support routines, for GDB, the GNU Debugger.
  3923. Copyright (C) 1991, 1994, 1999, 2000, 2003 Free Software Foundation, Inc.
  3924. This file is part of GDB.
  3925. This program is free software; you can redistribute it and/or modify
  3926. it under the terms of the GNU General Public License as published by
  3927. the Free Software Foundation; either version 2 of the License, or
  3928. (at your option) any later version.
  3929. This program is distributed in the hope that it will be useful,
  3930. but WITHOUT ANY WARRANTY; without even the implied warranty of
  3931. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3932. GNU General Public License for more details.
  3933. You should have received a copy of the GNU General Public License
  3934. along with this program; if not, write to the Free Software
  3935. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  3936. /* This is needed to pick up the NAN macro on some systems. */
  3937. //#define _GNU_SOURCE
  3938. #ifndef INFINITY
  3939. #ifdef HUGE_VAL
  3940. #define INFINITY HUGE_VAL
  3941. #else
  3942. #define INFINITY (1.0 / 0.0)
  3943. #endif
  3944. #endif
  3945. #ifndef NAN
  3946. #define NAN (0.0 / 0.0)
  3947. #endif
  3948. static unsigned long get_field (const unsigned char *,
  3949. enum floatformat_byteorders,
  3950. unsigned int,
  3951. unsigned int,
  3952. unsigned int);
  3953. static int floatformat_always_valid (const struct floatformat *fmt,
  3954. const char *from);
  3955. static int
  3956. floatformat_always_valid (const struct floatformat *fmt ATTRIBUTE_UNUSED,
  3957. const char *from ATTRIBUTE_UNUSED)
  3958. {
  3959. return 1;
  3960. }
  3961. /* The odds that CHAR_BIT will be anything but 8 are low enough that I'm not
  3962. going to bother with trying to muck around with whether it is defined in
  3963. a system header, what we do if not, etc. */
  3964. #define FLOATFORMAT_CHAR_BIT 8
  3965. /* floatformats for IEEE single and double, big and little endian. */
  3966. const struct floatformat floatformat_ieee_single_big =
  3967. {
  3968. floatformat_big, 32, 0, 1, 8, 127, 255, 9, 23,
  3969. floatformat_intbit_no,
  3970. "floatformat_ieee_single_big",
  3971. floatformat_always_valid
  3972. };
  3973. const struct floatformat floatformat_ieee_single_little =
  3974. {
  3975. floatformat_little, 32, 0, 1, 8, 127, 255, 9, 23,
  3976. floatformat_intbit_no,
  3977. "floatformat_ieee_single_little",
  3978. floatformat_always_valid
  3979. };
  3980. const struct floatformat floatformat_ieee_double_big =
  3981. {
  3982. floatformat_big, 64, 0, 1, 11, 1023, 2047, 12, 52,
  3983. floatformat_intbit_no,
  3984. "floatformat_ieee_double_big",
  3985. floatformat_always_valid
  3986. };
  3987. const struct floatformat floatformat_ieee_double_little =
  3988. {
  3989. floatformat_little, 64, 0, 1, 11, 1023, 2047, 12, 52,
  3990. floatformat_intbit_no,
  3991. "floatformat_ieee_double_little",
  3992. floatformat_always_valid
  3993. };
  3994. /* floatformat for IEEE double, little endian byte order, with big endian word
  3995. ordering, as on the ARM. */
  3996. const struct floatformat floatformat_ieee_double_littlebyte_bigword =
  3997. {
  3998. floatformat_littlebyte_bigword, 64, 0, 1, 11, 1023, 2047, 12, 52,
  3999. floatformat_intbit_no,
  4000. "floatformat_ieee_double_littlebyte_bigword",
  4001. floatformat_always_valid
  4002. };
  4003. static int floatformat_i387_ext_is_valid (const struct floatformat *fmt, const char *from);
  4004. static int
  4005. floatformat_i387_ext_is_valid (const struct floatformat *fmt, const char *from)
  4006. {
  4007. /* In the i387 double-extended format, if the exponent is all ones,
  4008. then the integer bit must be set. If the exponent is neither 0
  4009. nor ~0, the intbit must also be set. Only if the exponent is
  4010. zero can it be zero, and then it must be zero. */
  4011. unsigned long exponent, int_bit;
  4012. const unsigned char *ufrom = (const unsigned char *) from;
  4013. exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize,
  4014. fmt->exp_start, fmt->exp_len);
  4015. int_bit = get_field (ufrom, fmt->byteorder, fmt->totalsize,
  4016. fmt->man_start, 1);
  4017. if ((exponent == 0) != (int_bit == 0))
  4018. return 0;
  4019. else
  4020. return 1;
  4021. }
  4022. const struct floatformat floatformat_i387_ext =
  4023. {
  4024. floatformat_little, 80, 0, 1, 15, 0x3fff, 0x7fff, 16, 64,
  4025. floatformat_intbit_yes,
  4026. "floatformat_i387_ext",
  4027. floatformat_i387_ext_is_valid
  4028. };
  4029. const struct floatformat floatformat_m68881_ext =
  4030. {
  4031. /* Note that the bits from 16 to 31 are unused. */
  4032. floatformat_big, 96, 0, 1, 15, 0x3fff, 0x7fff, 32, 64,
  4033. floatformat_intbit_yes,
  4034. "floatformat_m68881_ext",
  4035. floatformat_always_valid
  4036. };
  4037. const struct floatformat floatformat_i960_ext =
  4038. {
  4039. /* Note that the bits from 0 to 15 are unused. */
  4040. floatformat_little, 96, 16, 17, 15, 0x3fff, 0x7fff, 32, 64,
  4041. floatformat_intbit_yes,
  4042. "floatformat_i960_ext",
  4043. floatformat_always_valid
  4044. };
  4045. const struct floatformat floatformat_m88110_ext =
  4046. {
  4047. floatformat_big, 80, 0, 1, 15, 0x3fff, 0x7fff, 16, 64,
  4048. floatformat_intbit_yes,
  4049. "floatformat_m88110_ext",
  4050. floatformat_always_valid
  4051. };
  4052. const struct floatformat floatformat_m88110_harris_ext =
  4053. {
  4054. /* Harris uses raw format 128 bytes long, but the number is just an ieee
  4055. double, and the last 64 bits are wasted. */
  4056. floatformat_big,128, 0, 1, 11, 0x3ff, 0x7ff, 12, 52,
  4057. floatformat_intbit_no,
  4058. "floatformat_m88110_ext_harris",
  4059. floatformat_always_valid
  4060. };
  4061. const struct floatformat floatformat_arm_ext_big =
  4062. {
  4063. /* Bits 1 to 16 are unused. */
  4064. floatformat_big, 96, 0, 17, 15, 0x3fff, 0x7fff, 32, 64,
  4065. floatformat_intbit_yes,
  4066. "floatformat_arm_ext_big",
  4067. floatformat_always_valid
  4068. };
  4069. const struct floatformat floatformat_arm_ext_littlebyte_bigword =
  4070. {
  4071. /* Bits 1 to 16 are unused. */
  4072. floatformat_littlebyte_bigword, 96, 0, 17, 15, 0x3fff, 0x7fff, 32, 64,
  4073. floatformat_intbit_yes,
  4074. "floatformat_arm_ext_littlebyte_bigword",
  4075. floatformat_always_valid
  4076. };
  4077. const struct floatformat floatformat_ia64_spill_big =
  4078. {
  4079. floatformat_big, 128, 0, 1, 17, 65535, 0x1ffff, 18, 64,
  4080. floatformat_intbit_yes,
  4081. "floatformat_ia64_spill_big",
  4082. floatformat_always_valid
  4083. };
  4084. const struct floatformat floatformat_ia64_spill_little =
  4085. {
  4086. floatformat_little, 128, 0, 1, 17, 65535, 0x1ffff, 18, 64,
  4087. floatformat_intbit_yes,
  4088. "floatformat_ia64_spill_little",
  4089. floatformat_always_valid
  4090. };
  4091. const struct floatformat floatformat_ia64_quad_big =
  4092. {
  4093. floatformat_big, 128, 0, 1, 15, 16383, 0x7fff, 16, 112,
  4094. floatformat_intbit_no,
  4095. "floatformat_ia64_quad_big",
  4096. floatformat_always_valid
  4097. };
  4098. const struct floatformat floatformat_ia64_quad_little =
  4099. {
  4100. floatformat_little, 128, 0, 1, 15, 16383, 0x7fff, 16, 112,
  4101. floatformat_intbit_no,
  4102. "floatformat_ia64_quad_little",
  4103. floatformat_always_valid
  4104. };
  4105. /* Extract a field which starts at START and is LEN bits long. DATA and
  4106. TOTAL_LEN are the thing we are extracting it from, in byteorder ORDER. */
  4107. static unsigned long
  4108. get_field (const unsigned char *data, enum floatformat_byteorders order,
  4109. unsigned int total_len, unsigned int start, unsigned int len)
  4110. {
  4111. unsigned long result;
  4112. unsigned int cur_byte;
  4113. int cur_bitshift;
  4114. /* Start at the least significant part of the field. */
  4115. cur_byte = (start + len) / FLOATFORMAT_CHAR_BIT;
  4116. if (order == floatformat_little)
  4117. cur_byte = (total_len / FLOATFORMAT_CHAR_BIT) - cur_byte - 1;
  4118. cur_bitshift =
  4119. ((start + len) % FLOATFORMAT_CHAR_BIT) - FLOATFORMAT_CHAR_BIT;
  4120. result = *(data + cur_byte) >> (-cur_bitshift);
  4121. cur_bitshift += FLOATFORMAT_CHAR_BIT;
  4122. if (order == floatformat_little)
  4123. ++cur_byte;
  4124. else
  4125. --cur_byte;
  4126. /* Move towards the most significant part of the field. */
  4127. while ((unsigned int) cur_bitshift < len)
  4128. {
  4129. if (len - cur_bitshift < FLOATFORMAT_CHAR_BIT)
  4130. /* This is the last byte; zero out the bits which are not part of
  4131. this field. */
  4132. result |=
  4133. (*(data + cur_byte) & ((1 << (len - cur_bitshift)) - 1))
  4134. << cur_bitshift;
  4135. else
  4136. result |= *(data + cur_byte) << cur_bitshift;
  4137. cur_bitshift += FLOATFORMAT_CHAR_BIT;
  4138. if (order == floatformat_little)
  4139. ++cur_byte;
  4140. else
  4141. --cur_byte;
  4142. }
  4143. return result;
  4144. }
  4145. #ifndef min
  4146. #define min(a, b) ((a) < (b) ? (a) : (b))
  4147. #endif
  4148. /* Convert from FMT to a double.
  4149. FROM is the address of the extended float.
  4150. Store the double in *TO. */
  4151. void
  4152. floatformat_to_double (const struct floatformat *fmt,
  4153. const char *from, double *to)
  4154. {
  4155. const unsigned char *ufrom = (const unsigned char *)from;
  4156. double dto;
  4157. long exponent;
  4158. unsigned long mant;
  4159. unsigned int mant_bits, mant_off;
  4160. int mant_bits_left;
  4161. int special_exponent; /* It's a NaN, denorm or zero */
  4162. exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize,
  4163. fmt->exp_start, fmt->exp_len);
  4164. /* If the exponent indicates a NaN, we don't have information to
  4165. decide what to do. So we handle it like IEEE, except that we
  4166. don't try to preserve the type of NaN. FIXME. */
  4167. if ((unsigned long) exponent == fmt->exp_nan)
  4168. {
  4169. int nan;
  4170. mant_off = fmt->man_start;
  4171. mant_bits_left = fmt->man_len;
  4172. nan = 0;
  4173. while (mant_bits_left > 0)
  4174. {
  4175. mant_bits = min (mant_bits_left, 32);
  4176. if (get_field (ufrom, fmt->byteorder, fmt->totalsize,
  4177. mant_off, mant_bits) != 0)
  4178. {
  4179. /* This is a NaN. */
  4180. nan = 1;
  4181. break;
  4182. }
  4183. mant_off += mant_bits;
  4184. mant_bits_left -= mant_bits;
  4185. }
  4186. /* On certain systems (such as GNU/Linux), the use of the
  4187. INFINITY macro below may generate a warning that can not be
  4188. silenced due to a bug in GCC (PR preprocessor/11931). The
  4189. preprocessor fails to recognise the __extension__ keyword in
  4190. conjunction with the GNU/C99 extension for hexadecimal
  4191. floating point constants and will issue a warning when
  4192. compiling with -pedantic. */
  4193. if (nan)
  4194. dto = NAN;
  4195. else
  4196. dto = INFINITY;
  4197. if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1))
  4198. dto = -dto;
  4199. *to = dto;
  4200. return;
  4201. }
  4202. mant_bits_left = fmt->man_len;
  4203. mant_off = fmt->man_start;
  4204. dto = 0.0;
  4205. special_exponent = exponent == 0 || (unsigned long) exponent == fmt->exp_nan;
  4206. /* Don't bias zero's, denorms or NaNs. */
  4207. if (!special_exponent)
  4208. exponent -= fmt->exp_bias;
  4209. /* Build the result algebraically. Might go infinite, underflow, etc;
  4210. who cares. */
  4211. /* If this format uses a hidden bit, explicitly add it in now. Otherwise,
  4212. increment the exponent by one to account for the integer bit. */
  4213. if (!special_exponent)
  4214. {
  4215. if (fmt->intbit == floatformat_intbit_no)
  4216. dto = ldexp (1.0, exponent);
  4217. else
  4218. exponent++;
  4219. }
  4220. while (mant_bits_left > 0)
  4221. {
  4222. mant_bits = min (mant_bits_left, 32);
  4223. mant = get_field (ufrom, fmt->byteorder, fmt->totalsize,
  4224. mant_off, mant_bits);
  4225. /* Handle denormalized numbers. FIXME: What should we do for
  4226. non-IEEE formats? */
  4227. if (exponent == 0 && mant != 0)
  4228. dto += ldexp ((double)mant,
  4229. (- fmt->exp_bias
  4230. - mant_bits
  4231. - (mant_off - fmt->man_start)
  4232. + 1));
  4233. else
  4234. dto += ldexp ((double)mant, exponent - mant_bits);
  4235. if (exponent != 0)
  4236. exponent -= mant_bits;
  4237. mant_off += mant_bits;
  4238. mant_bits_left -= mant_bits;
  4239. }
  4240. /* Negate it if negative. */
  4241. if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1))
  4242. dto = -dto;
  4243. *to = dto;
  4244. }
  4245. static void put_field (unsigned char *, enum floatformat_byteorders,
  4246. unsigned int,
  4247. unsigned int,
  4248. unsigned int,
  4249. unsigned long);
  4250. /* Set a field which starts at START and is LEN bits long. DATA and
  4251. TOTAL_LEN are the thing we are extracting it from, in byteorder ORDER. */
  4252. static void
  4253. put_field (unsigned char *data, enum floatformat_byteorders order,
  4254. unsigned int total_len, unsigned int start, unsigned int len,
  4255. unsigned long stuff_to_put)
  4256. {
  4257. unsigned int cur_byte;
  4258. int cur_bitshift;
  4259. /* Start at the least significant part of the field. */
  4260. cur_byte = (start + len) / FLOATFORMAT_CHAR_BIT;
  4261. if (order == floatformat_little)
  4262. cur_byte = (total_len / FLOATFORMAT_CHAR_BIT) - cur_byte - 1;
  4263. cur_bitshift =
  4264. ((start + len) % FLOATFORMAT_CHAR_BIT) - FLOATFORMAT_CHAR_BIT;
  4265. *(data + cur_byte) &=
  4266. ~(((1 << ((start + len) % FLOATFORMAT_CHAR_BIT)) - 1) << (-cur_bitshift));
  4267. *(data + cur_byte) |=
  4268. (stuff_to_put & ((1 << FLOATFORMAT_CHAR_BIT) - 1)) << (-cur_bitshift);
  4269. cur_bitshift += FLOATFORMAT_CHAR_BIT;
  4270. if (order == floatformat_little)
  4271. ++cur_byte;
  4272. else
  4273. --cur_byte;
  4274. /* Move towards the most significant part of the field. */
  4275. while ((unsigned int) cur_bitshift < len)
  4276. {
  4277. if (len - cur_bitshift < FLOATFORMAT_CHAR_BIT)
  4278. {
  4279. /* This is the last byte. */
  4280. *(data + cur_byte) &=
  4281. ~((1 << (len - cur_bitshift)) - 1);
  4282. *(data + cur_byte) |= (stuff_to_put >> cur_bitshift);
  4283. }
  4284. else
  4285. *(data + cur_byte) = ((stuff_to_put >> cur_bitshift)
  4286. & ((1 << FLOATFORMAT_CHAR_BIT) - 1));
  4287. cur_bitshift += FLOATFORMAT_CHAR_BIT;
  4288. if (order == floatformat_little)
  4289. ++cur_byte;
  4290. else
  4291. --cur_byte;
  4292. }
  4293. }
  4294. /* The converse: convert the double *FROM to an extended float
  4295. and store where TO points. Neither FROM nor TO have any alignment
  4296. restrictions. */
  4297. void
  4298. floatformat_from_double (const struct floatformat *fmt,
  4299. const double *from, char *to)
  4300. {
  4301. double dfrom;
  4302. int exponent;
  4303. double mant;
  4304. unsigned int mant_bits, mant_off;
  4305. int mant_bits_left;
  4306. unsigned char *uto = (unsigned char *)to;
  4307. dfrom = *from;
  4308. memset (uto, 0, fmt->totalsize / FLOATFORMAT_CHAR_BIT);
  4309. /* If negative, set the sign bit. */
  4310. if (dfrom < 0)
  4311. {
  4312. put_field (uto, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1, 1);
  4313. dfrom = -dfrom;
  4314. }
  4315. if (dfrom == 0)
  4316. {
  4317. /* 0.0. */
  4318. return;
  4319. }
  4320. if (dfrom != dfrom)
  4321. {
  4322. /* NaN. */
  4323. put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start,
  4324. fmt->exp_len, fmt->exp_nan);
  4325. /* Be sure it's not infinity, but NaN value is irrelevant. */
  4326. put_field (uto, fmt->byteorder, fmt->totalsize, fmt->man_start,
  4327. 32, 1);
  4328. return;
  4329. }
  4330. if (dfrom + dfrom == dfrom)
  4331. {
  4332. /* This can only happen for an infinite value (or zero, which we
  4333. already handled above). */
  4334. put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start,
  4335. fmt->exp_len, fmt->exp_nan);
  4336. return;
  4337. }
  4338. mant = frexp (dfrom, &exponent);
  4339. if (exponent + fmt->exp_bias - 1 > 0)
  4340. put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start,
  4341. fmt->exp_len, exponent + fmt->exp_bias - 1);
  4342. else
  4343. {
  4344. /* Handle a denormalized number. FIXME: What should we do for
  4345. non-IEEE formats? */
  4346. put_field (uto, fmt->byteorder, fmt->totalsize, fmt->exp_start,
  4347. fmt->exp_len, 0);
  4348. mant = ldexp (mant, exponent + fmt->exp_bias - 1);
  4349. }
  4350. mant_bits_left = fmt->man_len;
  4351. mant_off = fmt->man_start;
  4352. while (mant_bits_left > 0)
  4353. {
  4354. unsigned long mant_long;
  4355. mant_bits = mant_bits_left < 32 ? mant_bits_left : 32;
  4356. mant *= 4294967296.0;
  4357. mant_long = (unsigned long)mant;
  4358. mant -= mant_long;
  4359. /* If the integer bit is implicit, and we are not creating a
  4360. denormalized number, then we need to discard it. */
  4361. if ((unsigned int) mant_bits_left == fmt->man_len
  4362. && fmt->intbit == floatformat_intbit_no
  4363. && exponent + fmt->exp_bias - 1 > 0)
  4364. {
  4365. mant_long &= 0x7fffffff;
  4366. mant_bits -= 1;
  4367. }
  4368. else if (mant_bits < 32)
  4369. {
  4370. /* The bits we want are in the most significant MANT_BITS bits of
  4371. mant_long. Move them to the least significant. */
  4372. mant_long >>= 32 - mant_bits;
  4373. }
  4374. put_field (uto, fmt->byteorder, fmt->totalsize,
  4375. mant_off, mant_bits, mant_long);
  4376. mant_off += mant_bits;
  4377. mant_bits_left -= mant_bits;
  4378. }
  4379. }
  4380. /* Return non-zero iff the data at FROM is a valid number in format FMT. */
  4381. int
  4382. floatformat_is_valid (const struct floatformat *fmt, const char *from)
  4383. {
  4384. return fmt->is_valid (fmt, from);
  4385. }
  4386. #ifdef IEEE_DEBUG
  4387. /* This is to be run on a host which uses IEEE floating point. */
  4388. void
  4389. ieee_test (double n)
  4390. {
  4391. double result;
  4392. floatformat_to_double (&floatformat_ieee_double_little, (char *) &n,
  4393. &result);
  4394. if ((n != result && (! isnan (n) || ! isnan (result)))
  4395. || (n < 0 && result >= 0)
  4396. || (n >= 0 && result < 0))
  4397. printf ("Differ(to): %.20g -> %.20g\n", n, result);
  4398. floatformat_from_double (&floatformat_ieee_double_little, &n,
  4399. (char *) &result);
  4400. if ((n != result && (! isnan (n) || ! isnan (result)))
  4401. || (n < 0 && result >= 0)
  4402. || (n >= 0 && result < 0))
  4403. printf ("Differ(from): %.20g -> %.20g\n", n, result);
  4404. #if 0
  4405. {
  4406. char exten[16];
  4407. floatformat_from_double (&floatformat_m68881_ext, &n, exten);
  4408. floatformat_to_double (&floatformat_m68881_ext, exten, &result);
  4409. if (n != result)
  4410. printf ("Differ(to+from): %.20g -> %.20g\n", n, result);
  4411. }
  4412. #endif
  4413. #if IEEE_DEBUG > 1
  4414. /* This is to be run on a host which uses 68881 format. */
  4415. {
  4416. long double ex = *(long double *)exten;
  4417. if (ex != n)
  4418. printf ("Differ(from vs. extended): %.20g\n", n);
  4419. }
  4420. #endif
  4421. }
  4422. int
  4423. main (void)
  4424. {
  4425. ieee_test (0.0);
  4426. ieee_test (0.5);
  4427. ieee_test (256.0);
  4428. ieee_test (0.12345);
  4429. ieee_test (234235.78907234);
  4430. ieee_test (-512.0);
  4431. ieee_test (-0.004321);
  4432. ieee_test (1.2E-70);
  4433. ieee_test (1.2E-316);
  4434. ieee_test (4.9406564584124654E-324);
  4435. ieee_test (- 4.9406564584124654E-324);
  4436. ieee_test (- 0.0);
  4437. ieee_test (- INFINITY);
  4438. ieee_test (- NAN);
  4439. ieee_test (INFINITY);
  4440. ieee_test (NAN);
  4441. return 0;
  4442. }
  4443. #endif
  4444. /* **** End of floatformat.c */