touint32.js 111 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var test = 1;
  6. function fail(n, expected, result) { WScript.Echo("failure in test " + test + "; expected " + expected + ", got " + result); }
  7. function test0() {
  8. var x;
  9. var y;
  10. var result;
  11. var check;
  12. // Test 0: both arguments variables
  13. x = 0.4;
  14. y = 0;
  15. result = (x >>> y);
  16. check = 0;
  17. if(result != check) { fail(test, check, result); } ++test;
  18. // Test 1: both arguments constants
  19. result = (0.4 >>> 0)
  20. check = 0
  21. if(result != check) {{ fail(test, check, result); }} ++test;
  22. // Test 2: LHS constant
  23. y = 0;
  24. result = (0.4 >>> y)
  25. check = 0
  26. if(result != check) {{ fail(test, check, result); }} ++test;
  27. // Test 3: RHS constant
  28. x = 0.4;
  29. result = (x >>> 0)
  30. check = 0
  31. if(result != check) {{ fail(test, check, result); }} ++test;
  32. // Test 4: both arguments variables
  33. x = 0.5;
  34. y = 0;
  35. result = (x >>> y);
  36. check = 0;
  37. if(result != check) { fail(test, check, result); } ++test;
  38. // Test 5: both arguments constants
  39. result = (0.5 >>> 0)
  40. check = 0
  41. if(result != check) {{ fail(test, check, result); }} ++test;
  42. // Test 6: LHS constant
  43. y = 0;
  44. result = (0.5 >>> y)
  45. check = 0
  46. if(result != check) {{ fail(test, check, result); }} ++test;
  47. // Test 7: RHS constant
  48. x = 0.5;
  49. result = (x >>> 0)
  50. check = 0
  51. if(result != check) {{ fail(test, check, result); }} ++test;
  52. // Test 8: both arguments variables
  53. x = 0.6;
  54. y = 0;
  55. result = (x >>> y);
  56. check = 0;
  57. if(result != check) { fail(test, check, result); } ++test;
  58. // Test 9: both arguments constants
  59. result = (0.6 >>> 0)
  60. check = 0
  61. if(result != check) {{ fail(test, check, result); }} ++test;
  62. // Test 10: LHS constant
  63. y = 0;
  64. result = (0.6 >>> y)
  65. check = 0
  66. if(result != check) {{ fail(test, check, result); }} ++test;
  67. // Test 11: RHS constant
  68. x = 0.6;
  69. result = (x >>> 0)
  70. check = 0
  71. if(result != check) {{ fail(test, check, result); }} ++test;
  72. // Test 12: both arguments variables
  73. x = -0.4;
  74. y = 0;
  75. result = (x >>> y);
  76. check = 0;
  77. if(result != check) { fail(test, check, result); } ++test;
  78. // Test 13: both arguments constants
  79. result = (-0.4 >>> 0)
  80. check = 0
  81. if(result != check) {{ fail(test, check, result); }} ++test;
  82. // Test 14: LHS constant
  83. y = 0;
  84. result = (-0.4 >>> y)
  85. check = 0
  86. if(result != check) {{ fail(test, check, result); }} ++test;
  87. // Test 15: RHS constant
  88. x = -0.4;
  89. result = (x >>> 0)
  90. check = 0
  91. if(result != check) {{ fail(test, check, result); }} ++test;
  92. // Test 16: both arguments variables
  93. x = -0.5;
  94. y = 0;
  95. result = (x >>> y);
  96. check = 0;
  97. if(result != check) { fail(test, check, result); } ++test;
  98. // Test 17: both arguments constants
  99. result = (-0.5 >>> 0)
  100. check = 0
  101. if(result != check) {{ fail(test, check, result); }} ++test;
  102. // Test 18: LHS constant
  103. y = 0;
  104. result = (-0.5 >>> y)
  105. check = 0
  106. if(result != check) {{ fail(test, check, result); }} ++test;
  107. // Test 19: RHS constant
  108. x = -0.5;
  109. result = (x >>> 0)
  110. check = 0
  111. if(result != check) {{ fail(test, check, result); }} ++test;
  112. // Test 20: both arguments variables
  113. x = -0.6;
  114. y = 0;
  115. result = (x >>> y);
  116. check = 0;
  117. if(result != check) { fail(test, check, result); } ++test;
  118. // Test 21: both arguments constants
  119. result = (-0.6 >>> 0)
  120. check = 0
  121. if(result != check) {{ fail(test, check, result); }} ++test;
  122. // Test 22: LHS constant
  123. y = 0;
  124. result = (-0.6 >>> y)
  125. check = 0
  126. if(result != check) {{ fail(test, check, result); }} ++test;
  127. // Test 23: RHS constant
  128. x = -0.6;
  129. result = (x >>> 0)
  130. check = 0
  131. if(result != check) {{ fail(test, check, result); }} ++test;
  132. // Test 24: both arguments variables
  133. x = 1.4;
  134. y = 0;
  135. result = (x >>> y);
  136. check = 1;
  137. if(result != check) { fail(test, check, result); } ++test;
  138. // Test 25: both arguments constants
  139. result = (1.4 >>> 0)
  140. check = 1
  141. if(result != check) {{ fail(test, check, result); }} ++test;
  142. // Test 26: LHS constant
  143. y = 0;
  144. result = (1.4 >>> y)
  145. check = 1
  146. if(result != check) {{ fail(test, check, result); }} ++test;
  147. // Test 27: RHS constant
  148. x = 1.4;
  149. result = (x >>> 0)
  150. check = 1
  151. if(result != check) {{ fail(test, check, result); }} ++test;
  152. // Test 28: both arguments variables
  153. x = 1.5;
  154. y = 0;
  155. result = (x >>> y);
  156. check = 1;
  157. if(result != check) { fail(test, check, result); } ++test;
  158. // Test 29: both arguments constants
  159. result = (1.5 >>> 0)
  160. check = 1
  161. if(result != check) {{ fail(test, check, result); }} ++test;
  162. // Test 30: LHS constant
  163. y = 0;
  164. result = (1.5 >>> y)
  165. check = 1
  166. if(result != check) {{ fail(test, check, result); }} ++test;
  167. // Test 31: RHS constant
  168. x = 1.5;
  169. result = (x >>> 0)
  170. check = 1
  171. if(result != check) {{ fail(test, check, result); }} ++test;
  172. // Test 32: both arguments variables
  173. x = 1.6;
  174. y = 0;
  175. result = (x >>> y);
  176. check = 1;
  177. if(result != check) { fail(test, check, result); } ++test;
  178. // Test 33: both arguments constants
  179. result = (1.6 >>> 0)
  180. check = 1
  181. if(result != check) {{ fail(test, check, result); }} ++test;
  182. // Test 34: LHS constant
  183. y = 0;
  184. result = (1.6 >>> y)
  185. check = 1
  186. if(result != check) {{ fail(test, check, result); }} ++test;
  187. // Test 35: RHS constant
  188. x = 1.6;
  189. result = (x >>> 0)
  190. check = 1
  191. if(result != check) {{ fail(test, check, result); }} ++test;
  192. // Test 36: both arguments variables
  193. x = 0.6;
  194. y = 0;
  195. result = (x >>> y);
  196. check = 0;
  197. if(result != check) { fail(test, check, result); } ++test;
  198. // Test 37: both arguments constants
  199. result = (0.6 >>> 0)
  200. check = 0
  201. if(result != check) {{ fail(test, check, result); }} ++test;
  202. // Test 38: LHS constant
  203. y = 0;
  204. result = (0.6 >>> y)
  205. check = 0
  206. if(result != check) {{ fail(test, check, result); }} ++test;
  207. // Test 39: RHS constant
  208. x = 0.6;
  209. result = (x >>> 0)
  210. check = 0
  211. if(result != check) {{ fail(test, check, result); }} ++test;
  212. // Test 40: both arguments variables
  213. x = 0.5;
  214. y = 0;
  215. result = (x >>> y);
  216. check = 0;
  217. if(result != check) { fail(test, check, result); } ++test;
  218. // Test 41: both arguments constants
  219. result = (0.5 >>> 0)
  220. check = 0
  221. if(result != check) {{ fail(test, check, result); }} ++test;
  222. // Test 42: LHS constant
  223. y = 0;
  224. result = (0.5 >>> y)
  225. check = 0
  226. if(result != check) {{ fail(test, check, result); }} ++test;
  227. // Test 43: RHS constant
  228. x = 0.5;
  229. result = (x >>> 0)
  230. check = 0
  231. if(result != check) {{ fail(test, check, result); }} ++test;
  232. // Test 44: both arguments variables
  233. x = 0.4;
  234. y = 0;
  235. result = (x >>> y);
  236. check = 0;
  237. if(result != check) { fail(test, check, result); } ++test;
  238. // Test 45: both arguments constants
  239. result = (0.4 >>> 0)
  240. check = 0
  241. if(result != check) {{ fail(test, check, result); }} ++test;
  242. // Test 46: LHS constant
  243. y = 0;
  244. result = (0.4 >>> y)
  245. check = 0
  246. if(result != check) {{ fail(test, check, result); }} ++test;
  247. // Test 47: RHS constant
  248. x = 0.4;
  249. result = (x >>> 0)
  250. check = 0
  251. if(result != check) {{ fail(test, check, result); }} ++test;
  252. // Test 48: both arguments variables
  253. x = -0.6;
  254. y = 0;
  255. result = (x >>> y);
  256. check = 0;
  257. if(result != check) { fail(test, check, result); } ++test;
  258. // Test 49: both arguments constants
  259. result = (-0.6 >>> 0)
  260. check = 0
  261. if(result != check) {{ fail(test, check, result); }} ++test;
  262. // Test 50: LHS constant
  263. y = 0;
  264. result = (-0.6 >>> y)
  265. check = 0
  266. if(result != check) {{ fail(test, check, result); }} ++test;
  267. // Test 51: RHS constant
  268. x = -0.6;
  269. result = (x >>> 0)
  270. check = 0
  271. if(result != check) {{ fail(test, check, result); }} ++test;
  272. // Test 52: both arguments variables
  273. x = -0.5;
  274. y = 0;
  275. result = (x >>> y);
  276. check = 0;
  277. if(result != check) { fail(test, check, result); } ++test;
  278. // Test 53: both arguments constants
  279. result = (-0.5 >>> 0)
  280. check = 0
  281. if(result != check) {{ fail(test, check, result); }} ++test;
  282. // Test 54: LHS constant
  283. y = 0;
  284. result = (-0.5 >>> y)
  285. check = 0
  286. if(result != check) {{ fail(test, check, result); }} ++test;
  287. // Test 55: RHS constant
  288. x = -0.5;
  289. result = (x >>> 0)
  290. check = 0
  291. if(result != check) {{ fail(test, check, result); }} ++test;
  292. // Test 56: both arguments variables
  293. x = -0.4;
  294. y = 0;
  295. result = (x >>> y);
  296. check = 0;
  297. if(result != check) { fail(test, check, result); } ++test;
  298. // Test 57: both arguments constants
  299. result = (-0.4 >>> 0)
  300. check = 0
  301. if(result != check) {{ fail(test, check, result); }} ++test;
  302. // Test 58: LHS constant
  303. y = 0;
  304. result = (-0.4 >>> y)
  305. check = 0
  306. if(result != check) {{ fail(test, check, result); }} ++test;
  307. // Test 59: RHS constant
  308. x = -0.4;
  309. result = (x >>> 0)
  310. check = 0
  311. if(result != check) {{ fail(test, check, result); }} ++test;
  312. // Test 60: both arguments variables
  313. x = -1.4;
  314. y = 0;
  315. result = (x >>> y);
  316. check = 4294967295;
  317. if(result != check) { fail(test, check, result); } ++test;
  318. // Test 61: both arguments constants
  319. result = (-1.4 >>> 0)
  320. check = 4294967295
  321. if(result != check) {{ fail(test, check, result); }} ++test;
  322. // Test 62: LHS constant
  323. y = 0;
  324. result = (-1.4 >>> y)
  325. check = 4294967295
  326. if(result != check) {{ fail(test, check, result); }} ++test;
  327. // Test 63: RHS constant
  328. x = -1.4;
  329. result = (x >>> 0)
  330. check = 4294967295
  331. if(result != check) {{ fail(test, check, result); }} ++test;
  332. // Test 64: both arguments variables
  333. x = -1.5;
  334. y = 0;
  335. result = (x >>> y);
  336. check = 4294967295;
  337. if(result != check) { fail(test, check, result); } ++test;
  338. // Test 65: both arguments constants
  339. result = (-1.5 >>> 0)
  340. check = 4294967295
  341. if(result != check) {{ fail(test, check, result); }} ++test;
  342. // Test 66: LHS constant
  343. y = 0;
  344. result = (-1.5 >>> y)
  345. check = 4294967295
  346. if(result != check) {{ fail(test, check, result); }} ++test;
  347. // Test 67: RHS constant
  348. x = -1.5;
  349. result = (x >>> 0)
  350. check = 4294967295
  351. if(result != check) {{ fail(test, check, result); }} ++test;
  352. // Test 68: both arguments variables
  353. x = -1.6;
  354. y = 0;
  355. result = (x >>> y);
  356. check = 4294967295;
  357. if(result != check) { fail(test, check, result); } ++test;
  358. // Test 69: both arguments constants
  359. result = (-1.6 >>> 0)
  360. check = 4294967295
  361. if(result != check) {{ fail(test, check, result); }} ++test;
  362. // Test 70: LHS constant
  363. y = 0;
  364. result = (-1.6 >>> y)
  365. check = 4294967295
  366. if(result != check) {{ fail(test, check, result); }} ++test;
  367. // Test 71: RHS constant
  368. x = -1.6;
  369. result = (x >>> 0)
  370. check = 4294967295
  371. if(result != check) {{ fail(test, check, result); }} ++test;
  372. // Test 72: both arguments variables
  373. x = 2.4;
  374. y = 0;
  375. result = (x >>> y);
  376. check = 2;
  377. if(result != check) { fail(test, check, result); } ++test;
  378. // Test 73: both arguments constants
  379. result = (2.4 >>> 0)
  380. check = 2
  381. if(result != check) {{ fail(test, check, result); }} ++test;
  382. // Test 74: LHS constant
  383. y = 0;
  384. result = (2.4 >>> y)
  385. check = 2
  386. if(result != check) {{ fail(test, check, result); }} ++test;
  387. // Test 75: RHS constant
  388. x = 2.4;
  389. result = (x >>> 0)
  390. check = 2
  391. if(result != check) {{ fail(test, check, result); }} ++test;
  392. // Test 76: both arguments variables
  393. x = 2.5;
  394. y = 0;
  395. result = (x >>> y);
  396. check = 2;
  397. if(result != check) { fail(test, check, result); } ++test;
  398. // Test 77: both arguments constants
  399. result = (2.5 >>> 0)
  400. check = 2
  401. if(result != check) {{ fail(test, check, result); }} ++test;
  402. // Test 78: LHS constant
  403. y = 0;
  404. result = (2.5 >>> y)
  405. check = 2
  406. if(result != check) {{ fail(test, check, result); }} ++test;
  407. // Test 79: RHS constant
  408. x = 2.5;
  409. result = (x >>> 0)
  410. check = 2
  411. if(result != check) {{ fail(test, check, result); }} ++test;
  412. // Test 80: both arguments variables
  413. x = 2.6;
  414. y = 0;
  415. result = (x >>> y);
  416. check = 2;
  417. if(result != check) { fail(test, check, result); } ++test;
  418. // Test 81: both arguments constants
  419. result = (2.6 >>> 0)
  420. check = 2
  421. if(result != check) {{ fail(test, check, result); }} ++test;
  422. // Test 82: LHS constant
  423. y = 0;
  424. result = (2.6 >>> y)
  425. check = 2
  426. if(result != check) {{ fail(test, check, result); }} ++test;
  427. // Test 83: RHS constant
  428. x = 2.6;
  429. result = (x >>> 0)
  430. check = 2
  431. if(result != check) {{ fail(test, check, result); }} ++test;
  432. // Test 84: both arguments variables
  433. x = 1.6;
  434. y = 0;
  435. result = (x >>> y);
  436. check = 1;
  437. if(result != check) { fail(test, check, result); } ++test;
  438. // Test 85: both arguments constants
  439. result = (1.6 >>> 0)
  440. check = 1
  441. if(result != check) {{ fail(test, check, result); }} ++test;
  442. // Test 86: LHS constant
  443. y = 0;
  444. result = (1.6 >>> y)
  445. check = 1
  446. if(result != check) {{ fail(test, check, result); }} ++test;
  447. // Test 87: RHS constant
  448. x = 1.6;
  449. result = (x >>> 0)
  450. check = 1
  451. if(result != check) {{ fail(test, check, result); }} ++test;
  452. // Test 88: both arguments variables
  453. x = 1.5;
  454. y = 0;
  455. result = (x >>> y);
  456. check = 1;
  457. if(result != check) { fail(test, check, result); } ++test;
  458. // Test 89: both arguments constants
  459. result = (1.5 >>> 0)
  460. check = 1
  461. if(result != check) {{ fail(test, check, result); }} ++test;
  462. // Test 90: LHS constant
  463. y = 0;
  464. result = (1.5 >>> y)
  465. check = 1
  466. if(result != check) {{ fail(test, check, result); }} ++test;
  467. // Test 91: RHS constant
  468. x = 1.5;
  469. result = (x >>> 0)
  470. check = 1
  471. if(result != check) {{ fail(test, check, result); }} ++test;
  472. // Test 92: both arguments variables
  473. x = 1.4;
  474. y = 0;
  475. result = (x >>> y);
  476. check = 1;
  477. if(result != check) { fail(test, check, result); } ++test;
  478. // Test 93: both arguments constants
  479. result = (1.4 >>> 0)
  480. check = 1
  481. if(result != check) {{ fail(test, check, result); }} ++test;
  482. // Test 94: LHS constant
  483. y = 0;
  484. result = (1.4 >>> y)
  485. check = 1
  486. if(result != check) {{ fail(test, check, result); }} ++test;
  487. // Test 95: RHS constant
  488. x = 1.4;
  489. result = (x >>> 0)
  490. check = 1
  491. if(result != check) {{ fail(test, check, result); }} ++test;
  492. // Test 96: both arguments variables
  493. x = -1.6;
  494. y = 0;
  495. result = (x >>> y);
  496. check = 4294967295;
  497. if(result != check) { fail(test, check, result); } ++test;
  498. // Test 97: both arguments constants
  499. result = (-1.6 >>> 0)
  500. check = 4294967295
  501. if(result != check) {{ fail(test, check, result); }} ++test;
  502. // Test 98: LHS constant
  503. y = 0;
  504. result = (-1.6 >>> y)
  505. check = 4294967295
  506. if(result != check) {{ fail(test, check, result); }} ++test;
  507. // Test 99: RHS constant
  508. x = -1.6;
  509. result = (x >>> 0)
  510. check = 4294967295
  511. if(result != check) {{ fail(test, check, result); }} ++test;
  512. }
  513. function test1() {
  514. var x;
  515. var y;
  516. var result;
  517. var check;
  518. // Test 100: both arguments variables
  519. x = -1.5;
  520. y = 0;
  521. result = (x >>> y);
  522. check = 4294967295;
  523. if(result != check) { fail(test, check, result); } ++test;
  524. // Test 101: both arguments constants
  525. result = (-1.5 >>> 0)
  526. check = 4294967295
  527. if(result != check) {{ fail(test, check, result); }} ++test;
  528. // Test 102: LHS constant
  529. y = 0;
  530. result = (-1.5 >>> y)
  531. check = 4294967295
  532. if(result != check) {{ fail(test, check, result); }} ++test;
  533. // Test 103: RHS constant
  534. x = -1.5;
  535. result = (x >>> 0)
  536. check = 4294967295
  537. if(result != check) {{ fail(test, check, result); }} ++test;
  538. // Test 104: both arguments variables
  539. x = -1.4;
  540. y = 0;
  541. result = (x >>> y);
  542. check = 4294967295;
  543. if(result != check) { fail(test, check, result); } ++test;
  544. // Test 105: both arguments constants
  545. result = (-1.4 >>> 0)
  546. check = 4294967295
  547. if(result != check) {{ fail(test, check, result); }} ++test;
  548. // Test 106: LHS constant
  549. y = 0;
  550. result = (-1.4 >>> y)
  551. check = 4294967295
  552. if(result != check) {{ fail(test, check, result); }} ++test;
  553. // Test 107: RHS constant
  554. x = -1.4;
  555. result = (x >>> 0)
  556. check = 4294967295
  557. if(result != check) {{ fail(test, check, result); }} ++test;
  558. // Test 108: both arguments variables
  559. x = -2.4;
  560. y = 0;
  561. result = (x >>> y);
  562. check = 4294967294;
  563. if(result != check) { fail(test, check, result); } ++test;
  564. // Test 109: both arguments constants
  565. result = (-2.4 >>> 0)
  566. check = 4294967294
  567. if(result != check) {{ fail(test, check, result); }} ++test;
  568. // Test 110: LHS constant
  569. y = 0;
  570. result = (-2.4 >>> y)
  571. check = 4294967294
  572. if(result != check) {{ fail(test, check, result); }} ++test;
  573. // Test 111: RHS constant
  574. x = -2.4;
  575. result = (x >>> 0)
  576. check = 4294967294
  577. if(result != check) {{ fail(test, check, result); }} ++test;
  578. // Test 112: both arguments variables
  579. x = -2.5;
  580. y = 0;
  581. result = (x >>> y);
  582. check = 4294967294;
  583. if(result != check) { fail(test, check, result); } ++test;
  584. // Test 113: both arguments constants
  585. result = (-2.5 >>> 0)
  586. check = 4294967294
  587. if(result != check) {{ fail(test, check, result); }} ++test;
  588. // Test 114: LHS constant
  589. y = 0;
  590. result = (-2.5 >>> y)
  591. check = 4294967294
  592. if(result != check) {{ fail(test, check, result); }} ++test;
  593. // Test 115: RHS constant
  594. x = -2.5;
  595. result = (x >>> 0)
  596. check = 4294967294
  597. if(result != check) {{ fail(test, check, result); }} ++test;
  598. // Test 116: both arguments variables
  599. x = -2.6;
  600. y = 0;
  601. result = (x >>> y);
  602. check = 4294967294;
  603. if(result != check) { fail(test, check, result); } ++test;
  604. // Test 117: both arguments constants
  605. result = (-2.6 >>> 0)
  606. check = 4294967294
  607. if(result != check) {{ fail(test, check, result); }} ++test;
  608. // Test 118: LHS constant
  609. y = 0;
  610. result = (-2.6 >>> y)
  611. check = 4294967294
  612. if(result != check) {{ fail(test, check, result); }} ++test;
  613. // Test 119: RHS constant
  614. x = -2.6;
  615. result = (x >>> 0)
  616. check = 4294967294
  617. if(result != check) {{ fail(test, check, result); }} ++test;
  618. // Test 120: both arguments variables
  619. x = 3.4;
  620. y = 0;
  621. result = (x >>> y);
  622. check = 3;
  623. if(result != check) { fail(test, check, result); } ++test;
  624. // Test 121: both arguments constants
  625. result = (3.4 >>> 0)
  626. check = 3
  627. if(result != check) {{ fail(test, check, result); }} ++test;
  628. // Test 122: LHS constant
  629. y = 0;
  630. result = (3.4 >>> y)
  631. check = 3
  632. if(result != check) {{ fail(test, check, result); }} ++test;
  633. // Test 123: RHS constant
  634. x = 3.4;
  635. result = (x >>> 0)
  636. check = 3
  637. if(result != check) {{ fail(test, check, result); }} ++test;
  638. // Test 124: both arguments variables
  639. x = 3.5;
  640. y = 0;
  641. result = (x >>> y);
  642. check = 3;
  643. if(result != check) { fail(test, check, result); } ++test;
  644. // Test 125: both arguments constants
  645. result = (3.5 >>> 0)
  646. check = 3
  647. if(result != check) {{ fail(test, check, result); }} ++test;
  648. // Test 126: LHS constant
  649. y = 0;
  650. result = (3.5 >>> y)
  651. check = 3
  652. if(result != check) {{ fail(test, check, result); }} ++test;
  653. // Test 127: RHS constant
  654. x = 3.5;
  655. result = (x >>> 0)
  656. check = 3
  657. if(result != check) {{ fail(test, check, result); }} ++test;
  658. // Test 128: both arguments variables
  659. x = 3.6;
  660. y = 0;
  661. result = (x >>> y);
  662. check = 3;
  663. if(result != check) { fail(test, check, result); } ++test;
  664. // Test 129: both arguments constants
  665. result = (3.6 >>> 0)
  666. check = 3
  667. if(result != check) {{ fail(test, check, result); }} ++test;
  668. // Test 130: LHS constant
  669. y = 0;
  670. result = (3.6 >>> y)
  671. check = 3
  672. if(result != check) {{ fail(test, check, result); }} ++test;
  673. // Test 131: RHS constant
  674. x = 3.6;
  675. result = (x >>> 0)
  676. check = 3
  677. if(result != check) {{ fail(test, check, result); }} ++test;
  678. // Test 132: both arguments variables
  679. x = 2.6;
  680. y = 0;
  681. result = (x >>> y);
  682. check = 2;
  683. if(result != check) { fail(test, check, result); } ++test;
  684. // Test 133: both arguments constants
  685. result = (2.6 >>> 0)
  686. check = 2
  687. if(result != check) {{ fail(test, check, result); }} ++test;
  688. // Test 134: LHS constant
  689. y = 0;
  690. result = (2.6 >>> y)
  691. check = 2
  692. if(result != check) {{ fail(test, check, result); }} ++test;
  693. // Test 135: RHS constant
  694. x = 2.6;
  695. result = (x >>> 0)
  696. check = 2
  697. if(result != check) {{ fail(test, check, result); }} ++test;
  698. // Test 136: both arguments variables
  699. x = 2.5;
  700. y = 0;
  701. result = (x >>> y);
  702. check = 2;
  703. if(result != check) { fail(test, check, result); } ++test;
  704. // Test 137: both arguments constants
  705. result = (2.5 >>> 0)
  706. check = 2
  707. if(result != check) {{ fail(test, check, result); }} ++test;
  708. // Test 138: LHS constant
  709. y = 0;
  710. result = (2.5 >>> y)
  711. check = 2
  712. if(result != check) {{ fail(test, check, result); }} ++test;
  713. // Test 139: RHS constant
  714. x = 2.5;
  715. result = (x >>> 0)
  716. check = 2
  717. if(result != check) {{ fail(test, check, result); }} ++test;
  718. // Test 140: both arguments variables
  719. x = 2.4;
  720. y = 0;
  721. result = (x >>> y);
  722. check = 2;
  723. if(result != check) { fail(test, check, result); } ++test;
  724. // Test 141: both arguments constants
  725. result = (2.4 >>> 0)
  726. check = 2
  727. if(result != check) {{ fail(test, check, result); }} ++test;
  728. // Test 142: LHS constant
  729. y = 0;
  730. result = (2.4 >>> y)
  731. check = 2
  732. if(result != check) {{ fail(test, check, result); }} ++test;
  733. // Test 143: RHS constant
  734. x = 2.4;
  735. result = (x >>> 0)
  736. check = 2
  737. if(result != check) {{ fail(test, check, result); }} ++test;
  738. // Test 144: both arguments variables
  739. x = -2.6;
  740. y = 0;
  741. result = (x >>> y);
  742. check = 4294967294;
  743. if(result != check) { fail(test, check, result); } ++test;
  744. // Test 145: both arguments constants
  745. result = (-2.6 >>> 0)
  746. check = 4294967294
  747. if(result != check) {{ fail(test, check, result); }} ++test;
  748. // Test 146: LHS constant
  749. y = 0;
  750. result = (-2.6 >>> y)
  751. check = 4294967294
  752. if(result != check) {{ fail(test, check, result); }} ++test;
  753. // Test 147: RHS constant
  754. x = -2.6;
  755. result = (x >>> 0)
  756. check = 4294967294
  757. if(result != check) {{ fail(test, check, result); }} ++test;
  758. // Test 148: both arguments variables
  759. x = -2.5;
  760. y = 0;
  761. result = (x >>> y);
  762. check = 4294967294;
  763. if(result != check) { fail(test, check, result); } ++test;
  764. // Test 149: both arguments constants
  765. result = (-2.5 >>> 0)
  766. check = 4294967294
  767. if(result != check) {{ fail(test, check, result); }} ++test;
  768. // Test 150: LHS constant
  769. y = 0;
  770. result = (-2.5 >>> y)
  771. check = 4294967294
  772. if(result != check) {{ fail(test, check, result); }} ++test;
  773. // Test 151: RHS constant
  774. x = -2.5;
  775. result = (x >>> 0)
  776. check = 4294967294
  777. if(result != check) {{ fail(test, check, result); }} ++test;
  778. // Test 152: both arguments variables
  779. x = -2.4;
  780. y = 0;
  781. result = (x >>> y);
  782. check = 4294967294;
  783. if(result != check) { fail(test, check, result); } ++test;
  784. // Test 153: both arguments constants
  785. result = (-2.4 >>> 0)
  786. check = 4294967294
  787. if(result != check) {{ fail(test, check, result); }} ++test;
  788. // Test 154: LHS constant
  789. y = 0;
  790. result = (-2.4 >>> y)
  791. check = 4294967294
  792. if(result != check) {{ fail(test, check, result); }} ++test;
  793. // Test 155: RHS constant
  794. x = -2.4;
  795. result = (x >>> 0)
  796. check = 4294967294
  797. if(result != check) {{ fail(test, check, result); }} ++test;
  798. // Test 156: both arguments variables
  799. x = -3.4;
  800. y = 0;
  801. result = (x >>> y);
  802. check = 4294967293;
  803. if(result != check) { fail(test, check, result); } ++test;
  804. // Test 157: both arguments constants
  805. result = (-3.4 >>> 0)
  806. check = 4294967293
  807. if(result != check) {{ fail(test, check, result); }} ++test;
  808. // Test 158: LHS constant
  809. y = 0;
  810. result = (-3.4 >>> y)
  811. check = 4294967293
  812. if(result != check) {{ fail(test, check, result); }} ++test;
  813. // Test 159: RHS constant
  814. x = -3.4;
  815. result = (x >>> 0)
  816. check = 4294967293
  817. if(result != check) {{ fail(test, check, result); }} ++test;
  818. // Test 160: both arguments variables
  819. x = -3.5;
  820. y = 0;
  821. result = (x >>> y);
  822. check = 4294967293;
  823. if(result != check) { fail(test, check, result); } ++test;
  824. // Test 161: both arguments constants
  825. result = (-3.5 >>> 0)
  826. check = 4294967293
  827. if(result != check) {{ fail(test, check, result); }} ++test;
  828. // Test 162: LHS constant
  829. y = 0;
  830. result = (-3.5 >>> y)
  831. check = 4294967293
  832. if(result != check) {{ fail(test, check, result); }} ++test;
  833. // Test 163: RHS constant
  834. x = -3.5;
  835. result = (x >>> 0)
  836. check = 4294967293
  837. if(result != check) {{ fail(test, check, result); }} ++test;
  838. // Test 164: both arguments variables
  839. x = -3.6;
  840. y = 0;
  841. result = (x >>> y);
  842. check = 4294967293;
  843. if(result != check) { fail(test, check, result); } ++test;
  844. // Test 165: both arguments constants
  845. result = (-3.6 >>> 0)
  846. check = 4294967293
  847. if(result != check) {{ fail(test, check, result); }} ++test;
  848. // Test 166: LHS constant
  849. y = 0;
  850. result = (-3.6 >>> y)
  851. check = 4294967293
  852. if(result != check) {{ fail(test, check, result); }} ++test;
  853. // Test 167: RHS constant
  854. x = -3.6;
  855. result = (x >>> 0)
  856. check = 4294967293
  857. if(result != check) {{ fail(test, check, result); }} ++test;
  858. // Test 168: both arguments variables
  859. x = 4.4;
  860. y = 0;
  861. result = (x >>> y);
  862. check = 4;
  863. if(result != check) { fail(test, check, result); } ++test;
  864. // Test 169: both arguments constants
  865. result = (4.4 >>> 0)
  866. check = 4
  867. if(result != check) {{ fail(test, check, result); }} ++test;
  868. // Test 170: LHS constant
  869. y = 0;
  870. result = (4.4 >>> y)
  871. check = 4
  872. if(result != check) {{ fail(test, check, result); }} ++test;
  873. // Test 171: RHS constant
  874. x = 4.4;
  875. result = (x >>> 0)
  876. check = 4
  877. if(result != check) {{ fail(test, check, result); }} ++test;
  878. // Test 172: both arguments variables
  879. x = 4.5;
  880. y = 0;
  881. result = (x >>> y);
  882. check = 4;
  883. if(result != check) { fail(test, check, result); } ++test;
  884. // Test 173: both arguments constants
  885. result = (4.5 >>> 0)
  886. check = 4
  887. if(result != check) {{ fail(test, check, result); }} ++test;
  888. // Test 174: LHS constant
  889. y = 0;
  890. result = (4.5 >>> y)
  891. check = 4
  892. if(result != check) {{ fail(test, check, result); }} ++test;
  893. // Test 175: RHS constant
  894. x = 4.5;
  895. result = (x >>> 0)
  896. check = 4
  897. if(result != check) {{ fail(test, check, result); }} ++test;
  898. // Test 176: both arguments variables
  899. x = 4.6;
  900. y = 0;
  901. result = (x >>> y);
  902. check = 4;
  903. if(result != check) { fail(test, check, result); } ++test;
  904. // Test 177: both arguments constants
  905. result = (4.6 >>> 0)
  906. check = 4
  907. if(result != check) {{ fail(test, check, result); }} ++test;
  908. // Test 178: LHS constant
  909. y = 0;
  910. result = (4.6 >>> y)
  911. check = 4
  912. if(result != check) {{ fail(test, check, result); }} ++test;
  913. // Test 179: RHS constant
  914. x = 4.6;
  915. result = (x >>> 0)
  916. check = 4
  917. if(result != check) {{ fail(test, check, result); }} ++test;
  918. // Test 180: both arguments variables
  919. x = 3.6;
  920. y = 0;
  921. result = (x >>> y);
  922. check = 3;
  923. if(result != check) { fail(test, check, result); } ++test;
  924. // Test 181: both arguments constants
  925. result = (3.6 >>> 0)
  926. check = 3
  927. if(result != check) {{ fail(test, check, result); }} ++test;
  928. // Test 182: LHS constant
  929. y = 0;
  930. result = (3.6 >>> y)
  931. check = 3
  932. if(result != check) {{ fail(test, check, result); }} ++test;
  933. // Test 183: RHS constant
  934. x = 3.6;
  935. result = (x >>> 0)
  936. check = 3
  937. if(result != check) {{ fail(test, check, result); }} ++test;
  938. // Test 184: both arguments variables
  939. x = 3.5;
  940. y = 0;
  941. result = (x >>> y);
  942. check = 3;
  943. if(result != check) { fail(test, check, result); } ++test;
  944. // Test 185: both arguments constants
  945. result = (3.5 >>> 0)
  946. check = 3
  947. if(result != check) {{ fail(test, check, result); }} ++test;
  948. // Test 186: LHS constant
  949. y = 0;
  950. result = (3.5 >>> y)
  951. check = 3
  952. if(result != check) {{ fail(test, check, result); }} ++test;
  953. // Test 187: RHS constant
  954. x = 3.5;
  955. result = (x >>> 0)
  956. check = 3
  957. if(result != check) {{ fail(test, check, result); }} ++test;
  958. // Test 188: both arguments variables
  959. x = 3.4;
  960. y = 0;
  961. result = (x >>> y);
  962. check = 3;
  963. if(result != check) { fail(test, check, result); } ++test;
  964. // Test 189: both arguments constants
  965. result = (3.4 >>> 0)
  966. check = 3
  967. if(result != check) {{ fail(test, check, result); }} ++test;
  968. // Test 190: LHS constant
  969. y = 0;
  970. result = (3.4 >>> y)
  971. check = 3
  972. if(result != check) {{ fail(test, check, result); }} ++test;
  973. // Test 191: RHS constant
  974. x = 3.4;
  975. result = (x >>> 0)
  976. check = 3
  977. if(result != check) {{ fail(test, check, result); }} ++test;
  978. // Test 192: both arguments variables
  979. x = -3.6;
  980. y = 0;
  981. result = (x >>> y);
  982. check = 4294967293;
  983. if(result != check) { fail(test, check, result); } ++test;
  984. // Test 193: both arguments constants
  985. result = (-3.6 >>> 0)
  986. check = 4294967293
  987. if(result != check) {{ fail(test, check, result); }} ++test;
  988. // Test 194: LHS constant
  989. y = 0;
  990. result = (-3.6 >>> y)
  991. check = 4294967293
  992. if(result != check) {{ fail(test, check, result); }} ++test;
  993. // Test 195: RHS constant
  994. x = -3.6;
  995. result = (x >>> 0)
  996. check = 4294967293
  997. if(result != check) {{ fail(test, check, result); }} ++test;
  998. // Test 196: both arguments variables
  999. x = -3.5;
  1000. y = 0;
  1001. result = (x >>> y);
  1002. check = 4294967293;
  1003. if(result != check) { fail(test, check, result); } ++test;
  1004. // Test 197: both arguments constants
  1005. result = (-3.5 >>> 0)
  1006. check = 4294967293
  1007. if(result != check) {{ fail(test, check, result); }} ++test;
  1008. // Test 198: LHS constant
  1009. y = 0;
  1010. result = (-3.5 >>> y)
  1011. check = 4294967293
  1012. if(result != check) {{ fail(test, check, result); }} ++test;
  1013. // Test 199: RHS constant
  1014. x = -3.5;
  1015. result = (x >>> 0)
  1016. check = 4294967293
  1017. if(result != check) {{ fail(test, check, result); }} ++test;
  1018. }
  1019. function test2() {
  1020. var x;
  1021. var y;
  1022. var result;
  1023. var check;
  1024. // Test 200: both arguments variables
  1025. x = -3.4;
  1026. y = 0;
  1027. result = (x >>> y);
  1028. check = 4294967293;
  1029. if(result != check) { fail(test, check, result); } ++test;
  1030. // Test 201: both arguments constants
  1031. result = (-3.4 >>> 0)
  1032. check = 4294967293
  1033. if(result != check) {{ fail(test, check, result); }} ++test;
  1034. // Test 202: LHS constant
  1035. y = 0;
  1036. result = (-3.4 >>> y)
  1037. check = 4294967293
  1038. if(result != check) {{ fail(test, check, result); }} ++test;
  1039. // Test 203: RHS constant
  1040. x = -3.4;
  1041. result = (x >>> 0)
  1042. check = 4294967293
  1043. if(result != check) {{ fail(test, check, result); }} ++test;
  1044. // Test 204: both arguments variables
  1045. x = -4.4;
  1046. y = 0;
  1047. result = (x >>> y);
  1048. check = 4294967292;
  1049. if(result != check) { fail(test, check, result); } ++test;
  1050. // Test 205: both arguments constants
  1051. result = (-4.4 >>> 0)
  1052. check = 4294967292
  1053. if(result != check) {{ fail(test, check, result); }} ++test;
  1054. // Test 206: LHS constant
  1055. y = 0;
  1056. result = (-4.4 >>> y)
  1057. check = 4294967292
  1058. if(result != check) {{ fail(test, check, result); }} ++test;
  1059. // Test 207: RHS constant
  1060. x = -4.4;
  1061. result = (x >>> 0)
  1062. check = 4294967292
  1063. if(result != check) {{ fail(test, check, result); }} ++test;
  1064. // Test 208: both arguments variables
  1065. x = -4.5;
  1066. y = 0;
  1067. result = (x >>> y);
  1068. check = 4294967292;
  1069. if(result != check) { fail(test, check, result); } ++test;
  1070. // Test 209: both arguments constants
  1071. result = (-4.5 >>> 0)
  1072. check = 4294967292
  1073. if(result != check) {{ fail(test, check, result); }} ++test;
  1074. // Test 210: LHS constant
  1075. y = 0;
  1076. result = (-4.5 >>> y)
  1077. check = 4294967292
  1078. if(result != check) {{ fail(test, check, result); }} ++test;
  1079. // Test 211: RHS constant
  1080. x = -4.5;
  1081. result = (x >>> 0)
  1082. check = 4294967292
  1083. if(result != check) {{ fail(test, check, result); }} ++test;
  1084. // Test 212: both arguments variables
  1085. x = -4.6;
  1086. y = 0;
  1087. result = (x >>> y);
  1088. check = 4294967292;
  1089. if(result != check) { fail(test, check, result); } ++test;
  1090. // Test 213: both arguments constants
  1091. result = (-4.6 >>> 0)
  1092. check = 4294967292
  1093. if(result != check) {{ fail(test, check, result); }} ++test;
  1094. // Test 214: LHS constant
  1095. y = 0;
  1096. result = (-4.6 >>> y)
  1097. check = 4294967292
  1098. if(result != check) {{ fail(test, check, result); }} ++test;
  1099. // Test 215: RHS constant
  1100. x = -4.6;
  1101. result = (x >>> 0)
  1102. check = 4294967292
  1103. if(result != check) {{ fail(test, check, result); }} ++test;
  1104. // Test 216: both arguments variables
  1105. x = 8.4;
  1106. y = 0;
  1107. result = (x >>> y);
  1108. check = 8;
  1109. if(result != check) { fail(test, check, result); } ++test;
  1110. // Test 217: both arguments constants
  1111. result = (8.4 >>> 0)
  1112. check = 8
  1113. if(result != check) {{ fail(test, check, result); }} ++test;
  1114. // Test 218: LHS constant
  1115. y = 0;
  1116. result = (8.4 >>> y)
  1117. check = 8
  1118. if(result != check) {{ fail(test, check, result); }} ++test;
  1119. // Test 219: RHS constant
  1120. x = 8.4;
  1121. result = (x >>> 0)
  1122. check = 8
  1123. if(result != check) {{ fail(test, check, result); }} ++test;
  1124. // Test 220: both arguments variables
  1125. x = 8.5;
  1126. y = 0;
  1127. result = (x >>> y);
  1128. check = 8;
  1129. if(result != check) { fail(test, check, result); } ++test;
  1130. // Test 221: both arguments constants
  1131. result = (8.5 >>> 0)
  1132. check = 8
  1133. if(result != check) {{ fail(test, check, result); }} ++test;
  1134. // Test 222: LHS constant
  1135. y = 0;
  1136. result = (8.5 >>> y)
  1137. check = 8
  1138. if(result != check) {{ fail(test, check, result); }} ++test;
  1139. // Test 223: RHS constant
  1140. x = 8.5;
  1141. result = (x >>> 0)
  1142. check = 8
  1143. if(result != check) {{ fail(test, check, result); }} ++test;
  1144. // Test 224: both arguments variables
  1145. x = 8.6;
  1146. y = 0;
  1147. result = (x >>> y);
  1148. check = 8;
  1149. if(result != check) { fail(test, check, result); } ++test;
  1150. // Test 225: both arguments constants
  1151. result = (8.6 >>> 0)
  1152. check = 8
  1153. if(result != check) {{ fail(test, check, result); }} ++test;
  1154. // Test 226: LHS constant
  1155. y = 0;
  1156. result = (8.6 >>> y)
  1157. check = 8
  1158. if(result != check) {{ fail(test, check, result); }} ++test;
  1159. // Test 227: RHS constant
  1160. x = 8.6;
  1161. result = (x >>> 0)
  1162. check = 8
  1163. if(result != check) {{ fail(test, check, result); }} ++test;
  1164. // Test 228: both arguments variables
  1165. x = 7.6;
  1166. y = 0;
  1167. result = (x >>> y);
  1168. check = 7;
  1169. if(result != check) { fail(test, check, result); } ++test;
  1170. // Test 229: both arguments constants
  1171. result = (7.6 >>> 0)
  1172. check = 7
  1173. if(result != check) {{ fail(test, check, result); }} ++test;
  1174. // Test 230: LHS constant
  1175. y = 0;
  1176. result = (7.6 >>> y)
  1177. check = 7
  1178. if(result != check) {{ fail(test, check, result); }} ++test;
  1179. // Test 231: RHS constant
  1180. x = 7.6;
  1181. result = (x >>> 0)
  1182. check = 7
  1183. if(result != check) {{ fail(test, check, result); }} ++test;
  1184. // Test 232: both arguments variables
  1185. x = 7.5;
  1186. y = 0;
  1187. result = (x >>> y);
  1188. check = 7;
  1189. if(result != check) { fail(test, check, result); } ++test;
  1190. // Test 233: both arguments constants
  1191. result = (7.5 >>> 0)
  1192. check = 7
  1193. if(result != check) {{ fail(test, check, result); }} ++test;
  1194. // Test 234: LHS constant
  1195. y = 0;
  1196. result = (7.5 >>> y)
  1197. check = 7
  1198. if(result != check) {{ fail(test, check, result); }} ++test;
  1199. // Test 235: RHS constant
  1200. x = 7.5;
  1201. result = (x >>> 0)
  1202. check = 7
  1203. if(result != check) {{ fail(test, check, result); }} ++test;
  1204. // Test 236: both arguments variables
  1205. x = 7.4;
  1206. y = 0;
  1207. result = (x >>> y);
  1208. check = 7;
  1209. if(result != check) { fail(test, check, result); } ++test;
  1210. // Test 237: both arguments constants
  1211. result = (7.4 >>> 0)
  1212. check = 7
  1213. if(result != check) {{ fail(test, check, result); }} ++test;
  1214. // Test 238: LHS constant
  1215. y = 0;
  1216. result = (7.4 >>> y)
  1217. check = 7
  1218. if(result != check) {{ fail(test, check, result); }} ++test;
  1219. // Test 239: RHS constant
  1220. x = 7.4;
  1221. result = (x >>> 0)
  1222. check = 7
  1223. if(result != check) {{ fail(test, check, result); }} ++test;
  1224. // Test 240: both arguments variables
  1225. x = -7.6;
  1226. y = 0;
  1227. result = (x >>> y);
  1228. check = 4294967289;
  1229. if(result != check) { fail(test, check, result); } ++test;
  1230. // Test 241: both arguments constants
  1231. result = (-7.6 >>> 0)
  1232. check = 4294967289
  1233. if(result != check) {{ fail(test, check, result); }} ++test;
  1234. // Test 242: LHS constant
  1235. y = 0;
  1236. result = (-7.6 >>> y)
  1237. check = 4294967289
  1238. if(result != check) {{ fail(test, check, result); }} ++test;
  1239. // Test 243: RHS constant
  1240. x = -7.6;
  1241. result = (x >>> 0)
  1242. check = 4294967289
  1243. if(result != check) {{ fail(test, check, result); }} ++test;
  1244. // Test 244: both arguments variables
  1245. x = -7.5;
  1246. y = 0;
  1247. result = (x >>> y);
  1248. check = 4294967289;
  1249. if(result != check) { fail(test, check, result); } ++test;
  1250. // Test 245: both arguments constants
  1251. result = (-7.5 >>> 0)
  1252. check = 4294967289
  1253. if(result != check) {{ fail(test, check, result); }} ++test;
  1254. // Test 246: LHS constant
  1255. y = 0;
  1256. result = (-7.5 >>> y)
  1257. check = 4294967289
  1258. if(result != check) {{ fail(test, check, result); }} ++test;
  1259. // Test 247: RHS constant
  1260. x = -7.5;
  1261. result = (x >>> 0)
  1262. check = 4294967289
  1263. if(result != check) {{ fail(test, check, result); }} ++test;
  1264. // Test 248: both arguments variables
  1265. x = -7.4;
  1266. y = 0;
  1267. result = (x >>> y);
  1268. check = 4294967289;
  1269. if(result != check) { fail(test, check, result); } ++test;
  1270. // Test 249: both arguments constants
  1271. result = (-7.4 >>> 0)
  1272. check = 4294967289
  1273. if(result != check) {{ fail(test, check, result); }} ++test;
  1274. // Test 250: LHS constant
  1275. y = 0;
  1276. result = (-7.4 >>> y)
  1277. check = 4294967289
  1278. if(result != check) {{ fail(test, check, result); }} ++test;
  1279. // Test 251: RHS constant
  1280. x = -7.4;
  1281. result = (x >>> 0)
  1282. check = 4294967289
  1283. if(result != check) {{ fail(test, check, result); }} ++test;
  1284. // Test 252: both arguments variables
  1285. x = -8.4;
  1286. y = 0;
  1287. result = (x >>> y);
  1288. check = 4294967288;
  1289. if(result != check) { fail(test, check, result); } ++test;
  1290. // Test 253: both arguments constants
  1291. result = (-8.4 >>> 0)
  1292. check = 4294967288
  1293. if(result != check) {{ fail(test, check, result); }} ++test;
  1294. // Test 254: LHS constant
  1295. y = 0;
  1296. result = (-8.4 >>> y)
  1297. check = 4294967288
  1298. if(result != check) {{ fail(test, check, result); }} ++test;
  1299. // Test 255: RHS constant
  1300. x = -8.4;
  1301. result = (x >>> 0)
  1302. check = 4294967288
  1303. if(result != check) {{ fail(test, check, result); }} ++test;
  1304. // Test 256: both arguments variables
  1305. x = -8.5;
  1306. y = 0;
  1307. result = (x >>> y);
  1308. check = 4294967288;
  1309. if(result != check) { fail(test, check, result); } ++test;
  1310. // Test 257: both arguments constants
  1311. result = (-8.5 >>> 0)
  1312. check = 4294967288
  1313. if(result != check) {{ fail(test, check, result); }} ++test;
  1314. // Test 258: LHS constant
  1315. y = 0;
  1316. result = (-8.5 >>> y)
  1317. check = 4294967288
  1318. if(result != check) {{ fail(test, check, result); }} ++test;
  1319. // Test 259: RHS constant
  1320. x = -8.5;
  1321. result = (x >>> 0)
  1322. check = 4294967288
  1323. if(result != check) {{ fail(test, check, result); }} ++test;
  1324. // Test 260: both arguments variables
  1325. x = -8.6;
  1326. y = 0;
  1327. result = (x >>> y);
  1328. check = 4294967288;
  1329. if(result != check) { fail(test, check, result); } ++test;
  1330. // Test 261: both arguments constants
  1331. result = (-8.6 >>> 0)
  1332. check = 4294967288
  1333. if(result != check) {{ fail(test, check, result); }} ++test;
  1334. // Test 262: LHS constant
  1335. y = 0;
  1336. result = (-8.6 >>> y)
  1337. check = 4294967288
  1338. if(result != check) {{ fail(test, check, result); }} ++test;
  1339. // Test 263: RHS constant
  1340. x = -8.6;
  1341. result = (x >>> 0)
  1342. check = 4294967288
  1343. if(result != check) {{ fail(test, check, result); }} ++test;
  1344. // Test 264: both arguments variables
  1345. x = 1073741822.4;
  1346. y = 0;
  1347. result = (x >>> y);
  1348. check = 1073741822;
  1349. if(result != check) { fail(test, check, result); } ++test;
  1350. // Test 265: both arguments constants
  1351. result = (1073741822.4 >>> 0)
  1352. check = 1073741822
  1353. if(result != check) {{ fail(test, check, result); }} ++test;
  1354. // Test 266: LHS constant
  1355. y = 0;
  1356. result = (1073741822.4 >>> y)
  1357. check = 1073741822
  1358. if(result != check) {{ fail(test, check, result); }} ++test;
  1359. // Test 267: RHS constant
  1360. x = 1073741822.4;
  1361. result = (x >>> 0)
  1362. check = 1073741822
  1363. if(result != check) {{ fail(test, check, result); }} ++test;
  1364. // Test 268: both arguments variables
  1365. x = 1073741822.5;
  1366. y = 0;
  1367. result = (x >>> y);
  1368. check = 1073741822;
  1369. if(result != check) { fail(test, check, result); } ++test;
  1370. // Test 269: both arguments constants
  1371. result = (1073741822.5 >>> 0)
  1372. check = 1073741822
  1373. if(result != check) {{ fail(test, check, result); }} ++test;
  1374. // Test 270: LHS constant
  1375. y = 0;
  1376. result = (1073741822.5 >>> y)
  1377. check = 1073741822
  1378. if(result != check) {{ fail(test, check, result); }} ++test;
  1379. // Test 271: RHS constant
  1380. x = 1073741822.5;
  1381. result = (x >>> 0)
  1382. check = 1073741822
  1383. if(result != check) {{ fail(test, check, result); }} ++test;
  1384. // Test 272: both arguments variables
  1385. x = 1073741822.6;
  1386. y = 0;
  1387. result = (x >>> y);
  1388. check = 1073741822;
  1389. if(result != check) { fail(test, check, result); } ++test;
  1390. // Test 273: both arguments constants
  1391. result = (1073741822.6 >>> 0)
  1392. check = 1073741822
  1393. if(result != check) {{ fail(test, check, result); }} ++test;
  1394. // Test 274: LHS constant
  1395. y = 0;
  1396. result = (1073741822.6 >>> y)
  1397. check = 1073741822
  1398. if(result != check) {{ fail(test, check, result); }} ++test;
  1399. // Test 275: RHS constant
  1400. x = 1073741822.6;
  1401. result = (x >>> 0)
  1402. check = 1073741822
  1403. if(result != check) {{ fail(test, check, result); }} ++test;
  1404. // Test 276: both arguments variables
  1405. x = 1073741821.6;
  1406. y = 0;
  1407. result = (x >>> y);
  1408. check = 1073741821;
  1409. if(result != check) { fail(test, check, result); } ++test;
  1410. // Test 277: both arguments constants
  1411. result = (1073741821.6 >>> 0)
  1412. check = 1073741821
  1413. if(result != check) {{ fail(test, check, result); }} ++test;
  1414. // Test 278: LHS constant
  1415. y = 0;
  1416. result = (1073741821.6 >>> y)
  1417. check = 1073741821
  1418. if(result != check) {{ fail(test, check, result); }} ++test;
  1419. // Test 279: RHS constant
  1420. x = 1073741821.6;
  1421. result = (x >>> 0)
  1422. check = 1073741821
  1423. if(result != check) {{ fail(test, check, result); }} ++test;
  1424. // Test 280: both arguments variables
  1425. x = 1073741821.5;
  1426. y = 0;
  1427. result = (x >>> y);
  1428. check = 1073741821;
  1429. if(result != check) { fail(test, check, result); } ++test;
  1430. // Test 281: both arguments constants
  1431. result = (1073741821.5 >>> 0)
  1432. check = 1073741821
  1433. if(result != check) {{ fail(test, check, result); }} ++test;
  1434. // Test 282: LHS constant
  1435. y = 0;
  1436. result = (1073741821.5 >>> y)
  1437. check = 1073741821
  1438. if(result != check) {{ fail(test, check, result); }} ++test;
  1439. // Test 283: RHS constant
  1440. x = 1073741821.5;
  1441. result = (x >>> 0)
  1442. check = 1073741821
  1443. if(result != check) {{ fail(test, check, result); }} ++test;
  1444. // Test 284: both arguments variables
  1445. x = 1073741821.4;
  1446. y = 0;
  1447. result = (x >>> y);
  1448. check = 1073741821;
  1449. if(result != check) { fail(test, check, result); } ++test;
  1450. // Test 285: both arguments constants
  1451. result = (1073741821.4 >>> 0)
  1452. check = 1073741821
  1453. if(result != check) {{ fail(test, check, result); }} ++test;
  1454. // Test 286: LHS constant
  1455. y = 0;
  1456. result = (1073741821.4 >>> y)
  1457. check = 1073741821
  1458. if(result != check) {{ fail(test, check, result); }} ++test;
  1459. // Test 287: RHS constant
  1460. x = 1073741821.4;
  1461. result = (x >>> 0)
  1462. check = 1073741821
  1463. if(result != check) {{ fail(test, check, result); }} ++test;
  1464. // Test 288: both arguments variables
  1465. x = 1073741823.4;
  1466. y = 0;
  1467. result = (x >>> y);
  1468. check = 1073741823;
  1469. if(result != check) { fail(test, check, result); } ++test;
  1470. // Test 289: both arguments constants
  1471. result = (1073741823.4 >>> 0)
  1472. check = 1073741823
  1473. if(result != check) {{ fail(test, check, result); }} ++test;
  1474. // Test 290: LHS constant
  1475. y = 0;
  1476. result = (1073741823.4 >>> y)
  1477. check = 1073741823
  1478. if(result != check) {{ fail(test, check, result); }} ++test;
  1479. // Test 291: RHS constant
  1480. x = 1073741823.4;
  1481. result = (x >>> 0)
  1482. check = 1073741823
  1483. if(result != check) {{ fail(test, check, result); }} ++test;
  1484. // Test 292: both arguments variables
  1485. x = 1073741823.5;
  1486. y = 0;
  1487. result = (x >>> y);
  1488. check = 1073741823;
  1489. if(result != check) { fail(test, check, result); } ++test;
  1490. // Test 293: both arguments constants
  1491. result = (1073741823.5 >>> 0)
  1492. check = 1073741823
  1493. if(result != check) {{ fail(test, check, result); }} ++test;
  1494. // Test 294: LHS constant
  1495. y = 0;
  1496. result = (1073741823.5 >>> y)
  1497. check = 1073741823
  1498. if(result != check) {{ fail(test, check, result); }} ++test;
  1499. // Test 295: RHS constant
  1500. x = 1073741823.5;
  1501. result = (x >>> 0)
  1502. check = 1073741823
  1503. if(result != check) {{ fail(test, check, result); }} ++test;
  1504. // Test 296: both arguments variables
  1505. x = 1073741823.6;
  1506. y = 0;
  1507. result = (x >>> y);
  1508. check = 1073741823;
  1509. if(result != check) { fail(test, check, result); } ++test;
  1510. // Test 297: both arguments constants
  1511. result = (1073741823.6 >>> 0)
  1512. check = 1073741823
  1513. if(result != check) {{ fail(test, check, result); }} ++test;
  1514. // Test 298: LHS constant
  1515. y = 0;
  1516. result = (1073741823.6 >>> y)
  1517. check = 1073741823
  1518. if(result != check) {{ fail(test, check, result); }} ++test;
  1519. // Test 299: RHS constant
  1520. x = 1073741823.6;
  1521. result = (x >>> 0)
  1522. check = 1073741823
  1523. if(result != check) {{ fail(test, check, result); }} ++test;
  1524. }
  1525. function test3() {
  1526. var x;
  1527. var y;
  1528. var result;
  1529. var check;
  1530. // Test 300: both arguments variables
  1531. x = 1073741822.6;
  1532. y = 0;
  1533. result = (x >>> y);
  1534. check = 1073741822;
  1535. if(result != check) { fail(test, check, result); } ++test;
  1536. // Test 301: both arguments constants
  1537. result = (1073741822.6 >>> 0)
  1538. check = 1073741822
  1539. if(result != check) {{ fail(test, check, result); }} ++test;
  1540. // Test 302: LHS constant
  1541. y = 0;
  1542. result = (1073741822.6 >>> y)
  1543. check = 1073741822
  1544. if(result != check) {{ fail(test, check, result); }} ++test;
  1545. // Test 303: RHS constant
  1546. x = 1073741822.6;
  1547. result = (x >>> 0)
  1548. check = 1073741822
  1549. if(result != check) {{ fail(test, check, result); }} ++test;
  1550. // Test 304: both arguments variables
  1551. x = 1073741822.5;
  1552. y = 0;
  1553. result = (x >>> y);
  1554. check = 1073741822;
  1555. if(result != check) { fail(test, check, result); } ++test;
  1556. // Test 305: both arguments constants
  1557. result = (1073741822.5 >>> 0)
  1558. check = 1073741822
  1559. if(result != check) {{ fail(test, check, result); }} ++test;
  1560. // Test 306: LHS constant
  1561. y = 0;
  1562. result = (1073741822.5 >>> y)
  1563. check = 1073741822
  1564. if(result != check) {{ fail(test, check, result); }} ++test;
  1565. // Test 307: RHS constant
  1566. x = 1073741822.5;
  1567. result = (x >>> 0)
  1568. check = 1073741822
  1569. if(result != check) {{ fail(test, check, result); }} ++test;
  1570. // Test 308: both arguments variables
  1571. x = 1073741822.4;
  1572. y = 0;
  1573. result = (x >>> y);
  1574. check = 1073741822;
  1575. if(result != check) { fail(test, check, result); } ++test;
  1576. // Test 309: both arguments constants
  1577. result = (1073741822.4 >>> 0)
  1578. check = 1073741822
  1579. if(result != check) {{ fail(test, check, result); }} ++test;
  1580. // Test 310: LHS constant
  1581. y = 0;
  1582. result = (1073741822.4 >>> y)
  1583. check = 1073741822
  1584. if(result != check) {{ fail(test, check, result); }} ++test;
  1585. // Test 311: RHS constant
  1586. x = 1073741822.4;
  1587. result = (x >>> 0)
  1588. check = 1073741822
  1589. if(result != check) {{ fail(test, check, result); }} ++test;
  1590. // Test 312: both arguments variables
  1591. x = 1073741824.4;
  1592. y = 0;
  1593. result = (x >>> y);
  1594. check = 1073741824;
  1595. if(result != check) { fail(test, check, result); } ++test;
  1596. // Test 313: both arguments constants
  1597. result = (1073741824.4 >>> 0)
  1598. check = 1073741824
  1599. if(result != check) {{ fail(test, check, result); }} ++test;
  1600. // Test 314: LHS constant
  1601. y = 0;
  1602. result = (1073741824.4 >>> y)
  1603. check = 1073741824
  1604. if(result != check) {{ fail(test, check, result); }} ++test;
  1605. // Test 315: RHS constant
  1606. x = 1073741824.4;
  1607. result = (x >>> 0)
  1608. check = 1073741824
  1609. if(result != check) {{ fail(test, check, result); }} ++test;
  1610. // Test 316: both arguments variables
  1611. x = 1073741824.5;
  1612. y = 0;
  1613. result = (x >>> y);
  1614. check = 1073741824;
  1615. if(result != check) { fail(test, check, result); } ++test;
  1616. // Test 317: both arguments constants
  1617. result = (1073741824.5 >>> 0)
  1618. check = 1073741824
  1619. if(result != check) {{ fail(test, check, result); }} ++test;
  1620. // Test 318: LHS constant
  1621. y = 0;
  1622. result = (1073741824.5 >>> y)
  1623. check = 1073741824
  1624. if(result != check) {{ fail(test, check, result); }} ++test;
  1625. // Test 319: RHS constant
  1626. x = 1073741824.5;
  1627. result = (x >>> 0)
  1628. check = 1073741824
  1629. if(result != check) {{ fail(test, check, result); }} ++test;
  1630. // Test 320: both arguments variables
  1631. x = 1073741824.6;
  1632. y = 0;
  1633. result = (x >>> y);
  1634. check = 1073741824;
  1635. if(result != check) { fail(test, check, result); } ++test;
  1636. // Test 321: both arguments constants
  1637. result = (1073741824.6 >>> 0)
  1638. check = 1073741824
  1639. if(result != check) {{ fail(test, check, result); }} ++test;
  1640. // Test 322: LHS constant
  1641. y = 0;
  1642. result = (1073741824.6 >>> y)
  1643. check = 1073741824
  1644. if(result != check) {{ fail(test, check, result); }} ++test;
  1645. // Test 323: RHS constant
  1646. x = 1073741824.6;
  1647. result = (x >>> 0)
  1648. check = 1073741824
  1649. if(result != check) {{ fail(test, check, result); }} ++test;
  1650. // Test 324: both arguments variables
  1651. x = 1073741823.6;
  1652. y = 0;
  1653. result = (x >>> y);
  1654. check = 1073741823;
  1655. if(result != check) { fail(test, check, result); } ++test;
  1656. // Test 325: both arguments constants
  1657. result = (1073741823.6 >>> 0)
  1658. check = 1073741823
  1659. if(result != check) {{ fail(test, check, result); }} ++test;
  1660. // Test 326: LHS constant
  1661. y = 0;
  1662. result = (1073741823.6 >>> y)
  1663. check = 1073741823
  1664. if(result != check) {{ fail(test, check, result); }} ++test;
  1665. // Test 327: RHS constant
  1666. x = 1073741823.6;
  1667. result = (x >>> 0)
  1668. check = 1073741823
  1669. if(result != check) {{ fail(test, check, result); }} ++test;
  1670. // Test 328: both arguments variables
  1671. x = 1073741823.5;
  1672. y = 0;
  1673. result = (x >>> y);
  1674. check = 1073741823;
  1675. if(result != check) { fail(test, check, result); } ++test;
  1676. // Test 329: both arguments constants
  1677. result = (1073741823.5 >>> 0)
  1678. check = 1073741823
  1679. if(result != check) {{ fail(test, check, result); }} ++test;
  1680. // Test 330: LHS constant
  1681. y = 0;
  1682. result = (1073741823.5 >>> y)
  1683. check = 1073741823
  1684. if(result != check) {{ fail(test, check, result); }} ++test;
  1685. // Test 331: RHS constant
  1686. x = 1073741823.5;
  1687. result = (x >>> 0)
  1688. check = 1073741823
  1689. if(result != check) {{ fail(test, check, result); }} ++test;
  1690. // Test 332: both arguments variables
  1691. x = 1073741823.4;
  1692. y = 0;
  1693. result = (x >>> y);
  1694. check = 1073741823;
  1695. if(result != check) { fail(test, check, result); } ++test;
  1696. // Test 333: both arguments constants
  1697. result = (1073741823.4 >>> 0)
  1698. check = 1073741823
  1699. if(result != check) {{ fail(test, check, result); }} ++test;
  1700. // Test 334: LHS constant
  1701. y = 0;
  1702. result = (1073741823.4 >>> y)
  1703. check = 1073741823
  1704. if(result != check) {{ fail(test, check, result); }} ++test;
  1705. // Test 335: RHS constant
  1706. x = 1073741823.4;
  1707. result = (x >>> 0)
  1708. check = 1073741823
  1709. if(result != check) {{ fail(test, check, result); }} ++test;
  1710. // Test 336: both arguments variables
  1711. x = 1073741825.4;
  1712. y = 0;
  1713. result = (x >>> y);
  1714. check = 1073741825;
  1715. if(result != check) { fail(test, check, result); } ++test;
  1716. // Test 337: both arguments constants
  1717. result = (1073741825.4 >>> 0)
  1718. check = 1073741825
  1719. if(result != check) {{ fail(test, check, result); }} ++test;
  1720. // Test 338: LHS constant
  1721. y = 0;
  1722. result = (1073741825.4 >>> y)
  1723. check = 1073741825
  1724. if(result != check) {{ fail(test, check, result); }} ++test;
  1725. // Test 339: RHS constant
  1726. x = 1073741825.4;
  1727. result = (x >>> 0)
  1728. check = 1073741825
  1729. if(result != check) {{ fail(test, check, result); }} ++test;
  1730. // Test 340: both arguments variables
  1731. x = 1073741825.5;
  1732. y = 0;
  1733. result = (x >>> y);
  1734. check = 1073741825;
  1735. if(result != check) { fail(test, check, result); } ++test;
  1736. // Test 341: both arguments constants
  1737. result = (1073741825.5 >>> 0)
  1738. check = 1073741825
  1739. if(result != check) {{ fail(test, check, result); }} ++test;
  1740. // Test 342: LHS constant
  1741. y = 0;
  1742. result = (1073741825.5 >>> y)
  1743. check = 1073741825
  1744. if(result != check) {{ fail(test, check, result); }} ++test;
  1745. // Test 343: RHS constant
  1746. x = 1073741825.5;
  1747. result = (x >>> 0)
  1748. check = 1073741825
  1749. if(result != check) {{ fail(test, check, result); }} ++test;
  1750. // Test 344: both arguments variables
  1751. x = 1073741825.6;
  1752. y = 0;
  1753. result = (x >>> y);
  1754. check = 1073741825;
  1755. if(result != check) { fail(test, check, result); } ++test;
  1756. // Test 345: both arguments constants
  1757. result = (1073741825.6 >>> 0)
  1758. check = 1073741825
  1759. if(result != check) {{ fail(test, check, result); }} ++test;
  1760. // Test 346: LHS constant
  1761. y = 0;
  1762. result = (1073741825.6 >>> y)
  1763. check = 1073741825
  1764. if(result != check) {{ fail(test, check, result); }} ++test;
  1765. // Test 347: RHS constant
  1766. x = 1073741825.6;
  1767. result = (x >>> 0)
  1768. check = 1073741825
  1769. if(result != check) {{ fail(test, check, result); }} ++test;
  1770. // Test 348: both arguments variables
  1771. x = 1073741824.6;
  1772. y = 0;
  1773. result = (x >>> y);
  1774. check = 1073741824;
  1775. if(result != check) { fail(test, check, result); } ++test;
  1776. // Test 349: both arguments constants
  1777. result = (1073741824.6 >>> 0)
  1778. check = 1073741824
  1779. if(result != check) {{ fail(test, check, result); }} ++test;
  1780. // Test 350: LHS constant
  1781. y = 0;
  1782. result = (1073741824.6 >>> y)
  1783. check = 1073741824
  1784. if(result != check) {{ fail(test, check, result); }} ++test;
  1785. // Test 351: RHS constant
  1786. x = 1073741824.6;
  1787. result = (x >>> 0)
  1788. check = 1073741824
  1789. if(result != check) {{ fail(test, check, result); }} ++test;
  1790. // Test 352: both arguments variables
  1791. x = 1073741824.5;
  1792. y = 0;
  1793. result = (x >>> y);
  1794. check = 1073741824;
  1795. if(result != check) { fail(test, check, result); } ++test;
  1796. // Test 353: both arguments constants
  1797. result = (1073741824.5 >>> 0)
  1798. check = 1073741824
  1799. if(result != check) {{ fail(test, check, result); }} ++test;
  1800. // Test 354: LHS constant
  1801. y = 0;
  1802. result = (1073741824.5 >>> y)
  1803. check = 1073741824
  1804. if(result != check) {{ fail(test, check, result); }} ++test;
  1805. // Test 355: RHS constant
  1806. x = 1073741824.5;
  1807. result = (x >>> 0)
  1808. check = 1073741824
  1809. if(result != check) {{ fail(test, check, result); }} ++test;
  1810. // Test 356: both arguments variables
  1811. x = 1073741824.4;
  1812. y = 0;
  1813. result = (x >>> y);
  1814. check = 1073741824;
  1815. if(result != check) { fail(test, check, result); } ++test;
  1816. // Test 357: both arguments constants
  1817. result = (1073741824.4 >>> 0)
  1818. check = 1073741824
  1819. if(result != check) {{ fail(test, check, result); }} ++test;
  1820. // Test 358: LHS constant
  1821. y = 0;
  1822. result = (1073741824.4 >>> y)
  1823. check = 1073741824
  1824. if(result != check) {{ fail(test, check, result); }} ++test;
  1825. // Test 359: RHS constant
  1826. x = 1073741824.4;
  1827. result = (x >>> 0)
  1828. check = 1073741824
  1829. if(result != check) {{ fail(test, check, result); }} ++test;
  1830. // Test 360: both arguments variables
  1831. x = -1073741822.6;
  1832. y = 0;
  1833. result = (x >>> y);
  1834. check = 3221225474;
  1835. if(result != check) { fail(test, check, result); } ++test;
  1836. // Test 361: both arguments constants
  1837. result = (-1073741822.6 >>> 0)
  1838. check = 3221225474
  1839. if(result != check) {{ fail(test, check, result); }} ++test;
  1840. // Test 362: LHS constant
  1841. y = 0;
  1842. result = (-1073741822.6 >>> y)
  1843. check = 3221225474
  1844. if(result != check) {{ fail(test, check, result); }} ++test;
  1845. // Test 363: RHS constant
  1846. x = -1073741822.6;
  1847. result = (x >>> 0)
  1848. check = 3221225474
  1849. if(result != check) {{ fail(test, check, result); }} ++test;
  1850. // Test 364: both arguments variables
  1851. x = -1073741822.5;
  1852. y = 0;
  1853. result = (x >>> y);
  1854. check = 3221225474;
  1855. if(result != check) { fail(test, check, result); } ++test;
  1856. // Test 365: both arguments constants
  1857. result = (-1073741822.5 >>> 0)
  1858. check = 3221225474
  1859. if(result != check) {{ fail(test, check, result); }} ++test;
  1860. // Test 366: LHS constant
  1861. y = 0;
  1862. result = (-1073741822.5 >>> y)
  1863. check = 3221225474
  1864. if(result != check) {{ fail(test, check, result); }} ++test;
  1865. // Test 367: RHS constant
  1866. x = -1073741822.5;
  1867. result = (x >>> 0)
  1868. check = 3221225474
  1869. if(result != check) {{ fail(test, check, result); }} ++test;
  1870. // Test 368: both arguments variables
  1871. x = -1073741822.4;
  1872. y = 0;
  1873. result = (x >>> y);
  1874. check = 3221225474;
  1875. if(result != check) { fail(test, check, result); } ++test;
  1876. // Test 369: both arguments constants
  1877. result = (-1073741822.4 >>> 0)
  1878. check = 3221225474
  1879. if(result != check) {{ fail(test, check, result); }} ++test;
  1880. // Test 370: LHS constant
  1881. y = 0;
  1882. result = (-1073741822.4 >>> y)
  1883. check = 3221225474
  1884. if(result != check) {{ fail(test, check, result); }} ++test;
  1885. // Test 371: RHS constant
  1886. x = -1073741822.4;
  1887. result = (x >>> 0)
  1888. check = 3221225474
  1889. if(result != check) {{ fail(test, check, result); }} ++test;
  1890. // Test 372: both arguments variables
  1891. x = -1073741823.4;
  1892. y = 0;
  1893. result = (x >>> y);
  1894. check = 3221225473;
  1895. if(result != check) { fail(test, check, result); } ++test;
  1896. // Test 373: both arguments constants
  1897. result = (-1073741823.4 >>> 0)
  1898. check = 3221225473
  1899. if(result != check) {{ fail(test, check, result); }} ++test;
  1900. // Test 374: LHS constant
  1901. y = 0;
  1902. result = (-1073741823.4 >>> y)
  1903. check = 3221225473
  1904. if(result != check) {{ fail(test, check, result); }} ++test;
  1905. // Test 375: RHS constant
  1906. x = -1073741823.4;
  1907. result = (x >>> 0)
  1908. check = 3221225473
  1909. if(result != check) {{ fail(test, check, result); }} ++test;
  1910. // Test 376: both arguments variables
  1911. x = -1073741823.5;
  1912. y = 0;
  1913. result = (x >>> y);
  1914. check = 3221225473;
  1915. if(result != check) { fail(test, check, result); } ++test;
  1916. // Test 377: both arguments constants
  1917. result = (-1073741823.5 >>> 0)
  1918. check = 3221225473
  1919. if(result != check) {{ fail(test, check, result); }} ++test;
  1920. // Test 378: LHS constant
  1921. y = 0;
  1922. result = (-1073741823.5 >>> y)
  1923. check = 3221225473
  1924. if(result != check) {{ fail(test, check, result); }} ++test;
  1925. // Test 379: RHS constant
  1926. x = -1073741823.5;
  1927. result = (x >>> 0)
  1928. check = 3221225473
  1929. if(result != check) {{ fail(test, check, result); }} ++test;
  1930. // Test 380: both arguments variables
  1931. x = -1073741823.6;
  1932. y = 0;
  1933. result = (x >>> y);
  1934. check = 3221225473;
  1935. if(result != check) { fail(test, check, result); } ++test;
  1936. // Test 381: both arguments constants
  1937. result = (-1073741823.6 >>> 0)
  1938. check = 3221225473
  1939. if(result != check) {{ fail(test, check, result); }} ++test;
  1940. // Test 382: LHS constant
  1941. y = 0;
  1942. result = (-1073741823.6 >>> y)
  1943. check = 3221225473
  1944. if(result != check) {{ fail(test, check, result); }} ++test;
  1945. // Test 383: RHS constant
  1946. x = -1073741823.6;
  1947. result = (x >>> 0)
  1948. check = 3221225473
  1949. if(result != check) {{ fail(test, check, result); }} ++test;
  1950. // Test 384: both arguments variables
  1951. x = -1073741823.6;
  1952. y = 0;
  1953. result = (x >>> y);
  1954. check = 3221225473;
  1955. if(result != check) { fail(test, check, result); } ++test;
  1956. // Test 385: both arguments constants
  1957. result = (-1073741823.6 >>> 0)
  1958. check = 3221225473
  1959. if(result != check) {{ fail(test, check, result); }} ++test;
  1960. // Test 386: LHS constant
  1961. y = 0;
  1962. result = (-1073741823.6 >>> y)
  1963. check = 3221225473
  1964. if(result != check) {{ fail(test, check, result); }} ++test;
  1965. // Test 387: RHS constant
  1966. x = -1073741823.6;
  1967. result = (x >>> 0)
  1968. check = 3221225473
  1969. if(result != check) {{ fail(test, check, result); }} ++test;
  1970. // Test 388: both arguments variables
  1971. x = -1073741823.5;
  1972. y = 0;
  1973. result = (x >>> y);
  1974. check = 3221225473;
  1975. if(result != check) { fail(test, check, result); } ++test;
  1976. // Test 389: both arguments constants
  1977. result = (-1073741823.5 >>> 0)
  1978. check = 3221225473
  1979. if(result != check) {{ fail(test, check, result); }} ++test;
  1980. // Test 390: LHS constant
  1981. y = 0;
  1982. result = (-1073741823.5 >>> y)
  1983. check = 3221225473
  1984. if(result != check) {{ fail(test, check, result); }} ++test;
  1985. // Test 391: RHS constant
  1986. x = -1073741823.5;
  1987. result = (x >>> 0)
  1988. check = 3221225473
  1989. if(result != check) {{ fail(test, check, result); }} ++test;
  1990. // Test 392: both arguments variables
  1991. x = -1073741823.4;
  1992. y = 0;
  1993. result = (x >>> y);
  1994. check = 3221225473;
  1995. if(result != check) { fail(test, check, result); } ++test;
  1996. // Test 393: both arguments constants
  1997. result = (-1073741823.4 >>> 0)
  1998. check = 3221225473
  1999. if(result != check) {{ fail(test, check, result); }} ++test;
  2000. // Test 394: LHS constant
  2001. y = 0;
  2002. result = (-1073741823.4 >>> y)
  2003. check = 3221225473
  2004. if(result != check) {{ fail(test, check, result); }} ++test;
  2005. // Test 395: RHS constant
  2006. x = -1073741823.4;
  2007. result = (x >>> 0)
  2008. check = 3221225473
  2009. if(result != check) {{ fail(test, check, result); }} ++test;
  2010. // Test 396: both arguments variables
  2011. x = -1073741824.4;
  2012. y = 0;
  2013. result = (x >>> y);
  2014. check = 3221225472;
  2015. if(result != check) { fail(test, check, result); } ++test;
  2016. // Test 397: both arguments constants
  2017. result = (-1073741824.4 >>> 0)
  2018. check = 3221225472
  2019. if(result != check) {{ fail(test, check, result); }} ++test;
  2020. // Test 398: LHS constant
  2021. y = 0;
  2022. result = (-1073741824.4 >>> y)
  2023. check = 3221225472
  2024. if(result != check) {{ fail(test, check, result); }} ++test;
  2025. // Test 399: RHS constant
  2026. x = -1073741824.4;
  2027. result = (x >>> 0)
  2028. check = 3221225472
  2029. if(result != check) {{ fail(test, check, result); }} ++test;
  2030. }
  2031. function test4() {
  2032. var x;
  2033. var y;
  2034. var result;
  2035. var check;
  2036. // Test 400: both arguments variables
  2037. x = -1073741824.5;
  2038. y = 0;
  2039. result = (x >>> y);
  2040. check = 3221225472;
  2041. if(result != check) { fail(test, check, result); } ++test;
  2042. // Test 401: both arguments constants
  2043. result = (-1073741824.5 >>> 0)
  2044. check = 3221225472
  2045. if(result != check) {{ fail(test, check, result); }} ++test;
  2046. // Test 402: LHS constant
  2047. y = 0;
  2048. result = (-1073741824.5 >>> y)
  2049. check = 3221225472
  2050. if(result != check) {{ fail(test, check, result); }} ++test;
  2051. // Test 403: RHS constant
  2052. x = -1073741824.5;
  2053. result = (x >>> 0)
  2054. check = 3221225472
  2055. if(result != check) {{ fail(test, check, result); }} ++test;
  2056. // Test 404: both arguments variables
  2057. x = -1073741824.6;
  2058. y = 0;
  2059. result = (x >>> y);
  2060. check = 3221225472;
  2061. if(result != check) { fail(test, check, result); } ++test;
  2062. // Test 405: both arguments constants
  2063. result = (-1073741824.6 >>> 0)
  2064. check = 3221225472
  2065. if(result != check) {{ fail(test, check, result); }} ++test;
  2066. // Test 406: LHS constant
  2067. y = 0;
  2068. result = (-1073741824.6 >>> y)
  2069. check = 3221225472
  2070. if(result != check) {{ fail(test, check, result); }} ++test;
  2071. // Test 407: RHS constant
  2072. x = -1073741824.6;
  2073. result = (x >>> 0)
  2074. check = 3221225472
  2075. if(result != check) {{ fail(test, check, result); }} ++test;
  2076. // Test 408: both arguments variables
  2077. x = -1073741824.6;
  2078. y = 0;
  2079. result = (x >>> y);
  2080. check = 3221225472;
  2081. if(result != check) { fail(test, check, result); } ++test;
  2082. // Test 409: both arguments constants
  2083. result = (-1073741824.6 >>> 0)
  2084. check = 3221225472
  2085. if(result != check) {{ fail(test, check, result); }} ++test;
  2086. // Test 410: LHS constant
  2087. y = 0;
  2088. result = (-1073741824.6 >>> y)
  2089. check = 3221225472
  2090. if(result != check) {{ fail(test, check, result); }} ++test;
  2091. // Test 411: RHS constant
  2092. x = -1073741824.6;
  2093. result = (x >>> 0)
  2094. check = 3221225472
  2095. if(result != check) {{ fail(test, check, result); }} ++test;
  2096. // Test 412: both arguments variables
  2097. x = -1073741824.5;
  2098. y = 0;
  2099. result = (x >>> y);
  2100. check = 3221225472;
  2101. if(result != check) { fail(test, check, result); } ++test;
  2102. // Test 413: both arguments constants
  2103. result = (-1073741824.5 >>> 0)
  2104. check = 3221225472
  2105. if(result != check) {{ fail(test, check, result); }} ++test;
  2106. // Test 414: LHS constant
  2107. y = 0;
  2108. result = (-1073741824.5 >>> y)
  2109. check = 3221225472
  2110. if(result != check) {{ fail(test, check, result); }} ++test;
  2111. // Test 415: RHS constant
  2112. x = -1073741824.5;
  2113. result = (x >>> 0)
  2114. check = 3221225472
  2115. if(result != check) {{ fail(test, check, result); }} ++test;
  2116. // Test 416: both arguments variables
  2117. x = -1073741824.4;
  2118. y = 0;
  2119. result = (x >>> y);
  2120. check = 3221225472;
  2121. if(result != check) { fail(test, check, result); } ++test;
  2122. // Test 417: both arguments constants
  2123. result = (-1073741824.4 >>> 0)
  2124. check = 3221225472
  2125. if(result != check) {{ fail(test, check, result); }} ++test;
  2126. // Test 418: LHS constant
  2127. y = 0;
  2128. result = (-1073741824.4 >>> y)
  2129. check = 3221225472
  2130. if(result != check) {{ fail(test, check, result); }} ++test;
  2131. // Test 419: RHS constant
  2132. x = -1073741824.4;
  2133. result = (x >>> 0)
  2134. check = 3221225472
  2135. if(result != check) {{ fail(test, check, result); }} ++test;
  2136. // Test 420: both arguments variables
  2137. x = -1073741825.4;
  2138. y = 0;
  2139. result = (x >>> y);
  2140. check = 3221225471;
  2141. if(result != check) { fail(test, check, result); } ++test;
  2142. // Test 421: both arguments constants
  2143. result = (-1073741825.4 >>> 0)
  2144. check = 3221225471
  2145. if(result != check) {{ fail(test, check, result); }} ++test;
  2146. // Test 422: LHS constant
  2147. y = 0;
  2148. result = (-1073741825.4 >>> y)
  2149. check = 3221225471
  2150. if(result != check) {{ fail(test, check, result); }} ++test;
  2151. // Test 423: RHS constant
  2152. x = -1073741825.4;
  2153. result = (x >>> 0)
  2154. check = 3221225471
  2155. if(result != check) {{ fail(test, check, result); }} ++test;
  2156. // Test 424: both arguments variables
  2157. x = -1073741825.5;
  2158. y = 0;
  2159. result = (x >>> y);
  2160. check = 3221225471;
  2161. if(result != check) { fail(test, check, result); } ++test;
  2162. // Test 425: both arguments constants
  2163. result = (-1073741825.5 >>> 0)
  2164. check = 3221225471
  2165. if(result != check) {{ fail(test, check, result); }} ++test;
  2166. // Test 426: LHS constant
  2167. y = 0;
  2168. result = (-1073741825.5 >>> y)
  2169. check = 3221225471
  2170. if(result != check) {{ fail(test, check, result); }} ++test;
  2171. // Test 427: RHS constant
  2172. x = -1073741825.5;
  2173. result = (x >>> 0)
  2174. check = 3221225471
  2175. if(result != check) {{ fail(test, check, result); }} ++test;
  2176. // Test 428: both arguments variables
  2177. x = -1073741825.6;
  2178. y = 0;
  2179. result = (x >>> y);
  2180. check = 3221225471;
  2181. if(result != check) { fail(test, check, result); } ++test;
  2182. // Test 429: both arguments constants
  2183. result = (-1073741825.6 >>> 0)
  2184. check = 3221225471
  2185. if(result != check) {{ fail(test, check, result); }} ++test;
  2186. // Test 430: LHS constant
  2187. y = 0;
  2188. result = (-1073741825.6 >>> y)
  2189. check = 3221225471
  2190. if(result != check) {{ fail(test, check, result); }} ++test;
  2191. // Test 431: RHS constant
  2192. x = -1073741825.6;
  2193. result = (x >>> 0)
  2194. check = 3221225471
  2195. if(result != check) {{ fail(test, check, result); }} ++test;
  2196. // Test 432: both arguments variables
  2197. x = -1073741825.6;
  2198. y = 0;
  2199. result = (x >>> y);
  2200. check = 3221225471;
  2201. if(result != check) { fail(test, check, result); } ++test;
  2202. // Test 433: both arguments constants
  2203. result = (-1073741825.6 >>> 0)
  2204. check = 3221225471
  2205. if(result != check) {{ fail(test, check, result); }} ++test;
  2206. // Test 434: LHS constant
  2207. y = 0;
  2208. result = (-1073741825.6 >>> y)
  2209. check = 3221225471
  2210. if(result != check) {{ fail(test, check, result); }} ++test;
  2211. // Test 435: RHS constant
  2212. x = -1073741825.6;
  2213. result = (x >>> 0)
  2214. check = 3221225471
  2215. if(result != check) {{ fail(test, check, result); }} ++test;
  2216. // Test 436: both arguments variables
  2217. x = -1073741825.5;
  2218. y = 0;
  2219. result = (x >>> y);
  2220. check = 3221225471;
  2221. if(result != check) { fail(test, check, result); } ++test;
  2222. // Test 437: both arguments constants
  2223. result = (-1073741825.5 >>> 0)
  2224. check = 3221225471
  2225. if(result != check) {{ fail(test, check, result); }} ++test;
  2226. // Test 438: LHS constant
  2227. y = 0;
  2228. result = (-1073741825.5 >>> y)
  2229. check = 3221225471
  2230. if(result != check) {{ fail(test, check, result); }} ++test;
  2231. // Test 439: RHS constant
  2232. x = -1073741825.5;
  2233. result = (x >>> 0)
  2234. check = 3221225471
  2235. if(result != check) {{ fail(test, check, result); }} ++test;
  2236. // Test 440: both arguments variables
  2237. x = -1073741825.4;
  2238. y = 0;
  2239. result = (x >>> y);
  2240. check = 3221225471;
  2241. if(result != check) { fail(test, check, result); } ++test;
  2242. // Test 441: both arguments constants
  2243. result = (-1073741825.4 >>> 0)
  2244. check = 3221225471
  2245. if(result != check) {{ fail(test, check, result); }} ++test;
  2246. // Test 442: LHS constant
  2247. y = 0;
  2248. result = (-1073741825.4 >>> y)
  2249. check = 3221225471
  2250. if(result != check) {{ fail(test, check, result); }} ++test;
  2251. // Test 443: RHS constant
  2252. x = -1073741825.4;
  2253. result = (x >>> 0)
  2254. check = 3221225471
  2255. if(result != check) {{ fail(test, check, result); }} ++test;
  2256. // Test 444: both arguments variables
  2257. x = -1073741826.4;
  2258. y = 0;
  2259. result = (x >>> y);
  2260. check = 3221225470;
  2261. if(result != check) { fail(test, check, result); } ++test;
  2262. // Test 445: both arguments constants
  2263. result = (-1073741826.4 >>> 0)
  2264. check = 3221225470
  2265. if(result != check) {{ fail(test, check, result); }} ++test;
  2266. // Test 446: LHS constant
  2267. y = 0;
  2268. result = (-1073741826.4 >>> y)
  2269. check = 3221225470
  2270. if(result != check) {{ fail(test, check, result); }} ++test;
  2271. // Test 447: RHS constant
  2272. x = -1073741826.4;
  2273. result = (x >>> 0)
  2274. check = 3221225470
  2275. if(result != check) {{ fail(test, check, result); }} ++test;
  2276. // Test 448: both arguments variables
  2277. x = -1073741826.5;
  2278. y = 0;
  2279. result = (x >>> y);
  2280. check = 3221225470;
  2281. if(result != check) { fail(test, check, result); } ++test;
  2282. // Test 449: both arguments constants
  2283. result = (-1073741826.5 >>> 0)
  2284. check = 3221225470
  2285. if(result != check) {{ fail(test, check, result); }} ++test;
  2286. // Test 450: LHS constant
  2287. y = 0;
  2288. result = (-1073741826.5 >>> y)
  2289. check = 3221225470
  2290. if(result != check) {{ fail(test, check, result); }} ++test;
  2291. // Test 451: RHS constant
  2292. x = -1073741826.5;
  2293. result = (x >>> 0)
  2294. check = 3221225470
  2295. if(result != check) {{ fail(test, check, result); }} ++test;
  2296. // Test 452: both arguments variables
  2297. x = -1073741826.6;
  2298. y = 0;
  2299. result = (x >>> y);
  2300. check = 3221225470;
  2301. if(result != check) { fail(test, check, result); } ++test;
  2302. // Test 453: both arguments constants
  2303. result = (-1073741826.6 >>> 0)
  2304. check = 3221225470
  2305. if(result != check) {{ fail(test, check, result); }} ++test;
  2306. // Test 454: LHS constant
  2307. y = 0;
  2308. result = (-1073741826.6 >>> y)
  2309. check = 3221225470
  2310. if(result != check) {{ fail(test, check, result); }} ++test;
  2311. // Test 455: RHS constant
  2312. x = -1073741826.6;
  2313. result = (x >>> 0)
  2314. check = 3221225470
  2315. if(result != check) {{ fail(test, check, result); }} ++test;
  2316. // Test 456: both arguments variables
  2317. x = 2147483646.4;
  2318. y = 0;
  2319. result = (x >>> y);
  2320. check = 2147483646;
  2321. if(result != check) { fail(test, check, result); } ++test;
  2322. // Test 457: both arguments constants
  2323. result = (2147483646.4 >>> 0)
  2324. check = 2147483646
  2325. if(result != check) {{ fail(test, check, result); }} ++test;
  2326. // Test 458: LHS constant
  2327. y = 0;
  2328. result = (2147483646.4 >>> y)
  2329. check = 2147483646
  2330. if(result != check) {{ fail(test, check, result); }} ++test;
  2331. // Test 459: RHS constant
  2332. x = 2147483646.4;
  2333. result = (x >>> 0)
  2334. check = 2147483646
  2335. if(result != check) {{ fail(test, check, result); }} ++test;
  2336. // Test 460: both arguments variables
  2337. x = 2147483646.5;
  2338. y = 0;
  2339. result = (x >>> y);
  2340. check = 2147483646;
  2341. if(result != check) { fail(test, check, result); } ++test;
  2342. // Test 461: both arguments constants
  2343. result = (2147483646.5 >>> 0)
  2344. check = 2147483646
  2345. if(result != check) {{ fail(test, check, result); }} ++test;
  2346. // Test 462: LHS constant
  2347. y = 0;
  2348. result = (2147483646.5 >>> y)
  2349. check = 2147483646
  2350. if(result != check) {{ fail(test, check, result); }} ++test;
  2351. // Test 463: RHS constant
  2352. x = 2147483646.5;
  2353. result = (x >>> 0)
  2354. check = 2147483646
  2355. if(result != check) {{ fail(test, check, result); }} ++test;
  2356. // Test 464: both arguments variables
  2357. x = 2147483646.6;
  2358. y = 0;
  2359. result = (x >>> y);
  2360. check = 2147483646;
  2361. if(result != check) { fail(test, check, result); } ++test;
  2362. // Test 465: both arguments constants
  2363. result = (2147483646.6 >>> 0)
  2364. check = 2147483646
  2365. if(result != check) {{ fail(test, check, result); }} ++test;
  2366. // Test 466: LHS constant
  2367. y = 0;
  2368. result = (2147483646.6 >>> y)
  2369. check = 2147483646
  2370. if(result != check) {{ fail(test, check, result); }} ++test;
  2371. // Test 467: RHS constant
  2372. x = 2147483646.6;
  2373. result = (x >>> 0)
  2374. check = 2147483646
  2375. if(result != check) {{ fail(test, check, result); }} ++test;
  2376. // Test 468: both arguments variables
  2377. x = 2147483645.6;
  2378. y = 0;
  2379. result = (x >>> y);
  2380. check = 2147483645;
  2381. if(result != check) { fail(test, check, result); } ++test;
  2382. // Test 469: both arguments constants
  2383. result = (2147483645.6 >>> 0)
  2384. check = 2147483645
  2385. if(result != check) {{ fail(test, check, result); }} ++test;
  2386. // Test 470: LHS constant
  2387. y = 0;
  2388. result = (2147483645.6 >>> y)
  2389. check = 2147483645
  2390. if(result != check) {{ fail(test, check, result); }} ++test;
  2391. // Test 471: RHS constant
  2392. x = 2147483645.6;
  2393. result = (x >>> 0)
  2394. check = 2147483645
  2395. if(result != check) {{ fail(test, check, result); }} ++test;
  2396. // Test 472: both arguments variables
  2397. x = 2147483645.5;
  2398. y = 0;
  2399. result = (x >>> y);
  2400. check = 2147483645;
  2401. if(result != check) { fail(test, check, result); } ++test;
  2402. // Test 473: both arguments constants
  2403. result = (2147483645.5 >>> 0)
  2404. check = 2147483645
  2405. if(result != check) {{ fail(test, check, result); }} ++test;
  2406. // Test 474: LHS constant
  2407. y = 0;
  2408. result = (2147483645.5 >>> y)
  2409. check = 2147483645
  2410. if(result != check) {{ fail(test, check, result); }} ++test;
  2411. // Test 475: RHS constant
  2412. x = 2147483645.5;
  2413. result = (x >>> 0)
  2414. check = 2147483645
  2415. if(result != check) {{ fail(test, check, result); }} ++test;
  2416. // Test 476: both arguments variables
  2417. x = 2147483645.4;
  2418. y = 0;
  2419. result = (x >>> y);
  2420. check = 2147483645;
  2421. if(result != check) { fail(test, check, result); } ++test;
  2422. // Test 477: both arguments constants
  2423. result = (2147483645.4 >>> 0)
  2424. check = 2147483645
  2425. if(result != check) {{ fail(test, check, result); }} ++test;
  2426. // Test 478: LHS constant
  2427. y = 0;
  2428. result = (2147483645.4 >>> y)
  2429. check = 2147483645
  2430. if(result != check) {{ fail(test, check, result); }} ++test;
  2431. // Test 479: RHS constant
  2432. x = 2147483645.4;
  2433. result = (x >>> 0)
  2434. check = 2147483645
  2435. if(result != check) {{ fail(test, check, result); }} ++test;
  2436. // Test 480: both arguments variables
  2437. x = 2147483647.4;
  2438. y = 0;
  2439. result = (x >>> y);
  2440. check = 2147483647;
  2441. if(result != check) { fail(test, check, result); } ++test;
  2442. // Test 481: both arguments constants
  2443. result = (2147483647.4 >>> 0)
  2444. check = 2147483647
  2445. if(result != check) {{ fail(test, check, result); }} ++test;
  2446. // Test 482: LHS constant
  2447. y = 0;
  2448. result = (2147483647.4 >>> y)
  2449. check = 2147483647
  2450. if(result != check) {{ fail(test, check, result); }} ++test;
  2451. // Test 483: RHS constant
  2452. x = 2147483647.4;
  2453. result = (x >>> 0)
  2454. check = 2147483647
  2455. if(result != check) {{ fail(test, check, result); }} ++test;
  2456. // Test 484: both arguments variables
  2457. x = 2147483647.5;
  2458. y = 0;
  2459. result = (x >>> y);
  2460. check = 2147483647;
  2461. if(result != check) { fail(test, check, result); } ++test;
  2462. // Test 485: both arguments constants
  2463. result = (2147483647.5 >>> 0)
  2464. check = 2147483647
  2465. if(result != check) {{ fail(test, check, result); }} ++test;
  2466. // Test 486: LHS constant
  2467. y = 0;
  2468. result = (2147483647.5 >>> y)
  2469. check = 2147483647
  2470. if(result != check) {{ fail(test, check, result); }} ++test;
  2471. // Test 487: RHS constant
  2472. x = 2147483647.5;
  2473. result = (x >>> 0)
  2474. check = 2147483647
  2475. if(result != check) {{ fail(test, check, result); }} ++test;
  2476. // Test 488: both arguments variables
  2477. x = 2147483647.6;
  2478. y = 0;
  2479. result = (x >>> y);
  2480. check = 2147483647;
  2481. if(result != check) { fail(test, check, result); } ++test;
  2482. // Test 489: both arguments constants
  2483. result = (2147483647.6 >>> 0)
  2484. check = 2147483647
  2485. if(result != check) {{ fail(test, check, result); }} ++test;
  2486. // Test 490: LHS constant
  2487. y = 0;
  2488. result = (2147483647.6 >>> y)
  2489. check = 2147483647
  2490. if(result != check) {{ fail(test, check, result); }} ++test;
  2491. // Test 491: RHS constant
  2492. x = 2147483647.6;
  2493. result = (x >>> 0)
  2494. check = 2147483647
  2495. if(result != check) {{ fail(test, check, result); }} ++test;
  2496. // Test 492: both arguments variables
  2497. x = 2147483646.6;
  2498. y = 0;
  2499. result = (x >>> y);
  2500. check = 2147483646;
  2501. if(result != check) { fail(test, check, result); } ++test;
  2502. // Test 493: both arguments constants
  2503. result = (2147483646.6 >>> 0)
  2504. check = 2147483646
  2505. if(result != check) {{ fail(test, check, result); }} ++test;
  2506. // Test 494: LHS constant
  2507. y = 0;
  2508. result = (2147483646.6 >>> y)
  2509. check = 2147483646
  2510. if(result != check) {{ fail(test, check, result); }} ++test;
  2511. // Test 495: RHS constant
  2512. x = 2147483646.6;
  2513. result = (x >>> 0)
  2514. check = 2147483646
  2515. if(result != check) {{ fail(test, check, result); }} ++test;
  2516. // Test 496: both arguments variables
  2517. x = 2147483646.5;
  2518. y = 0;
  2519. result = (x >>> y);
  2520. check = 2147483646;
  2521. if(result != check) { fail(test, check, result); } ++test;
  2522. // Test 497: both arguments constants
  2523. result = (2147483646.5 >>> 0)
  2524. check = 2147483646
  2525. if(result != check) {{ fail(test, check, result); }} ++test;
  2526. // Test 498: LHS constant
  2527. y = 0;
  2528. result = (2147483646.5 >>> y)
  2529. check = 2147483646
  2530. if(result != check) {{ fail(test, check, result); }} ++test;
  2531. // Test 499: RHS constant
  2532. x = 2147483646.5;
  2533. result = (x >>> 0)
  2534. check = 2147483646
  2535. if(result != check) {{ fail(test, check, result); }} ++test;
  2536. }
  2537. function test5() {
  2538. var x;
  2539. var y;
  2540. var result;
  2541. var check;
  2542. // Test 500: both arguments variables
  2543. x = 2147483646.4;
  2544. y = 0;
  2545. result = (x >>> y);
  2546. check = 2147483646;
  2547. if(result != check) { fail(test, check, result); } ++test;
  2548. // Test 501: both arguments constants
  2549. result = (2147483646.4 >>> 0)
  2550. check = 2147483646
  2551. if(result != check) {{ fail(test, check, result); }} ++test;
  2552. // Test 502: LHS constant
  2553. y = 0;
  2554. result = (2147483646.4 >>> y)
  2555. check = 2147483646
  2556. if(result != check) {{ fail(test, check, result); }} ++test;
  2557. // Test 503: RHS constant
  2558. x = 2147483646.4;
  2559. result = (x >>> 0)
  2560. check = 2147483646
  2561. if(result != check) {{ fail(test, check, result); }} ++test;
  2562. // Test 504: both arguments variables
  2563. x = 2147483648.4;
  2564. y = 0;
  2565. result = (x >>> y);
  2566. check = 2147483648;
  2567. if(result != check) { fail(test, check, result); } ++test;
  2568. // Test 505: both arguments constants
  2569. result = (2147483648.4 >>> 0)
  2570. check = 2147483648
  2571. if(result != check) {{ fail(test, check, result); }} ++test;
  2572. // Test 506: LHS constant
  2573. y = 0;
  2574. result = (2147483648.4 >>> y)
  2575. check = 2147483648
  2576. if(result != check) {{ fail(test, check, result); }} ++test;
  2577. // Test 507: RHS constant
  2578. x = 2147483648.4;
  2579. result = (x >>> 0)
  2580. check = 2147483648
  2581. if(result != check) {{ fail(test, check, result); }} ++test;
  2582. // Test 508: both arguments variables
  2583. x = 2147483648.5;
  2584. y = 0;
  2585. result = (x >>> y);
  2586. check = 2147483648;
  2587. if(result != check) { fail(test, check, result); } ++test;
  2588. // Test 509: both arguments constants
  2589. result = (2147483648.5 >>> 0)
  2590. check = 2147483648
  2591. if(result != check) {{ fail(test, check, result); }} ++test;
  2592. // Test 510: LHS constant
  2593. y = 0;
  2594. result = (2147483648.5 >>> y)
  2595. check = 2147483648
  2596. if(result != check) {{ fail(test, check, result); }} ++test;
  2597. // Test 511: RHS constant
  2598. x = 2147483648.5;
  2599. result = (x >>> 0)
  2600. check = 2147483648
  2601. if(result != check) {{ fail(test, check, result); }} ++test;
  2602. // Test 512: both arguments variables
  2603. x = 2147483648.6;
  2604. y = 0;
  2605. result = (x >>> y);
  2606. check = 2147483648;
  2607. if(result != check) { fail(test, check, result); } ++test;
  2608. // Test 513: both arguments constants
  2609. result = (2147483648.6 >>> 0)
  2610. check = 2147483648
  2611. if(result != check) {{ fail(test, check, result); }} ++test;
  2612. // Test 514: LHS constant
  2613. y = 0;
  2614. result = (2147483648.6 >>> y)
  2615. check = 2147483648
  2616. if(result != check) {{ fail(test, check, result); }} ++test;
  2617. // Test 515: RHS constant
  2618. x = 2147483648.6;
  2619. result = (x >>> 0)
  2620. check = 2147483648
  2621. if(result != check) {{ fail(test, check, result); }} ++test;
  2622. // Test 516: both arguments variables
  2623. x = 2147483647.6;
  2624. y = 0;
  2625. result = (x >>> y);
  2626. check = 2147483647;
  2627. if(result != check) { fail(test, check, result); } ++test;
  2628. // Test 517: both arguments constants
  2629. result = (2147483647.6 >>> 0)
  2630. check = 2147483647
  2631. if(result != check) {{ fail(test, check, result); }} ++test;
  2632. // Test 518: LHS constant
  2633. y = 0;
  2634. result = (2147483647.6 >>> y)
  2635. check = 2147483647
  2636. if(result != check) {{ fail(test, check, result); }} ++test;
  2637. // Test 519: RHS constant
  2638. x = 2147483647.6;
  2639. result = (x >>> 0)
  2640. check = 2147483647
  2641. if(result != check) {{ fail(test, check, result); }} ++test;
  2642. // Test 520: both arguments variables
  2643. x = 2147483647.5;
  2644. y = 0;
  2645. result = (x >>> y);
  2646. check = 2147483647;
  2647. if(result != check) { fail(test, check, result); } ++test;
  2648. // Test 521: both arguments constants
  2649. result = (2147483647.5 >>> 0)
  2650. check = 2147483647
  2651. if(result != check) {{ fail(test, check, result); }} ++test;
  2652. // Test 522: LHS constant
  2653. y = 0;
  2654. result = (2147483647.5 >>> y)
  2655. check = 2147483647
  2656. if(result != check) {{ fail(test, check, result); }} ++test;
  2657. // Test 523: RHS constant
  2658. x = 2147483647.5;
  2659. result = (x >>> 0)
  2660. check = 2147483647
  2661. if(result != check) {{ fail(test, check, result); }} ++test;
  2662. // Test 524: both arguments variables
  2663. x = 2147483647.4;
  2664. y = 0;
  2665. result = (x >>> y);
  2666. check = 2147483647;
  2667. if(result != check) { fail(test, check, result); } ++test;
  2668. // Test 525: both arguments constants
  2669. result = (2147483647.4 >>> 0)
  2670. check = 2147483647
  2671. if(result != check) {{ fail(test, check, result); }} ++test;
  2672. // Test 526: LHS constant
  2673. y = 0;
  2674. result = (2147483647.4 >>> y)
  2675. check = 2147483647
  2676. if(result != check) {{ fail(test, check, result); }} ++test;
  2677. // Test 527: RHS constant
  2678. x = 2147483647.4;
  2679. result = (x >>> 0)
  2680. check = 2147483647
  2681. if(result != check) {{ fail(test, check, result); }} ++test;
  2682. // Test 528: both arguments variables
  2683. x = 2147483649.4;
  2684. y = 0;
  2685. result = (x >>> y);
  2686. check = 2147483649;
  2687. if(result != check) { fail(test, check, result); } ++test;
  2688. // Test 529: both arguments constants
  2689. result = (2147483649.4 >>> 0)
  2690. check = 2147483649
  2691. if(result != check) {{ fail(test, check, result); }} ++test;
  2692. // Test 530: LHS constant
  2693. y = 0;
  2694. result = (2147483649.4 >>> y)
  2695. check = 2147483649
  2696. if(result != check) {{ fail(test, check, result); }} ++test;
  2697. // Test 531: RHS constant
  2698. x = 2147483649.4;
  2699. result = (x >>> 0)
  2700. check = 2147483649
  2701. if(result != check) {{ fail(test, check, result); }} ++test;
  2702. // Test 532: both arguments variables
  2703. x = 2147483649.5;
  2704. y = 0;
  2705. result = (x >>> y);
  2706. check = 2147483649;
  2707. if(result != check) { fail(test, check, result); } ++test;
  2708. // Test 533: both arguments constants
  2709. result = (2147483649.5 >>> 0)
  2710. check = 2147483649
  2711. if(result != check) {{ fail(test, check, result); }} ++test;
  2712. // Test 534: LHS constant
  2713. y = 0;
  2714. result = (2147483649.5 >>> y)
  2715. check = 2147483649
  2716. if(result != check) {{ fail(test, check, result); }} ++test;
  2717. // Test 535: RHS constant
  2718. x = 2147483649.5;
  2719. result = (x >>> 0)
  2720. check = 2147483649
  2721. if(result != check) {{ fail(test, check, result); }} ++test;
  2722. // Test 536: both arguments variables
  2723. x = 2147483649.6;
  2724. y = 0;
  2725. result = (x >>> y);
  2726. check = 2147483649;
  2727. if(result != check) { fail(test, check, result); } ++test;
  2728. // Test 537: both arguments constants
  2729. result = (2147483649.6 >>> 0)
  2730. check = 2147483649
  2731. if(result != check) {{ fail(test, check, result); }} ++test;
  2732. // Test 538: LHS constant
  2733. y = 0;
  2734. result = (2147483649.6 >>> y)
  2735. check = 2147483649
  2736. if(result != check) {{ fail(test, check, result); }} ++test;
  2737. // Test 539: RHS constant
  2738. x = 2147483649.6;
  2739. result = (x >>> 0)
  2740. check = 2147483649
  2741. if(result != check) {{ fail(test, check, result); }} ++test;
  2742. // Test 540: both arguments variables
  2743. x = 2147483648.6;
  2744. y = 0;
  2745. result = (x >>> y);
  2746. check = 2147483648;
  2747. if(result != check) { fail(test, check, result); } ++test;
  2748. // Test 541: both arguments constants
  2749. result = (2147483648.6 >>> 0)
  2750. check = 2147483648
  2751. if(result != check) {{ fail(test, check, result); }} ++test;
  2752. // Test 542: LHS constant
  2753. y = 0;
  2754. result = (2147483648.6 >>> y)
  2755. check = 2147483648
  2756. if(result != check) {{ fail(test, check, result); }} ++test;
  2757. // Test 543: RHS constant
  2758. x = 2147483648.6;
  2759. result = (x >>> 0)
  2760. check = 2147483648
  2761. if(result != check) {{ fail(test, check, result); }} ++test;
  2762. // Test 544: both arguments variables
  2763. x = 2147483648.5;
  2764. y = 0;
  2765. result = (x >>> y);
  2766. check = 2147483648;
  2767. if(result != check) { fail(test, check, result); } ++test;
  2768. // Test 545: both arguments constants
  2769. result = (2147483648.5 >>> 0)
  2770. check = 2147483648
  2771. if(result != check) {{ fail(test, check, result); }} ++test;
  2772. // Test 546: LHS constant
  2773. y = 0;
  2774. result = (2147483648.5 >>> y)
  2775. check = 2147483648
  2776. if(result != check) {{ fail(test, check, result); }} ++test;
  2777. // Test 547: RHS constant
  2778. x = 2147483648.5;
  2779. result = (x >>> 0)
  2780. check = 2147483648
  2781. if(result != check) {{ fail(test, check, result); }} ++test;
  2782. // Test 548: both arguments variables
  2783. x = 2147483648.4;
  2784. y = 0;
  2785. result = (x >>> y);
  2786. check = 2147483648;
  2787. if(result != check) { fail(test, check, result); } ++test;
  2788. // Test 549: both arguments constants
  2789. result = (2147483648.4 >>> 0)
  2790. check = 2147483648
  2791. if(result != check) {{ fail(test, check, result); }} ++test;
  2792. // Test 550: LHS constant
  2793. y = 0;
  2794. result = (2147483648.4 >>> y)
  2795. check = 2147483648
  2796. if(result != check) {{ fail(test, check, result); }} ++test;
  2797. // Test 551: RHS constant
  2798. x = 2147483648.4;
  2799. result = (x >>> 0)
  2800. check = 2147483648
  2801. if(result != check) {{ fail(test, check, result); }} ++test;
  2802. // Test 552: both arguments variables
  2803. x = -2147483646.6;
  2804. y = 0;
  2805. result = (x >>> y);
  2806. check = 2147483650;
  2807. if(result != check) { fail(test, check, result); } ++test;
  2808. // Test 553: both arguments constants
  2809. result = (-2147483646.6 >>> 0)
  2810. check = 2147483650
  2811. if(result != check) {{ fail(test, check, result); }} ++test;
  2812. // Test 554: LHS constant
  2813. y = 0;
  2814. result = (-2147483646.6 >>> y)
  2815. check = 2147483650
  2816. if(result != check) {{ fail(test, check, result); }} ++test;
  2817. // Test 555: RHS constant
  2818. x = -2147483646.6;
  2819. result = (x >>> 0)
  2820. check = 2147483650
  2821. if(result != check) {{ fail(test, check, result); }} ++test;
  2822. // Test 556: both arguments variables
  2823. x = -2147483646.5;
  2824. y = 0;
  2825. result = (x >>> y);
  2826. check = 2147483650;
  2827. if(result != check) { fail(test, check, result); } ++test;
  2828. // Test 557: both arguments constants
  2829. result = (-2147483646.5 >>> 0)
  2830. check = 2147483650
  2831. if(result != check) {{ fail(test, check, result); }} ++test;
  2832. // Test 558: LHS constant
  2833. y = 0;
  2834. result = (-2147483646.5 >>> y)
  2835. check = 2147483650
  2836. if(result != check) {{ fail(test, check, result); }} ++test;
  2837. // Test 559: RHS constant
  2838. x = -2147483646.5;
  2839. result = (x >>> 0)
  2840. check = 2147483650
  2841. if(result != check) {{ fail(test, check, result); }} ++test;
  2842. // Test 560: both arguments variables
  2843. x = -2147483646.4;
  2844. y = 0;
  2845. result = (x >>> y);
  2846. check = 2147483650;
  2847. if(result != check) { fail(test, check, result); } ++test;
  2848. // Test 561: both arguments constants
  2849. result = (-2147483646.4 >>> 0)
  2850. check = 2147483650
  2851. if(result != check) {{ fail(test, check, result); }} ++test;
  2852. // Test 562: LHS constant
  2853. y = 0;
  2854. result = (-2147483646.4 >>> y)
  2855. check = 2147483650
  2856. if(result != check) {{ fail(test, check, result); }} ++test;
  2857. // Test 563: RHS constant
  2858. x = -2147483646.4;
  2859. result = (x >>> 0)
  2860. check = 2147483650
  2861. if(result != check) {{ fail(test, check, result); }} ++test;
  2862. // Test 564: both arguments variables
  2863. x = -2147483647.4;
  2864. y = 0;
  2865. result = (x >>> y);
  2866. check = 2147483649;
  2867. if(result != check) { fail(test, check, result); } ++test;
  2868. // Test 565: both arguments constants
  2869. result = (-2147483647.4 >>> 0)
  2870. check = 2147483649
  2871. if(result != check) {{ fail(test, check, result); }} ++test;
  2872. // Test 566: LHS constant
  2873. y = 0;
  2874. result = (-2147483647.4 >>> y)
  2875. check = 2147483649
  2876. if(result != check) {{ fail(test, check, result); }} ++test;
  2877. // Test 567: RHS constant
  2878. x = -2147483647.4;
  2879. result = (x >>> 0)
  2880. check = 2147483649
  2881. if(result != check) {{ fail(test, check, result); }} ++test;
  2882. // Test 568: both arguments variables
  2883. x = -2147483647.5;
  2884. y = 0;
  2885. result = (x >>> y);
  2886. check = 2147483649;
  2887. if(result != check) { fail(test, check, result); } ++test;
  2888. // Test 569: both arguments constants
  2889. result = (-2147483647.5 >>> 0)
  2890. check = 2147483649
  2891. if(result != check) {{ fail(test, check, result); }} ++test;
  2892. // Test 570: LHS constant
  2893. y = 0;
  2894. result = (-2147483647.5 >>> y)
  2895. check = 2147483649
  2896. if(result != check) {{ fail(test, check, result); }} ++test;
  2897. // Test 571: RHS constant
  2898. x = -2147483647.5;
  2899. result = (x >>> 0)
  2900. check = 2147483649
  2901. if(result != check) {{ fail(test, check, result); }} ++test;
  2902. // Test 572: both arguments variables
  2903. x = -2147483647.6;
  2904. y = 0;
  2905. result = (x >>> y);
  2906. check = 2147483649;
  2907. if(result != check) { fail(test, check, result); } ++test;
  2908. // Test 573: both arguments constants
  2909. result = (-2147483647.6 >>> 0)
  2910. check = 2147483649
  2911. if(result != check) {{ fail(test, check, result); }} ++test;
  2912. // Test 574: LHS constant
  2913. y = 0;
  2914. result = (-2147483647.6 >>> y)
  2915. check = 2147483649
  2916. if(result != check) {{ fail(test, check, result); }} ++test;
  2917. // Test 575: RHS constant
  2918. x = -2147483647.6;
  2919. result = (x >>> 0)
  2920. check = 2147483649
  2921. if(result != check) {{ fail(test, check, result); }} ++test;
  2922. // Test 576: both arguments variables
  2923. x = -2147483647.6;
  2924. y = 0;
  2925. result = (x >>> y);
  2926. check = 2147483649;
  2927. if(result != check) { fail(test, check, result); } ++test;
  2928. // Test 577: both arguments constants
  2929. result = (-2147483647.6 >>> 0)
  2930. check = 2147483649
  2931. if(result != check) {{ fail(test, check, result); }} ++test;
  2932. // Test 578: LHS constant
  2933. y = 0;
  2934. result = (-2147483647.6 >>> y)
  2935. check = 2147483649
  2936. if(result != check) {{ fail(test, check, result); }} ++test;
  2937. // Test 579: RHS constant
  2938. x = -2147483647.6;
  2939. result = (x >>> 0)
  2940. check = 2147483649
  2941. if(result != check) {{ fail(test, check, result); }} ++test;
  2942. // Test 580: both arguments variables
  2943. x = -2147483647.5;
  2944. y = 0;
  2945. result = (x >>> y);
  2946. check = 2147483649;
  2947. if(result != check) { fail(test, check, result); } ++test;
  2948. // Test 581: both arguments constants
  2949. result = (-2147483647.5 >>> 0)
  2950. check = 2147483649
  2951. if(result != check) {{ fail(test, check, result); }} ++test;
  2952. // Test 582: LHS constant
  2953. y = 0;
  2954. result = (-2147483647.5 >>> y)
  2955. check = 2147483649
  2956. if(result != check) {{ fail(test, check, result); }} ++test;
  2957. // Test 583: RHS constant
  2958. x = -2147483647.5;
  2959. result = (x >>> 0)
  2960. check = 2147483649
  2961. if(result != check) {{ fail(test, check, result); }} ++test;
  2962. // Test 584: both arguments variables
  2963. x = -2147483647.4;
  2964. y = 0;
  2965. result = (x >>> y);
  2966. check = 2147483649;
  2967. if(result != check) { fail(test, check, result); } ++test;
  2968. // Test 585: both arguments constants
  2969. result = (-2147483647.4 >>> 0)
  2970. check = 2147483649
  2971. if(result != check) {{ fail(test, check, result); }} ++test;
  2972. // Test 586: LHS constant
  2973. y = 0;
  2974. result = (-2147483647.4 >>> y)
  2975. check = 2147483649
  2976. if(result != check) {{ fail(test, check, result); }} ++test;
  2977. // Test 587: RHS constant
  2978. x = -2147483647.4;
  2979. result = (x >>> 0)
  2980. check = 2147483649
  2981. if(result != check) {{ fail(test, check, result); }} ++test;
  2982. // Test 588: both arguments variables
  2983. x = -2147483648.4;
  2984. y = 0;
  2985. result = (x >>> y);
  2986. check = 2147483648;
  2987. if(result != check) { fail(test, check, result); } ++test;
  2988. // Test 589: both arguments constants
  2989. result = (-2147483648.4 >>> 0)
  2990. check = 2147483648
  2991. if(result != check) {{ fail(test, check, result); }} ++test;
  2992. // Test 590: LHS constant
  2993. y = 0;
  2994. result = (-2147483648.4 >>> y)
  2995. check = 2147483648
  2996. if(result != check) {{ fail(test, check, result); }} ++test;
  2997. // Test 591: RHS constant
  2998. x = -2147483648.4;
  2999. result = (x >>> 0)
  3000. check = 2147483648
  3001. if(result != check) {{ fail(test, check, result); }} ++test;
  3002. // Test 592: both arguments variables
  3003. x = -2147483648.5;
  3004. y = 0;
  3005. result = (x >>> y);
  3006. check = 2147483648;
  3007. if(result != check) { fail(test, check, result); } ++test;
  3008. // Test 593: both arguments constants
  3009. result = (-2147483648.5 >>> 0)
  3010. check = 2147483648
  3011. if(result != check) {{ fail(test, check, result); }} ++test;
  3012. // Test 594: LHS constant
  3013. y = 0;
  3014. result = (-2147483648.5 >>> y)
  3015. check = 2147483648
  3016. if(result != check) {{ fail(test, check, result); }} ++test;
  3017. // Test 595: RHS constant
  3018. x = -2147483648.5;
  3019. result = (x >>> 0)
  3020. check = 2147483648
  3021. if(result != check) {{ fail(test, check, result); }} ++test;
  3022. // Test 596: both arguments variables
  3023. x = -2147483648.6;
  3024. y = 0;
  3025. result = (x >>> y);
  3026. check = 2147483648;
  3027. if(result != check) { fail(test, check, result); } ++test;
  3028. // Test 597: both arguments constants
  3029. result = (-2147483648.6 >>> 0)
  3030. check = 2147483648
  3031. if(result != check) {{ fail(test, check, result); }} ++test;
  3032. // Test 598: LHS constant
  3033. y = 0;
  3034. result = (-2147483648.6 >>> y)
  3035. check = 2147483648
  3036. if(result != check) {{ fail(test, check, result); }} ++test;
  3037. // Test 599: RHS constant
  3038. x = -2147483648.6;
  3039. result = (x >>> 0)
  3040. check = 2147483648
  3041. if(result != check) {{ fail(test, check, result); }} ++test;
  3042. }
  3043. function test6() {
  3044. var x;
  3045. var y;
  3046. var result;
  3047. var check;
  3048. // Test 600: both arguments variables
  3049. x = -2147483648.6;
  3050. y = 0;
  3051. result = (x >>> y);
  3052. check = 2147483648;
  3053. if(result != check) { fail(test, check, result); } ++test;
  3054. // Test 601: both arguments constants
  3055. result = (-2147483648.6 >>> 0)
  3056. check = 2147483648
  3057. if(result != check) {{ fail(test, check, result); }} ++test;
  3058. // Test 602: LHS constant
  3059. y = 0;
  3060. result = (-2147483648.6 >>> y)
  3061. check = 2147483648
  3062. if(result != check) {{ fail(test, check, result); }} ++test;
  3063. // Test 603: RHS constant
  3064. x = -2147483648.6;
  3065. result = (x >>> 0)
  3066. check = 2147483648
  3067. if(result != check) {{ fail(test, check, result); }} ++test;
  3068. // Test 604: both arguments variables
  3069. x = -2147483648.5;
  3070. y = 0;
  3071. result = (x >>> y);
  3072. check = 2147483648;
  3073. if(result != check) { fail(test, check, result); } ++test;
  3074. // Test 605: both arguments constants
  3075. result = (-2147483648.5 >>> 0)
  3076. check = 2147483648
  3077. if(result != check) {{ fail(test, check, result); }} ++test;
  3078. // Test 606: LHS constant
  3079. y = 0;
  3080. result = (-2147483648.5 >>> y)
  3081. check = 2147483648
  3082. if(result != check) {{ fail(test, check, result); }} ++test;
  3083. // Test 607: RHS constant
  3084. x = -2147483648.5;
  3085. result = (x >>> 0)
  3086. check = 2147483648
  3087. if(result != check) {{ fail(test, check, result); }} ++test;
  3088. // Test 608: both arguments variables
  3089. x = -2147483648.4;
  3090. y = 0;
  3091. result = (x >>> y);
  3092. check = 2147483648;
  3093. if(result != check) { fail(test, check, result); } ++test;
  3094. // Test 609: both arguments constants
  3095. result = (-2147483648.4 >>> 0)
  3096. check = 2147483648
  3097. if(result != check) {{ fail(test, check, result); }} ++test;
  3098. // Test 610: LHS constant
  3099. y = 0;
  3100. result = (-2147483648.4 >>> y)
  3101. check = 2147483648
  3102. if(result != check) {{ fail(test, check, result); }} ++test;
  3103. // Test 611: RHS constant
  3104. x = -2147483648.4;
  3105. result = (x >>> 0)
  3106. check = 2147483648
  3107. if(result != check) {{ fail(test, check, result); }} ++test;
  3108. // Test 612: both arguments variables
  3109. x = -2147483649.4;
  3110. y = 0;
  3111. result = (x >>> y);
  3112. check = 2147483647;
  3113. if(result != check) { fail(test, check, result); } ++test;
  3114. // Test 613: both arguments constants
  3115. result = (-2147483649.4 >>> 0)
  3116. check = 2147483647
  3117. if(result != check) {{ fail(test, check, result); }} ++test;
  3118. // Test 614: LHS constant
  3119. y = 0;
  3120. result = (-2147483649.4 >>> y)
  3121. check = 2147483647
  3122. if(result != check) {{ fail(test, check, result); }} ++test;
  3123. // Test 615: RHS constant
  3124. x = -2147483649.4;
  3125. result = (x >>> 0)
  3126. check = 2147483647
  3127. if(result != check) {{ fail(test, check, result); }} ++test;
  3128. // Test 616: both arguments variables
  3129. x = -2147483649.5;
  3130. y = 0;
  3131. result = (x >>> y);
  3132. check = 2147483647;
  3133. if(result != check) { fail(test, check, result); } ++test;
  3134. // Test 617: both arguments constants
  3135. result = (-2147483649.5 >>> 0)
  3136. check = 2147483647
  3137. if(result != check) {{ fail(test, check, result); }} ++test;
  3138. // Test 618: LHS constant
  3139. y = 0;
  3140. result = (-2147483649.5 >>> y)
  3141. check = 2147483647
  3142. if(result != check) {{ fail(test, check, result); }} ++test;
  3143. // Test 619: RHS constant
  3144. x = -2147483649.5;
  3145. result = (x >>> 0)
  3146. check = 2147483647
  3147. if(result != check) {{ fail(test, check, result); }} ++test;
  3148. // Test 620: both arguments variables
  3149. x = -2147483649.6;
  3150. y = 0;
  3151. result = (x >>> y);
  3152. check = 2147483647;
  3153. if(result != check) { fail(test, check, result); } ++test;
  3154. // Test 621: both arguments constants
  3155. result = (-2147483649.6 >>> 0)
  3156. check = 2147483647
  3157. if(result != check) {{ fail(test, check, result); }} ++test;
  3158. // Test 622: LHS constant
  3159. y = 0;
  3160. result = (-2147483649.6 >>> y)
  3161. check = 2147483647
  3162. if(result != check) {{ fail(test, check, result); }} ++test;
  3163. // Test 623: RHS constant
  3164. x = -2147483649.6;
  3165. result = (x >>> 0)
  3166. check = 2147483647
  3167. if(result != check) {{ fail(test, check, result); }} ++test;
  3168. // Test 624: both arguments variables
  3169. x = -2147483649.6;
  3170. y = 0;
  3171. result = (x >>> y);
  3172. check = 2147483647;
  3173. if(result != check) { fail(test, check, result); } ++test;
  3174. // Test 625: both arguments constants
  3175. result = (-2147483649.6 >>> 0)
  3176. check = 2147483647
  3177. if(result != check) {{ fail(test, check, result); }} ++test;
  3178. // Test 626: LHS constant
  3179. y = 0;
  3180. result = (-2147483649.6 >>> y)
  3181. check = 2147483647
  3182. if(result != check) {{ fail(test, check, result); }} ++test;
  3183. // Test 627: RHS constant
  3184. x = -2147483649.6;
  3185. result = (x >>> 0)
  3186. check = 2147483647
  3187. if(result != check) {{ fail(test, check, result); }} ++test;
  3188. // Test 628: both arguments variables
  3189. x = -2147483649.5;
  3190. y = 0;
  3191. result = (x >>> y);
  3192. check = 2147483647;
  3193. if(result != check) { fail(test, check, result); } ++test;
  3194. // Test 629: both arguments constants
  3195. result = (-2147483649.5 >>> 0)
  3196. check = 2147483647
  3197. if(result != check) {{ fail(test, check, result); }} ++test;
  3198. // Test 630: LHS constant
  3199. y = 0;
  3200. result = (-2147483649.5 >>> y)
  3201. check = 2147483647
  3202. if(result != check) {{ fail(test, check, result); }} ++test;
  3203. // Test 631: RHS constant
  3204. x = -2147483649.5;
  3205. result = (x >>> 0)
  3206. check = 2147483647
  3207. if(result != check) {{ fail(test, check, result); }} ++test;
  3208. // Test 632: both arguments variables
  3209. x = -2147483649.4;
  3210. y = 0;
  3211. result = (x >>> y);
  3212. check = 2147483647;
  3213. if(result != check) { fail(test, check, result); } ++test;
  3214. // Test 633: both arguments constants
  3215. result = (-2147483649.4 >>> 0)
  3216. check = 2147483647
  3217. if(result != check) {{ fail(test, check, result); }} ++test;
  3218. // Test 634: LHS constant
  3219. y = 0;
  3220. result = (-2147483649.4 >>> y)
  3221. check = 2147483647
  3222. if(result != check) {{ fail(test, check, result); }} ++test;
  3223. // Test 635: RHS constant
  3224. x = -2147483649.4;
  3225. result = (x >>> 0)
  3226. check = 2147483647
  3227. if(result != check) {{ fail(test, check, result); }} ++test;
  3228. // Test 636: both arguments variables
  3229. x = -2147483650.4;
  3230. y = 0;
  3231. result = (x >>> y);
  3232. check = 2147483646;
  3233. if(result != check) { fail(test, check, result); } ++test;
  3234. // Test 637: both arguments constants
  3235. result = (-2147483650.4 >>> 0)
  3236. check = 2147483646
  3237. if(result != check) {{ fail(test, check, result); }} ++test;
  3238. // Test 638: LHS constant
  3239. y = 0;
  3240. result = (-2147483650.4 >>> y)
  3241. check = 2147483646
  3242. if(result != check) {{ fail(test, check, result); }} ++test;
  3243. // Test 639: RHS constant
  3244. x = -2147483650.4;
  3245. result = (x >>> 0)
  3246. check = 2147483646
  3247. if(result != check) {{ fail(test, check, result); }} ++test;
  3248. // Test 640: both arguments variables
  3249. x = -2147483650.5;
  3250. y = 0;
  3251. result = (x >>> y);
  3252. check = 2147483646;
  3253. if(result != check) { fail(test, check, result); } ++test;
  3254. // Test 641: both arguments constants
  3255. result = (-2147483650.5 >>> 0)
  3256. check = 2147483646
  3257. if(result != check) {{ fail(test, check, result); }} ++test;
  3258. // Test 642: LHS constant
  3259. y = 0;
  3260. result = (-2147483650.5 >>> y)
  3261. check = 2147483646
  3262. if(result != check) {{ fail(test, check, result); }} ++test;
  3263. // Test 643: RHS constant
  3264. x = -2147483650.5;
  3265. result = (x >>> 0)
  3266. check = 2147483646
  3267. if(result != check) {{ fail(test, check, result); }} ++test;
  3268. // Test 644: both arguments variables
  3269. x = -2147483650.6;
  3270. y = 0;
  3271. result = (x >>> y);
  3272. check = 2147483646;
  3273. if(result != check) { fail(test, check, result); } ++test;
  3274. // Test 645: both arguments constants
  3275. result = (-2147483650.6 >>> 0)
  3276. check = 2147483646
  3277. if(result != check) {{ fail(test, check, result); }} ++test;
  3278. // Test 646: LHS constant
  3279. y = 0;
  3280. result = (-2147483650.6 >>> y)
  3281. check = 2147483646
  3282. if(result != check) {{ fail(test, check, result); }} ++test;
  3283. // Test 647: RHS constant
  3284. x = -2147483650.6;
  3285. result = (x >>> 0)
  3286. check = 2147483646
  3287. if(result != check) {{ fail(test, check, result); }} ++test;
  3288. // Test 648: both arguments variables
  3289. x = 4294967295.4;
  3290. y = 0;
  3291. result = (x >>> y);
  3292. check = 4294967295;
  3293. if(result != check) { fail(test, check, result); } ++test;
  3294. // Test 649: both arguments constants
  3295. result = (4294967295.4 >>> 0)
  3296. check = 4294967295
  3297. if(result != check) {{ fail(test, check, result); }} ++test;
  3298. // Test 650: LHS constant
  3299. y = 0;
  3300. result = (4294967295.4 >>> y)
  3301. check = 4294967295
  3302. if(result != check) {{ fail(test, check, result); }} ++test;
  3303. // Test 651: RHS constant
  3304. x = 4294967295.4;
  3305. result = (x >>> 0)
  3306. check = 4294967295
  3307. if(result != check) {{ fail(test, check, result); }} ++test;
  3308. // Test 652: both arguments variables
  3309. x = 4294967295.5;
  3310. y = 0;
  3311. result = (x >>> y);
  3312. check = 4294967295;
  3313. if(result != check) { fail(test, check, result); } ++test;
  3314. // Test 653: both arguments constants
  3315. result = (4294967295.5 >>> 0)
  3316. check = 4294967295
  3317. if(result != check) {{ fail(test, check, result); }} ++test;
  3318. // Test 654: LHS constant
  3319. y = 0;
  3320. result = (4294967295.5 >>> y)
  3321. check = 4294967295
  3322. if(result != check) {{ fail(test, check, result); }} ++test;
  3323. // Test 655: RHS constant
  3324. x = 4294967295.5;
  3325. result = (x >>> 0)
  3326. check = 4294967295
  3327. if(result != check) {{ fail(test, check, result); }} ++test;
  3328. // Test 656: both arguments variables
  3329. x = 4294967295.6;
  3330. y = 0;
  3331. result = (x >>> y);
  3332. check = 4294967295;
  3333. if(result != check) { fail(test, check, result); } ++test;
  3334. // Test 657: both arguments constants
  3335. result = (4294967295.6 >>> 0)
  3336. check = 4294967295
  3337. if(result != check) {{ fail(test, check, result); }} ++test;
  3338. // Test 658: LHS constant
  3339. y = 0;
  3340. result = (4294967295.6 >>> y)
  3341. check = 4294967295
  3342. if(result != check) {{ fail(test, check, result); }} ++test;
  3343. // Test 659: RHS constant
  3344. x = 4294967295.6;
  3345. result = (x >>> 0)
  3346. check = 4294967295
  3347. if(result != check) {{ fail(test, check, result); }} ++test;
  3348. // Test 660: both arguments variables
  3349. x = 4294967294.6;
  3350. y = 0;
  3351. result = (x >>> y);
  3352. check = 4294967294;
  3353. if(result != check) { fail(test, check, result); } ++test;
  3354. // Test 661: both arguments constants
  3355. result = (4294967294.6 >>> 0)
  3356. check = 4294967294
  3357. if(result != check) {{ fail(test, check, result); }} ++test;
  3358. // Test 662: LHS constant
  3359. y = 0;
  3360. result = (4294967294.6 >>> y)
  3361. check = 4294967294
  3362. if(result != check) {{ fail(test, check, result); }} ++test;
  3363. // Test 663: RHS constant
  3364. x = 4294967294.6;
  3365. result = (x >>> 0)
  3366. check = 4294967294
  3367. if(result != check) {{ fail(test, check, result); }} ++test;
  3368. // Test 664: both arguments variables
  3369. x = 4294967294.5;
  3370. y = 0;
  3371. result = (x >>> y);
  3372. check = 4294967294;
  3373. if(result != check) { fail(test, check, result); } ++test;
  3374. // Test 665: both arguments constants
  3375. result = (4294967294.5 >>> 0)
  3376. check = 4294967294
  3377. if(result != check) {{ fail(test, check, result); }} ++test;
  3378. // Test 666: LHS constant
  3379. y = 0;
  3380. result = (4294967294.5 >>> y)
  3381. check = 4294967294
  3382. if(result != check) {{ fail(test, check, result); }} ++test;
  3383. // Test 667: RHS constant
  3384. x = 4294967294.5;
  3385. result = (x >>> 0)
  3386. check = 4294967294
  3387. if(result != check) {{ fail(test, check, result); }} ++test;
  3388. // Test 668: both arguments variables
  3389. x = 4294967294.4;
  3390. y = 0;
  3391. result = (x >>> y);
  3392. check = 4294967294;
  3393. if(result != check) { fail(test, check, result); } ++test;
  3394. // Test 669: both arguments constants
  3395. result = (4294967294.4 >>> 0)
  3396. check = 4294967294
  3397. if(result != check) {{ fail(test, check, result); }} ++test;
  3398. // Test 670: LHS constant
  3399. y = 0;
  3400. result = (4294967294.4 >>> y)
  3401. check = 4294967294
  3402. if(result != check) {{ fail(test, check, result); }} ++test;
  3403. // Test 671: RHS constant
  3404. x = 4294967294.4;
  3405. result = (x >>> 0)
  3406. check = 4294967294
  3407. if(result != check) {{ fail(test, check, result); }} ++test;
  3408. // Test 672: both arguments variables
  3409. x = 4294967296.4;
  3410. y = 0;
  3411. result = (x >>> y);
  3412. check = 0;
  3413. if(result != check) { fail(test, check, result); } ++test;
  3414. // Test 673: both arguments constants
  3415. result = (4294967296.4 >>> 0)
  3416. check = 0
  3417. if(result != check) {{ fail(test, check, result); }} ++test;
  3418. // Test 674: LHS constant
  3419. y = 0;
  3420. result = (4294967296.4 >>> y)
  3421. check = 0
  3422. if(result != check) {{ fail(test, check, result); }} ++test;
  3423. // Test 675: RHS constant
  3424. x = 4294967296.4;
  3425. result = (x >>> 0)
  3426. check = 0
  3427. if(result != check) {{ fail(test, check, result); }} ++test;
  3428. // Test 676: both arguments variables
  3429. x = 4294967296.5;
  3430. y = 0;
  3431. result = (x >>> y);
  3432. check = 0;
  3433. if(result != check) { fail(test, check, result); } ++test;
  3434. // Test 677: both arguments constants
  3435. result = (4294967296.5 >>> 0)
  3436. check = 0
  3437. if(result != check) {{ fail(test, check, result); }} ++test;
  3438. // Test 678: LHS constant
  3439. y = 0;
  3440. result = (4294967296.5 >>> y)
  3441. check = 0
  3442. if(result != check) {{ fail(test, check, result); }} ++test;
  3443. // Test 679: RHS constant
  3444. x = 4294967296.5;
  3445. result = (x >>> 0)
  3446. check = 0
  3447. if(result != check) {{ fail(test, check, result); }} ++test;
  3448. // Test 680: both arguments variables
  3449. x = 4294967296.6;
  3450. y = 0;
  3451. result = (x >>> y);
  3452. check = 0;
  3453. if(result != check) { fail(test, check, result); } ++test;
  3454. // Test 681: both arguments constants
  3455. result = (4294967296.6 >>> 0)
  3456. check = 0
  3457. if(result != check) {{ fail(test, check, result); }} ++test;
  3458. // Test 682: LHS constant
  3459. y = 0;
  3460. result = (4294967296.6 >>> y)
  3461. check = 0
  3462. if(result != check) {{ fail(test, check, result); }} ++test;
  3463. // Test 683: RHS constant
  3464. x = 4294967296.6;
  3465. result = (x >>> 0)
  3466. check = 0
  3467. if(result != check) {{ fail(test, check, result); }} ++test;
  3468. // Test 684: both arguments variables
  3469. x = 4294967295.6;
  3470. y = 0;
  3471. result = (x >>> y);
  3472. check = 4294967295;
  3473. if(result != check) { fail(test, check, result); } ++test;
  3474. // Test 685: both arguments constants
  3475. result = (4294967295.6 >>> 0)
  3476. check = 4294967295
  3477. if(result != check) {{ fail(test, check, result); }} ++test;
  3478. // Test 686: LHS constant
  3479. y = 0;
  3480. result = (4294967295.6 >>> y)
  3481. check = 4294967295
  3482. if(result != check) {{ fail(test, check, result); }} ++test;
  3483. // Test 687: RHS constant
  3484. x = 4294967295.6;
  3485. result = (x >>> 0)
  3486. check = 4294967295
  3487. if(result != check) {{ fail(test, check, result); }} ++test;
  3488. // Test 688: both arguments variables
  3489. x = 4294967295.5;
  3490. y = 0;
  3491. result = (x >>> y);
  3492. check = 4294967295;
  3493. if(result != check) { fail(test, check, result); } ++test;
  3494. // Test 689: both arguments constants
  3495. result = (4294967295.5 >>> 0)
  3496. check = 4294967295
  3497. if(result != check) {{ fail(test, check, result); }} ++test;
  3498. // Test 690: LHS constant
  3499. y = 0;
  3500. result = (4294967295.5 >>> y)
  3501. check = 4294967295
  3502. if(result != check) {{ fail(test, check, result); }} ++test;
  3503. // Test 691: RHS constant
  3504. x = 4294967295.5;
  3505. result = (x >>> 0)
  3506. check = 4294967295
  3507. if(result != check) {{ fail(test, check, result); }} ++test;
  3508. // Test 692: both arguments variables
  3509. x = 4294967295.4;
  3510. y = 0;
  3511. result = (x >>> y);
  3512. check = 4294967295;
  3513. if(result != check) { fail(test, check, result); } ++test;
  3514. // Test 693: both arguments constants
  3515. result = (4294967295.4 >>> 0)
  3516. check = 4294967295
  3517. if(result != check) {{ fail(test, check, result); }} ++test;
  3518. // Test 694: LHS constant
  3519. y = 0;
  3520. result = (4294967295.4 >>> y)
  3521. check = 4294967295
  3522. if(result != check) {{ fail(test, check, result); }} ++test;
  3523. // Test 695: RHS constant
  3524. x = 4294967295.4;
  3525. result = (x >>> 0)
  3526. check = 4294967295
  3527. if(result != check) {{ fail(test, check, result); }} ++test;
  3528. // Test 696: both arguments variables
  3529. x = -4294967294.6;
  3530. y = 0;
  3531. result = (x >>> y);
  3532. check = 2;
  3533. if(result != check) { fail(test, check, result); } ++test;
  3534. // Test 697: both arguments constants
  3535. result = (-4294967294.6 >>> 0)
  3536. check = 2
  3537. if(result != check) {{ fail(test, check, result); }} ++test;
  3538. // Test 698: LHS constant
  3539. y = 0;
  3540. result = (-4294967294.6 >>> y)
  3541. check = 2
  3542. if(result != check) {{ fail(test, check, result); }} ++test;
  3543. // Test 699: RHS constant
  3544. x = -4294967294.6;
  3545. result = (x >>> 0)
  3546. check = 2
  3547. if(result != check) {{ fail(test, check, result); }} ++test;
  3548. }
  3549. function test7() {
  3550. var x;
  3551. var y;
  3552. var result;
  3553. var check;
  3554. // Test 700: both arguments variables
  3555. x = -4294967294.5;
  3556. y = 0;
  3557. result = (x >>> y);
  3558. check = 2;
  3559. if(result != check) { fail(test, check, result); } ++test;
  3560. // Test 701: both arguments constants
  3561. result = (-4294967294.5 >>> 0)
  3562. check = 2
  3563. if(result != check) {{ fail(test, check, result); }} ++test;
  3564. // Test 702: LHS constant
  3565. y = 0;
  3566. result = (-4294967294.5 >>> y)
  3567. check = 2
  3568. if(result != check) {{ fail(test, check, result); }} ++test;
  3569. // Test 703: RHS constant
  3570. x = -4294967294.5;
  3571. result = (x >>> 0)
  3572. check = 2
  3573. if(result != check) {{ fail(test, check, result); }} ++test;
  3574. // Test 704: both arguments variables
  3575. x = -4294967294.4;
  3576. y = 0;
  3577. result = (x >>> y);
  3578. check = 2;
  3579. if(result != check) { fail(test, check, result); } ++test;
  3580. // Test 705: both arguments constants
  3581. result = (-4294967294.4 >>> 0)
  3582. check = 2
  3583. if(result != check) {{ fail(test, check, result); }} ++test;
  3584. // Test 706: LHS constant
  3585. y = 0;
  3586. result = (-4294967294.4 >>> y)
  3587. check = 2
  3588. if(result != check) {{ fail(test, check, result); }} ++test;
  3589. // Test 707: RHS constant
  3590. x = -4294967294.4;
  3591. result = (x >>> 0)
  3592. check = 2
  3593. if(result != check) {{ fail(test, check, result); }} ++test;
  3594. // Test 708: both arguments variables
  3595. x = -4294967295.4;
  3596. y = 0;
  3597. result = (x >>> y);
  3598. check = 1;
  3599. if(result != check) { fail(test, check, result); } ++test;
  3600. // Test 709: both arguments constants
  3601. result = (-4294967295.4 >>> 0)
  3602. check = 1
  3603. if(result != check) {{ fail(test, check, result); }} ++test;
  3604. // Test 710: LHS constant
  3605. y = 0;
  3606. result = (-4294967295.4 >>> y)
  3607. check = 1
  3608. if(result != check) {{ fail(test, check, result); }} ++test;
  3609. // Test 711: RHS constant
  3610. x = -4294967295.4;
  3611. result = (x >>> 0)
  3612. check = 1
  3613. if(result != check) {{ fail(test, check, result); }} ++test;
  3614. // Test 712: both arguments variables
  3615. x = -4294967295.5;
  3616. y = 0;
  3617. result = (x >>> y);
  3618. check = 1;
  3619. if(result != check) { fail(test, check, result); } ++test;
  3620. // Test 713: both arguments constants
  3621. result = (-4294967295.5 >>> 0)
  3622. check = 1
  3623. if(result != check) {{ fail(test, check, result); }} ++test;
  3624. // Test 714: LHS constant
  3625. y = 0;
  3626. result = (-4294967295.5 >>> y)
  3627. check = 1
  3628. if(result != check) {{ fail(test, check, result); }} ++test;
  3629. // Test 715: RHS constant
  3630. x = -4294967295.5;
  3631. result = (x >>> 0)
  3632. check = 1
  3633. if(result != check) {{ fail(test, check, result); }} ++test;
  3634. // Test 716: both arguments variables
  3635. x = -4294967295.6;
  3636. y = 0;
  3637. result = (x >>> y);
  3638. check = 1;
  3639. if(result != check) { fail(test, check, result); } ++test;
  3640. // Test 717: both arguments constants
  3641. result = (-4294967295.6 >>> 0)
  3642. check = 1
  3643. if(result != check) {{ fail(test, check, result); }} ++test;
  3644. // Test 718: LHS constant
  3645. y = 0;
  3646. result = (-4294967295.6 >>> y)
  3647. check = 1
  3648. if(result != check) {{ fail(test, check, result); }} ++test;
  3649. // Test 719: RHS constant
  3650. x = -4294967295.6;
  3651. result = (x >>> 0)
  3652. check = 1
  3653. if(result != check) {{ fail(test, check, result); }} ++test;
  3654. // Test 720: both arguments variables
  3655. x = -4294967295.6;
  3656. y = 0;
  3657. result = (x >>> y);
  3658. check = 1;
  3659. if(result != check) { fail(test, check, result); } ++test;
  3660. // Test 721: both arguments constants
  3661. result = (-4294967295.6 >>> 0)
  3662. check = 1
  3663. if(result != check) {{ fail(test, check, result); }} ++test;
  3664. // Test 722: LHS constant
  3665. y = 0;
  3666. result = (-4294967295.6 >>> y)
  3667. check = 1
  3668. if(result != check) {{ fail(test, check, result); }} ++test;
  3669. // Test 723: RHS constant
  3670. x = -4294967295.6;
  3671. result = (x >>> 0)
  3672. check = 1
  3673. if(result != check) {{ fail(test, check, result); }} ++test;
  3674. // Test 724: both arguments variables
  3675. x = -4294967295.5;
  3676. y = 0;
  3677. result = (x >>> y);
  3678. check = 1;
  3679. if(result != check) { fail(test, check, result); } ++test;
  3680. // Test 725: both arguments constants
  3681. result = (-4294967295.5 >>> 0)
  3682. check = 1
  3683. if(result != check) {{ fail(test, check, result); }} ++test;
  3684. // Test 726: LHS constant
  3685. y = 0;
  3686. result = (-4294967295.5 >>> y)
  3687. check = 1
  3688. if(result != check) {{ fail(test, check, result); }} ++test;
  3689. // Test 727: RHS constant
  3690. x = -4294967295.5;
  3691. result = (x >>> 0)
  3692. check = 1
  3693. if(result != check) {{ fail(test, check, result); }} ++test;
  3694. // Test 728: both arguments variables
  3695. x = -4294967295.4;
  3696. y = 0;
  3697. result = (x >>> y);
  3698. check = 1;
  3699. if(result != check) { fail(test, check, result); } ++test;
  3700. // Test 729: both arguments constants
  3701. result = (-4294967295.4 >>> 0)
  3702. check = 1
  3703. if(result != check) {{ fail(test, check, result); }} ++test;
  3704. // Test 730: LHS constant
  3705. y = 0;
  3706. result = (-4294967295.4 >>> y)
  3707. check = 1
  3708. if(result != check) {{ fail(test, check, result); }} ++test;
  3709. // Test 731: RHS constant
  3710. x = -4294967295.4;
  3711. result = (x >>> 0)
  3712. check = 1
  3713. if(result != check) {{ fail(test, check, result); }} ++test;
  3714. // Test 732: both arguments variables
  3715. x = -4294967296.4;
  3716. y = 0;
  3717. result = (x >>> y);
  3718. check = 0;
  3719. if(result != check) { fail(test, check, result); } ++test;
  3720. // Test 733: both arguments constants
  3721. result = (-4294967296.4 >>> 0)
  3722. check = 0
  3723. if(result != check) {{ fail(test, check, result); }} ++test;
  3724. // Test 734: LHS constant
  3725. y = 0;
  3726. result = (-4294967296.4 >>> y)
  3727. check = 0
  3728. if(result != check) {{ fail(test, check, result); }} ++test;
  3729. // Test 735: RHS constant
  3730. x = -4294967296.4;
  3731. result = (x >>> 0)
  3732. check = 0
  3733. if(result != check) {{ fail(test, check, result); }} ++test;
  3734. // Test 736: both arguments variables
  3735. x = -4294967296.5;
  3736. y = 0;
  3737. result = (x >>> y);
  3738. check = 0;
  3739. if(result != check) { fail(test, check, result); } ++test;
  3740. // Test 737: both arguments constants
  3741. result = (-4294967296.5 >>> 0)
  3742. check = 0
  3743. if(result != check) {{ fail(test, check, result); }} ++test;
  3744. // Test 738: LHS constant
  3745. y = 0;
  3746. result = (-4294967296.5 >>> y)
  3747. check = 0
  3748. if(result != check) {{ fail(test, check, result); }} ++test;
  3749. // Test 739: RHS constant
  3750. x = -4294967296.5;
  3751. result = (x >>> 0)
  3752. check = 0
  3753. if(result != check) {{ fail(test, check, result); }} ++test;
  3754. // Test 740: both arguments variables
  3755. x = -4294967296.6;
  3756. y = 0;
  3757. result = (x >>> y);
  3758. check = 0;
  3759. if(result != check) { fail(test, check, result); } ++test;
  3760. // Test 741: both arguments constants
  3761. result = (-4294967296.6 >>> 0)
  3762. check = 0
  3763. if(result != check) {{ fail(test, check, result); }} ++test;
  3764. // Test 742: LHS constant
  3765. y = 0;
  3766. result = (-4294967296.6 >>> y)
  3767. check = 0
  3768. if(result != check) {{ fail(test, check, result); }} ++test;
  3769. // Test 743: RHS constant
  3770. x = -4294967296.6;
  3771. result = (x >>> 0)
  3772. check = 0
  3773. if(result != check) {{ fail(test, check, result); }} ++test;
  3774. }
  3775. test0();
  3776. test1();
  3777. test2();
  3778. test3();
  3779. test4();
  3780. test5();
  3781. test6();
  3782. test7();
  3783. WScript.Echo("done");