bitwiseShiftLeft_basiclong_64bit.phpt 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. --TEST--
  2. Test << operator : 64bit long tests
  3. --SKIPIF--
  4. <?php
  5. if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
  6. if (strtolower(php_uname('m')) != 'x86_64') die("skip this test is for x86_64 platforms only");
  7. ?>
  8. --FILE--
  9. <?php
  10. define("MAX_64Bit", 9223372036854775807);
  11. define("MAX_32Bit", 2147483647);
  12. define("MIN_64Bit", -9223372036854775807 - 1);
  13. define("MIN_32Bit", -2147483647 - 1);
  14. $longVals = array(
  15. MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
  16. MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
  17. MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
  18. );
  19. $otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MAX_64Bit);
  20. error_reporting(E_ERROR);
  21. foreach ($longVals as $longVal) {
  22. foreach($otherVals as $otherVal) {
  23. echo "--- testing: $longVal << $otherVal ---\n";
  24. var_dump($longVal<<$otherVal);
  25. }
  26. }
  27. foreach ($otherVals as $otherVal) {
  28. foreach($longVals as $longVal) {
  29. echo "--- testing: $otherVal << $longVal ---\n";
  30. var_dump($otherVal<<$longVal);
  31. }
  32. }
  33. ?>
  34. ===DONE===
  35. --EXPECT--
  36. --- testing: 9223372036854775807 << 0 ---
  37. int(9223372036854775807)
  38. --- testing: 9223372036854775807 << 1 ---
  39. int(-2)
  40. --- testing: 9223372036854775807 << -1 ---
  41. int(-9223372036854775808)
  42. --- testing: 9223372036854775807 << 7 ---
  43. int(-128)
  44. --- testing: 9223372036854775807 << 9 ---
  45. int(-512)
  46. --- testing: 9223372036854775807 << 65 ---
  47. int(-2)
  48. --- testing: 9223372036854775807 << -44 ---
  49. int(-1048576)
  50. --- testing: 9223372036854775807 << 2147483647 ---
  51. int(-9223372036854775808)
  52. --- testing: 9223372036854775807 << 9223372036854775807 ---
  53. int(-9223372036854775808)
  54. --- testing: -9223372036854775808 << 0 ---
  55. int(-9223372036854775808)
  56. --- testing: -9223372036854775808 << 1 ---
  57. int(0)
  58. --- testing: -9223372036854775808 << -1 ---
  59. int(0)
  60. --- testing: -9223372036854775808 << 7 ---
  61. int(0)
  62. --- testing: -9223372036854775808 << 9 ---
  63. int(0)
  64. --- testing: -9223372036854775808 << 65 ---
  65. int(0)
  66. --- testing: -9223372036854775808 << -44 ---
  67. int(0)
  68. --- testing: -9223372036854775808 << 2147483647 ---
  69. int(0)
  70. --- testing: -9223372036854775808 << 9223372036854775807 ---
  71. int(0)
  72. --- testing: 2147483647 << 0 ---
  73. int(2147483647)
  74. --- testing: 2147483647 << 1 ---
  75. int(4294967294)
  76. --- testing: 2147483647 << -1 ---
  77. int(-9223372036854775808)
  78. --- testing: 2147483647 << 7 ---
  79. int(274877906816)
  80. --- testing: 2147483647 << 9 ---
  81. int(1099511627264)
  82. --- testing: 2147483647 << 65 ---
  83. int(4294967294)
  84. --- testing: 2147483647 << -44 ---
  85. int(2251799812636672)
  86. --- testing: 2147483647 << 2147483647 ---
  87. int(-9223372036854775808)
  88. --- testing: 2147483647 << 9223372036854775807 ---
  89. int(-9223372036854775808)
  90. --- testing: -2147483648 << 0 ---
  91. int(-2147483648)
  92. --- testing: -2147483648 << 1 ---
  93. int(-4294967296)
  94. --- testing: -2147483648 << -1 ---
  95. int(0)
  96. --- testing: -2147483648 << 7 ---
  97. int(-274877906944)
  98. --- testing: -2147483648 << 9 ---
  99. int(-1099511627776)
  100. --- testing: -2147483648 << 65 ---
  101. int(-4294967296)
  102. --- testing: -2147483648 << -44 ---
  103. int(-2251799813685248)
  104. --- testing: -2147483648 << 2147483647 ---
  105. int(0)
  106. --- testing: -2147483648 << 9223372036854775807 ---
  107. int(0)
  108. --- testing: 9223372034707292160 << 0 ---
  109. int(9223372034707292160)
  110. --- testing: 9223372034707292160 << 1 ---
  111. int(-4294967296)
  112. --- testing: 9223372034707292160 << -1 ---
  113. int(0)
  114. --- testing: 9223372034707292160 << 7 ---
  115. int(-274877906944)
  116. --- testing: 9223372034707292160 << 9 ---
  117. int(-1099511627776)
  118. --- testing: 9223372034707292160 << 65 ---
  119. int(-4294967296)
  120. --- testing: 9223372034707292160 << -44 ---
  121. int(-2251799813685248)
  122. --- testing: 9223372034707292160 << 2147483647 ---
  123. int(0)
  124. --- testing: 9223372034707292160 << 9223372036854775807 ---
  125. int(0)
  126. --- testing: -9223372034707292160 << 0 ---
  127. int(-9223372034707292160)
  128. --- testing: -9223372034707292160 << 1 ---
  129. int(4294967296)
  130. --- testing: -9223372034707292160 << -1 ---
  131. int(0)
  132. --- testing: -9223372034707292160 << 7 ---
  133. int(274877906944)
  134. --- testing: -9223372034707292160 << 9 ---
  135. int(1099511627776)
  136. --- testing: -9223372034707292160 << 65 ---
  137. int(4294967296)
  138. --- testing: -9223372034707292160 << -44 ---
  139. int(2251799813685248)
  140. --- testing: -9223372034707292160 << 2147483647 ---
  141. int(0)
  142. --- testing: -9223372034707292160 << 9223372036854775807 ---
  143. int(0)
  144. --- testing: 2147483648 << 0 ---
  145. int(2147483648)
  146. --- testing: 2147483648 << 1 ---
  147. int(4294967296)
  148. --- testing: 2147483648 << -1 ---
  149. int(0)
  150. --- testing: 2147483648 << 7 ---
  151. int(274877906944)
  152. --- testing: 2147483648 << 9 ---
  153. int(1099511627776)
  154. --- testing: 2147483648 << 65 ---
  155. int(4294967296)
  156. --- testing: 2147483648 << -44 ---
  157. int(2251799813685248)
  158. --- testing: 2147483648 << 2147483647 ---
  159. int(0)
  160. --- testing: 2147483648 << 9223372036854775807 ---
  161. int(0)
  162. --- testing: -2147483649 << 0 ---
  163. int(-2147483649)
  164. --- testing: -2147483649 << 1 ---
  165. int(-4294967298)
  166. --- testing: -2147483649 << -1 ---
  167. int(-9223372036854775808)
  168. --- testing: -2147483649 << 7 ---
  169. int(-274877907072)
  170. --- testing: -2147483649 << 9 ---
  171. int(-1099511628288)
  172. --- testing: -2147483649 << 65 ---
  173. int(-4294967298)
  174. --- testing: -2147483649 << -44 ---
  175. int(-2251799814733824)
  176. --- testing: -2147483649 << 2147483647 ---
  177. int(-9223372036854775808)
  178. --- testing: -2147483649 << 9223372036854775807 ---
  179. int(-9223372036854775808)
  180. --- testing: 4294967294 << 0 ---
  181. int(4294967294)
  182. --- testing: 4294967294 << 1 ---
  183. int(8589934588)
  184. --- testing: 4294967294 << -1 ---
  185. int(0)
  186. --- testing: 4294967294 << 7 ---
  187. int(549755813632)
  188. --- testing: 4294967294 << 9 ---
  189. int(2199023254528)
  190. --- testing: 4294967294 << 65 ---
  191. int(8589934588)
  192. --- testing: 4294967294 << -44 ---
  193. int(4503599625273344)
  194. --- testing: 4294967294 << 2147483647 ---
  195. int(0)
  196. --- testing: 4294967294 << 9223372036854775807 ---
  197. int(0)
  198. --- testing: 4294967295 << 0 ---
  199. int(4294967295)
  200. --- testing: 4294967295 << 1 ---
  201. int(8589934590)
  202. --- testing: 4294967295 << -1 ---
  203. int(-9223372036854775808)
  204. --- testing: 4294967295 << 7 ---
  205. int(549755813760)
  206. --- testing: 4294967295 << 9 ---
  207. int(2199023255040)
  208. --- testing: 4294967295 << 65 ---
  209. int(8589934590)
  210. --- testing: 4294967295 << -44 ---
  211. int(4503599626321920)
  212. --- testing: 4294967295 << 2147483647 ---
  213. int(-9223372036854775808)
  214. --- testing: 4294967295 << 9223372036854775807 ---
  215. int(-9223372036854775808)
  216. --- testing: 4294967293 << 0 ---
  217. int(4294967293)
  218. --- testing: 4294967293 << 1 ---
  219. int(8589934586)
  220. --- testing: 4294967293 << -1 ---
  221. int(-9223372036854775808)
  222. --- testing: 4294967293 << 7 ---
  223. int(549755813504)
  224. --- testing: 4294967293 << 9 ---
  225. int(2199023254016)
  226. --- testing: 4294967293 << 65 ---
  227. int(8589934586)
  228. --- testing: 4294967293 << -44 ---
  229. int(4503599624224768)
  230. --- testing: 4294967293 << 2147483647 ---
  231. int(-9223372036854775808)
  232. --- testing: 4294967293 << 9223372036854775807 ---
  233. int(-9223372036854775808)
  234. --- testing: 9223372036854775806 << 0 ---
  235. int(9223372036854775806)
  236. --- testing: 9223372036854775806 << 1 ---
  237. int(-4)
  238. --- testing: 9223372036854775806 << -1 ---
  239. int(0)
  240. --- testing: 9223372036854775806 << 7 ---
  241. int(-256)
  242. --- testing: 9223372036854775806 << 9 ---
  243. int(-1024)
  244. --- testing: 9223372036854775806 << 65 ---
  245. int(-4)
  246. --- testing: 9223372036854775806 << -44 ---
  247. int(-2097152)
  248. --- testing: 9223372036854775806 << 2147483647 ---
  249. int(0)
  250. --- testing: 9223372036854775806 << 9223372036854775807 ---
  251. int(0)
  252. --- testing: 9.2233720368548E+18 << 0 ---
  253. int(-9223372036854775808)
  254. --- testing: 9.2233720368548E+18 << 1 ---
  255. int(0)
  256. --- testing: 9.2233720368548E+18 << -1 ---
  257. int(0)
  258. --- testing: 9.2233720368548E+18 << 7 ---
  259. int(0)
  260. --- testing: 9.2233720368548E+18 << 9 ---
  261. int(0)
  262. --- testing: 9.2233720368548E+18 << 65 ---
  263. int(0)
  264. --- testing: 9.2233720368548E+18 << -44 ---
  265. int(0)
  266. --- testing: 9.2233720368548E+18 << 2147483647 ---
  267. int(0)
  268. --- testing: 9.2233720368548E+18 << 9223372036854775807 ---
  269. int(0)
  270. --- testing: -9223372036854775807 << 0 ---
  271. int(-9223372036854775807)
  272. --- testing: -9223372036854775807 << 1 ---
  273. int(2)
  274. --- testing: -9223372036854775807 << -1 ---
  275. int(-9223372036854775808)
  276. --- testing: -9223372036854775807 << 7 ---
  277. int(128)
  278. --- testing: -9223372036854775807 << 9 ---
  279. int(512)
  280. --- testing: -9223372036854775807 << 65 ---
  281. int(2)
  282. --- testing: -9223372036854775807 << -44 ---
  283. int(1048576)
  284. --- testing: -9223372036854775807 << 2147483647 ---
  285. int(-9223372036854775808)
  286. --- testing: -9223372036854775807 << 9223372036854775807 ---
  287. int(-9223372036854775808)
  288. --- testing: -9.2233720368548E+18 << 0 ---
  289. int(-9223372036854775808)
  290. --- testing: -9.2233720368548E+18 << 1 ---
  291. int(0)
  292. --- testing: -9.2233720368548E+18 << -1 ---
  293. int(0)
  294. --- testing: -9.2233720368548E+18 << 7 ---
  295. int(0)
  296. --- testing: -9.2233720368548E+18 << 9 ---
  297. int(0)
  298. --- testing: -9.2233720368548E+18 << 65 ---
  299. int(0)
  300. --- testing: -9.2233720368548E+18 << -44 ---
  301. int(0)
  302. --- testing: -9.2233720368548E+18 << 2147483647 ---
  303. int(0)
  304. --- testing: -9.2233720368548E+18 << 9223372036854775807 ---
  305. int(0)
  306. --- testing: 0 << 9223372036854775807 ---
  307. int(0)
  308. --- testing: 0 << -9223372036854775808 ---
  309. int(0)
  310. --- testing: 0 << 2147483647 ---
  311. int(0)
  312. --- testing: 0 << -2147483648 ---
  313. int(0)
  314. --- testing: 0 << 9223372034707292160 ---
  315. int(0)
  316. --- testing: 0 << -9223372034707292160 ---
  317. int(0)
  318. --- testing: 0 << 2147483648 ---
  319. int(0)
  320. --- testing: 0 << -2147483649 ---
  321. int(0)
  322. --- testing: 0 << 4294967294 ---
  323. int(0)
  324. --- testing: 0 << 4294967295 ---
  325. int(0)
  326. --- testing: 0 << 4294967293 ---
  327. int(0)
  328. --- testing: 0 << 9223372036854775806 ---
  329. int(0)
  330. --- testing: 0 << 9.2233720368548E+18 ---
  331. int(0)
  332. --- testing: 0 << -9223372036854775807 ---
  333. int(0)
  334. --- testing: 0 << -9.2233720368548E+18 ---
  335. int(0)
  336. --- testing: 1 << 9223372036854775807 ---
  337. int(-9223372036854775808)
  338. --- testing: 1 << -9223372036854775808 ---
  339. int(1)
  340. --- testing: 1 << 2147483647 ---
  341. int(-9223372036854775808)
  342. --- testing: 1 << -2147483648 ---
  343. int(1)
  344. --- testing: 1 << 9223372034707292160 ---
  345. int(1)
  346. --- testing: 1 << -9223372034707292160 ---
  347. int(1)
  348. --- testing: 1 << 2147483648 ---
  349. int(1)
  350. --- testing: 1 << -2147483649 ---
  351. int(-9223372036854775808)
  352. --- testing: 1 << 4294967294 ---
  353. int(4611686018427387904)
  354. --- testing: 1 << 4294967295 ---
  355. int(-9223372036854775808)
  356. --- testing: 1 << 4294967293 ---
  357. int(2305843009213693952)
  358. --- testing: 1 << 9223372036854775806 ---
  359. int(4611686018427387904)
  360. --- testing: 1 << 9.2233720368548E+18 ---
  361. int(1)
  362. --- testing: 1 << -9223372036854775807 ---
  363. int(2)
  364. --- testing: 1 << -9.2233720368548E+18 ---
  365. int(1)
  366. --- testing: -1 << 9223372036854775807 ---
  367. int(-9223372036854775808)
  368. --- testing: -1 << -9223372036854775808 ---
  369. int(-1)
  370. --- testing: -1 << 2147483647 ---
  371. int(-9223372036854775808)
  372. --- testing: -1 << -2147483648 ---
  373. int(-1)
  374. --- testing: -1 << 9223372034707292160 ---
  375. int(-1)
  376. --- testing: -1 << -9223372034707292160 ---
  377. int(-1)
  378. --- testing: -1 << 2147483648 ---
  379. int(-1)
  380. --- testing: -1 << -2147483649 ---
  381. int(-9223372036854775808)
  382. --- testing: -1 << 4294967294 ---
  383. int(-4611686018427387904)
  384. --- testing: -1 << 4294967295 ---
  385. int(-9223372036854775808)
  386. --- testing: -1 << 4294967293 ---
  387. int(-2305843009213693952)
  388. --- testing: -1 << 9223372036854775806 ---
  389. int(-4611686018427387904)
  390. --- testing: -1 << 9.2233720368548E+18 ---
  391. int(-1)
  392. --- testing: -1 << -9223372036854775807 ---
  393. int(-2)
  394. --- testing: -1 << -9.2233720368548E+18 ---
  395. int(-1)
  396. --- testing: 7 << 9223372036854775807 ---
  397. int(-9223372036854775808)
  398. --- testing: 7 << -9223372036854775808 ---
  399. int(7)
  400. --- testing: 7 << 2147483647 ---
  401. int(-9223372036854775808)
  402. --- testing: 7 << -2147483648 ---
  403. int(7)
  404. --- testing: 7 << 9223372034707292160 ---
  405. int(7)
  406. --- testing: 7 << -9223372034707292160 ---
  407. int(7)
  408. --- testing: 7 << 2147483648 ---
  409. int(7)
  410. --- testing: 7 << -2147483649 ---
  411. int(-9223372036854775808)
  412. --- testing: 7 << 4294967294 ---
  413. int(-4611686018427387904)
  414. --- testing: 7 << 4294967295 ---
  415. int(-9223372036854775808)
  416. --- testing: 7 << 4294967293 ---
  417. int(-2305843009213693952)
  418. --- testing: 7 << 9223372036854775806 ---
  419. int(-4611686018427387904)
  420. --- testing: 7 << 9.2233720368548E+18 ---
  421. int(7)
  422. --- testing: 7 << -9223372036854775807 ---
  423. int(14)
  424. --- testing: 7 << -9.2233720368548E+18 ---
  425. int(7)
  426. --- testing: 9 << 9223372036854775807 ---
  427. int(-9223372036854775808)
  428. --- testing: 9 << -9223372036854775808 ---
  429. int(9)
  430. --- testing: 9 << 2147483647 ---
  431. int(-9223372036854775808)
  432. --- testing: 9 << -2147483648 ---
  433. int(9)
  434. --- testing: 9 << 9223372034707292160 ---
  435. int(9)
  436. --- testing: 9 << -9223372034707292160 ---
  437. int(9)
  438. --- testing: 9 << 2147483648 ---
  439. int(9)
  440. --- testing: 9 << -2147483649 ---
  441. int(-9223372036854775808)
  442. --- testing: 9 << 4294967294 ---
  443. int(4611686018427387904)
  444. --- testing: 9 << 4294967295 ---
  445. int(-9223372036854775808)
  446. --- testing: 9 << 4294967293 ---
  447. int(2305843009213693952)
  448. --- testing: 9 << 9223372036854775806 ---
  449. int(4611686018427387904)
  450. --- testing: 9 << 9.2233720368548E+18 ---
  451. int(9)
  452. --- testing: 9 << -9223372036854775807 ---
  453. int(18)
  454. --- testing: 9 << -9.2233720368548E+18 ---
  455. int(9)
  456. --- testing: 65 << 9223372036854775807 ---
  457. int(-9223372036854775808)
  458. --- testing: 65 << -9223372036854775808 ---
  459. int(65)
  460. --- testing: 65 << 2147483647 ---
  461. int(-9223372036854775808)
  462. --- testing: 65 << -2147483648 ---
  463. int(65)
  464. --- testing: 65 << 9223372034707292160 ---
  465. int(65)
  466. --- testing: 65 << -9223372034707292160 ---
  467. int(65)
  468. --- testing: 65 << 2147483648 ---
  469. int(65)
  470. --- testing: 65 << -2147483649 ---
  471. int(-9223372036854775808)
  472. --- testing: 65 << 4294967294 ---
  473. int(4611686018427387904)
  474. --- testing: 65 << 4294967295 ---
  475. int(-9223372036854775808)
  476. --- testing: 65 << 4294967293 ---
  477. int(2305843009213693952)
  478. --- testing: 65 << 9223372036854775806 ---
  479. int(4611686018427387904)
  480. --- testing: 65 << 9.2233720368548E+18 ---
  481. int(65)
  482. --- testing: 65 << -9223372036854775807 ---
  483. int(130)
  484. --- testing: 65 << -9.2233720368548E+18 ---
  485. int(65)
  486. --- testing: -44 << 9223372036854775807 ---
  487. int(0)
  488. --- testing: -44 << -9223372036854775808 ---
  489. int(-44)
  490. --- testing: -44 << 2147483647 ---
  491. int(0)
  492. --- testing: -44 << -2147483648 ---
  493. int(-44)
  494. --- testing: -44 << 9223372034707292160 ---
  495. int(-44)
  496. --- testing: -44 << -9223372034707292160 ---
  497. int(-44)
  498. --- testing: -44 << 2147483648 ---
  499. int(-44)
  500. --- testing: -44 << -2147483649 ---
  501. int(0)
  502. --- testing: -44 << 4294967294 ---
  503. int(0)
  504. --- testing: -44 << 4294967295 ---
  505. int(0)
  506. --- testing: -44 << 4294967293 ---
  507. int(-9223372036854775808)
  508. --- testing: -44 << 9223372036854775806 ---
  509. int(0)
  510. --- testing: -44 << 9.2233720368548E+18 ---
  511. int(-44)
  512. --- testing: -44 << -9223372036854775807 ---
  513. int(-88)
  514. --- testing: -44 << -9.2233720368548E+18 ---
  515. int(-44)
  516. --- testing: 2147483647 << 9223372036854775807 ---
  517. int(-9223372036854775808)
  518. --- testing: 2147483647 << -9223372036854775808 ---
  519. int(2147483647)
  520. --- testing: 2147483647 << 2147483647 ---
  521. int(-9223372036854775808)
  522. --- testing: 2147483647 << -2147483648 ---
  523. int(2147483647)
  524. --- testing: 2147483647 << 9223372034707292160 ---
  525. int(2147483647)
  526. --- testing: 2147483647 << -9223372034707292160 ---
  527. int(2147483647)
  528. --- testing: 2147483647 << 2147483648 ---
  529. int(2147483647)
  530. --- testing: 2147483647 << -2147483649 ---
  531. int(-9223372036854775808)
  532. --- testing: 2147483647 << 4294967294 ---
  533. int(-4611686018427387904)
  534. --- testing: 2147483647 << 4294967295 ---
  535. int(-9223372036854775808)
  536. --- testing: 2147483647 << 4294967293 ---
  537. int(-2305843009213693952)
  538. --- testing: 2147483647 << 9223372036854775806 ---
  539. int(-4611686018427387904)
  540. --- testing: 2147483647 << 9.2233720368548E+18 ---
  541. int(2147483647)
  542. --- testing: 2147483647 << -9223372036854775807 ---
  543. int(4294967294)
  544. --- testing: 2147483647 << -9.2233720368548E+18 ---
  545. int(2147483647)
  546. --- testing: 9223372036854775807 << 9223372036854775807 ---
  547. int(-9223372036854775808)
  548. --- testing: 9223372036854775807 << -9223372036854775808 ---
  549. int(9223372036854775807)
  550. --- testing: 9223372036854775807 << 2147483647 ---
  551. int(-9223372036854775808)
  552. --- testing: 9223372036854775807 << -2147483648 ---
  553. int(9223372036854775807)
  554. --- testing: 9223372036854775807 << 9223372034707292160 ---
  555. int(9223372036854775807)
  556. --- testing: 9223372036854775807 << -9223372034707292160 ---
  557. int(9223372036854775807)
  558. --- testing: 9223372036854775807 << 2147483648 ---
  559. int(9223372036854775807)
  560. --- testing: 9223372036854775807 << -2147483649 ---
  561. int(-9223372036854775808)
  562. --- testing: 9223372036854775807 << 4294967294 ---
  563. int(-4611686018427387904)
  564. --- testing: 9223372036854775807 << 4294967295 ---
  565. int(-9223372036854775808)
  566. --- testing: 9223372036854775807 << 4294967293 ---
  567. int(-2305843009213693952)
  568. --- testing: 9223372036854775807 << 9223372036854775806 ---
  569. int(-4611686018427387904)
  570. --- testing: 9223372036854775807 << 9.2233720368548E+18 ---
  571. int(9223372036854775807)
  572. --- testing: 9223372036854775807 << -9223372036854775807 ---
  573. int(-2)
  574. --- testing: 9223372036854775807 << -9.2233720368548E+18 ---
  575. int(9223372036854775807)
  576. ===DONE===