1 uint64_t gk104_builtin_code[] = { 2 /* 0x0000: gk104_div_u32 */ 3 0x2282828042804287, 4 0x7800000004009c03, 5 0x380000007c209c82, 6 0x180000000400dde2, 7 0x6000000008309c03, 8 0x1c00000005205d04, 9 0x500000000810dc03, 10 0x200400000c209c43, 11 0x2282828282828287, 12 0x500000000810dc03, 13 0x200400000c209c43, 14 0x500000000810dc03, 15 0x200400000c209c43, 16 0x500000000810dc03, 17 0x200400000c209c43, 18 0x500000000810dc03, 19 0x2042c28280428047, 20 0x200400000c209c43, 21 0x280000000000dde4, 22 0x5000000008001c43, 23 0x1c00000005209d04, 24 0x2006000000105c03, 25 0x1b0e00000811dc03, 26 0x4800000008104103, 27 0x220282e20042c287, 28 0x0800000004000002, 29 0x1b0e00000811c003, 30 0x4800000008104103, 31 0x0800000004000002, 32 0x9000000000001de7, 33 /* 0x00f0: gk104_div_s32 */ 34 0x188e0000fc05dc23, 35 0x18c40000fc17dc23, 36 0x2280428042828207, 37 0x1c00000001201ec4, 38 0x1c00000005205ec4, 39 0x7800000004009c03, 40 0x380000007c209c82, 41 0x180000000400dde2, 42 0x6000000008309c03, 43 0x1c00000005205d04, 44 0x2282828282828287, 45 0x500000000810dc03, 46 0x200400000c209c43, 47 0x500000000810dc03, 48 0x200400000c209c43, 49 0x500000000810dc03, 50 0x200400000c209c43, 51 0x500000000810dc03, 52 0x2282804280428287, 53 0x200400000c209c43, 54 0x500000000810dc03, 55 0x200400000c209c43, 56 0x280000000000dde4, 57 0x5000000008001c43, 58 0x1c00000005209d04, 59 0x2006000000105c03, 60 0x22028042c28042c7, 61 0x1b0e00000811dc03, 62 0x4800000008104103, 63 0x0800000004000002, 64 0x1b0e00000811c003, 65 0x4800000008104103, 66 0x0800000004000002, 67 0x1c00000001200f84, 68 0x22c200428042e047, 69 0x1c00000005204b84, 70 0x9000000000001de7, 71 0xd4004000084004c5, 72 0x0c5400000013dc04, 73 0xd4004000084009c5, 74 0xd4004000084007c5, 75 0x9000000000001de7, 76 0x2000000000000007, 77 0xd4004000084004c5, 78 0x0c5400000013dc04, 79 0xd4004000084009c5, 80 0xd4004000084007c5, 81 0x1900000004a0dc04, 82 0x1800000004a09c04, 83 0x30de0001d030dc02, 84 0x2000000000000007, 85 0x1900000000a05c04, 86 0x30de0001d0209c02, 87 0x1800000000a01c04, 88 0x30de0001d0105c02, 89 0x30de0001d0001c02, 90 0x9000000000001de7, 91 0xd4004000084004a5, 92 0x2000000000000007, 93 0x0c5400000013dc04, 94 0xd4004000084009a5, 95 0xd4004000084007a5, 96 0x1900000004a0de04, 97 0x1800000004a09e04, 98 0x30e000061c30dc02, 99 0x1900000000a05e04, 100 0x2000000000000007, 101 0x30e000061c209c02, 102 0x1800000000a01e04, 103 0x30e000061c105c02, 104 0x30e000061c001c02, 105 0x9000000000001de7, 106 0xd4004000084004a5, 107 0x0c5400000013dc04, 108 0x2000000000000007, 109 0xd4004000084009a5, 110 0xd4004000084007a5, 111 0x1d00000004a0de84, 112 0x1c00000004a09e84, 113 0x1d00000000a05e84, 114 0x1c00000000a01e84, 115 0x9000000000001de7, 116 0x2000000000000007, 117 0xd4004000084004a5, 118 0x0c5400000013dc04, 119 0xd4004000084009a5, 120 0xd4004000084007a5, 121 0x1d00000004a0dc04, 122 0x1c00000004a09c04, 123 0x1d00000000a05c04, 124 0x2000000000000007, 125 0x1c00000000a01c04, 126 0x9000000000001de7, 127 0xd4004000084004a5, 128 0x0c5400000013dc04, 129 0xd4004000084009a5, 130 0xd4004000084007a5, 131 0x1100000004a0dc04, 132 0x2000000000000007, 133 0x1000000004a09c04, 134 0x1100000000a05c04, 135 0x1000000000a01c04, 136 0x9000000000001de7, 137 0xd4004000084004a5, 138 0x0c5400000013dc04, 139 0xd4004000084009a5, 140 0x2000000000000007, 141 0xd4004000084007a5, 142 0x1800000000009de2, 143 0x18fe00000000dde2, 144 0x9000000000001de7, 145 0xd4004000084004a5, 146 0x0c5400000013dc04, 147 0xd4004000084009a5, 148 0x2000000000000007, 149 0xd4004000084007a5, 150 0x1800000000009de2, 151 0x180000000400dde2, 152 0x9000000000001de7, 153 0xd400400008400485, 154 0x0c5400000013dc04, 155 0xd400400008400985, 156 0x2000000000000007, 157 0xd400400008400785, 158 0x7000c02828005c03, 159 0x18fe00000000dde2, 160 0x7000c02850009c03, 161 0x3800000ffc001c02, 162 0x1800000008a09c04, 163 0x1800000004a05c04, 164 0x2000000000000007, 165 0x30ea00801c209c02, 166 0x1800000000a01c04, 167 0x30ea00801c105c02, 168 0x30ea00801c001c02, 169 0x9000000000001de7, 170 0xd400400008400485, 171 0x0c5400000013dc04, 172 0x2000000000000007, 173 0xd400400008400985, 174 0xd400400008400785, 175 0x7000c02828005c03, 176 0x180000000400dde2, 177 0x7000c02850009c03, 178 0x3800000ffc001c02, 179 0x9000000000001de7, 180 0x2000000000000007, 181 0xd400400008400485, 182 0x0c5400000013dc04, 183 0xd400400008400985, 184 0xd400400008400785, 185 0x198000000020dc04, 186 0x1900000000209c04, 187 0x30ee02020430dc02, 188 0x2000000000000007, 189 0x1880000000205c04, 190 0x30ee020204209c02, 191 0x1800000000201c04, 192 0x30ee020204105c02, 193 0x30ee020204001c02, 194 0x9000000000001de7, 195 0xd400400008400485, 196 0x2000000000000007, 197 0x0c5400000013dc04, 198 0xd400400008400985, 199 0xd400400008400785, 200 0x198000000020de04, 201 0x1900000000209e04, 202 0x30f004081030dc02, 203 0x1880000000205e04, 204 0x2000000000000007, 205 0x30f0040810209c02, 206 0x1800000000201e04, 207 0x30f0040810105c02, 208 0x30f0040810001c02, 209 0x9000000000001de7, 210 0xd400400008400485, 211 0x0c5400000013dc04, 212 0x2000000000000007, 213 0xd400400008400985, 214 0xd400400008400785, 215 0x1d8000000020de84, 216 0x1d00000000209e84, 217 0x1c80000000205e84, 218 0x1c00000000201e84, 219 0x9000000000001de7, 220 0x2000000000000007, 221 0xd400400008400485, 222 0x0c5400000013dc04, 223 0xd400400008400985, 224 0xd400400008400785, 225 0x1d8000000020dc04, 226 0x1d00000000209c04, 227 0x1c80000000205c04, 228 0x2000000000000007, 229 0x1c00000000201c04, 230 0x9000000000001de7, 231 0xd400400008400445, 232 0x0c5400000013dc04, 233 0xd400400008400945, 234 0xd400400008400745, 235 0x7000c01814005c03, 236 0x2000000000000007, 237 0x18fe00000000dde2, 238 0x7000c0142c009c03, 239 0x380000007c001c02, 240 0x1800000008209c04, 241 0x1800000004205c04, 242 0x30f4108420209c02, 243 0x1800000000201c04, 244 0x2000000000000007, 245 0x30f2082084105c02, 246 0x30f4108420001c02, 247 0x9000000000001de7, 248 0xd400400008400445, 249 0x0c5400000013dc04, 250 0xd400400008400945, 251 0xd400400008400745, 252 0x2000000000000007, 253 0x7000c01414005c03, 254 0x7000c01428009c03, 255 0x380000007c001c02, 256 0x18fe00000000dde2, 257 0x1800000008209c04, 258 0x1800000004205c04, 259 0x1800000000201c04, 260 0x2000000000000007, 261 0x30f4108420209c02, 262 0x30f4108420105c02, 263 0x30f4108420001c02, 264 0x9000000000001de7, 265 0xd400400008400485, 266 0x0c5400000013dc04, 267 0xd400400008400985, 268 0x2000000000000007, 269 0xd400400008400785, 270 0x1900000000a05c04, 271 0x1800000000a01c04, 272 0x30de0001d0105c02, 273 0x30de0001d0001c02, 274 0x1800000000009de2, 275 0x18fe00000000dde2, 276 0x2000000000000007, 277 0x9000000000001de7, 278 0xd400400008400485, 279 0x0c5400000013dc04, 280 0xd400400008400985, 281 0xd400400008400785, 282 0x18fe00000000dde2, 283 0x1900000000a05e04, 284 0x2000000000000007, 285 0x1800000000009de2, 286 0x1800000000a01e04, 287 0x30e000061c105c02, 288 0x30e000061c001c02, 289 0x9000000000001de7, 290 0xd400400008400485, 291 0x0c5400000013dc04, 292 0x2000000000000007, 293 0xd400400008400985, 294 0xd400400008400785, 295 0x180000000400dde2, 296 0x1d00000000a05e84, 297 0x1800000000009de2, 298 0x1c00000000a01e84, 299 0x9000000000001de7, 300 0x2000000000000007, 301 0xd400400008400485, 302 0x0c5400000013dc04, 303 0xd400400008400985, 304 0xd400400008400785, 305 0x180000000400dde2, 306 0x1d00000000a05c04, 307 0x1800000000009de2, 308 0x2000000000000007, 309 0x1c00000000a01c04, 310 0x9000000000001de7, 311 0xd400400008400485, 312 0x0c5400000013dc04, 313 0xd400400008400985, 314 0xd400400008400785, 315 0x18fe00000000dde2, 316 0x2000000000000007, 317 0x1100000000a05c04, 318 0x1800000000009de2, 319 0x1000000000a01c04, 320 0x9000000000001de7, 321 0xd400400008400485, 322 0x0c5400000013dc04, 323 0xd400400008400985, 324 0x2000000000000007, 325 0xd400400008400785, 326 0x18fe00000000dde2, 327 0x1800000000009de2, 328 0x1800000000005de2, 329 0x9000000000001de7, 330 0xd400400008400485, 331 0x0c5400000013dc04, 332 0x2000000000000007, 333 0xd400400008400985, 334 0xd400400008400785, 335 0x180000000400dde2, 336 0x1800000000009de2, 337 0x1800000000005de2, 338 0x9000000000001de7, 339 0xd400400008400445, 340 0x2000000000000007, 341 0x0c5400000013dc04, 342 0xd400400008400945, 343 0xd400400008400745, 344 0x18fe00000000dde2, 345 0x1880000000205c04, 346 0x1800000000009de2, 347 0x1800000000201c04, 348 0x2000000000000007, 349 0x30ee020204105c02, 350 0x30ee020204001c02, 351 0x9000000000001de7, 352 0xd400400008400445, 353 0x0c5400000013dc04, 354 0xd400400008400945, 355 0xd400400008400745, 356 0x2000000000000007, 357 0x18fe00000000dde2, 358 0x1880000000205e04, 359 0x1800000000009de2, 360 0x1800000000201e04, 361 0x30f0040810105c02, 362 0x30f0040810001c02, 363 0x9000000000001de7, 364 0x2000000000000007, 365 0xd400400008400445, 366 0x0c5400000013dc04, 367 0xd400400008400945, 368 0xd400400008400745, 369 0x180000000400dde2, 370 0x1c80000000205c04, 371 0x1800000000009de2, 372 0x2000000000000007, 373 0x1c00000000201c04, 374 0x9000000000001de7, 375 0xd400400008400445, 376 0x0c5400000013dc04, 377 0xd400400008400945, 378 0xd400400008400745, 379 0x180000000400dde2, 380 0x2000000000000007, 381 0x1c80000000205e84, 382 0x1800000000009de2, 383 0x1c00000000201e84, 384 0x9000000000001de7, 385 0xd400400008400445, 386 0x0c5400000013dc04, 387 0xd400400008400945, 388 0x2000000000000007, 389 0xd400400008400745, 390 0x18fe00000000dde2, 391 0x1800000000a01c04, 392 0x1800000000009de2, 393 0x1800000000005de2, 394 0x30de0001d0001c02, 395 0x9000000000001de7, 396 0x2000000000000007, 397 0xd400400008400445, 398 0x0c5400000013dc04, 399 0xd400400008400945, 400 0xd400400008400745, 401 0x18fe00000000dde2, 402 0x1800000000a01e04, 403 0x1800000000009de2, 404 0x2000000000000007, 405 0x1800000000005de2, 406 0x30e000061c001c02, 407 0x9000000000001de7, 408 0xd400400008400465, 409 0x0c5400000013dc04, 410 0xd400400008400965, 411 0xd400400008400765, 412 0x2000000000000007, 413 0x180000000400dde2, 414 0x1800000000009de2, 415 0x1800000000005de2, 416 0x9000000000001de7, 417 0xd400400008400445, 418 0x0c5400000013dc04, 419 0xd400400008400945, 420 0x2000000000000007, 421 0xd400400008400745, 422 0x180000000400dde2, 423 0x1800000000009de2, 424 0x1800000000005de2, 425 0x9000000000001de7, 426 0xd400400008400445, 427 0x0c5400000013dc04, 428 0x2000000000000007, 429 0xd400400008400945, 430 0xd400400008400745, 431 0x18fe00000000dde2, 432 0x1800000000009de2, 433 0x1000000000a01c04, 434 0x1800000000005de2, 435 0x9000000000001de7, 436 0x2000000000000007, 437 0xd400400008400405, 438 0x0c5400000013dc04, 439 0xd400400008400905, 440 0xd400400008400705, 441 0x18fe00000000dde2, 442 0x1800000000201c04, 443 0x1800000000009de2, 444 0x2000000000000007, 445 0x30ee020204001c02, 446 0x1800000000005de2, 447 0x9000000000001de7, 448 0xd400400008400405, 449 0x0c5400000013dc04, 450 0xd400400008400905, 451 0xd400400008400705, 452 0x2000000000000007, 453 0x18fe00000000dde2, 454 0x1800000000201e04, 455 0x1800000000009de2, 456 0x30f0040810001c02, 457 0x1800000000005de2, 458 0x9000000000001de7, 459 0xd400400008400425, 460 0x2000000000000007, 461 0x0c5400000013dc04, 462 0xd400400008400925, 463 0xd400400008400725, 464 0x180000000400dde2, 465 0x1800000000009de2, 466 0x1800000000005de2, 467 0x9000000000001de7, 468 0x2000000000000007, 469 0xd400400008400405, 470 0x0c5400000013dc04, 471 0xd400400008400905, 472 0xd400400008400705, 473 0x180000000400dde2, 474 0x1800000000009de2, 475 0x1800000000005de2, 476 0x2000000000000007, 477 0x9000000000001de7, 478 0xd40040000840c485, 479 0x0c5400000013dc04, 480 0xd40040000840c985, 481 0xd40040000840c785, 482 0x18fe00000000dde2, 483 0x4000000000001de4, 484 0x2000000000000007, 485 0x4000000000001de4, 486 0x9000000000001de7, 487 /* 0x0f18: gk104_rcp_f64 */ 488 0x7000c02c50109c03, 489 0x0bfffffffc20dc02, 490 0x6000000280000007, 491 0x1a0ec01ff431dc03, 492 0x180000000000dde2, 493 0x228282f2b2d042f7, 494 0x40000000000021f4, 495 0x1bfffffffc00dde2, 496 0x1e0edffc0001dc81, 497 0x40000000200021e7, 498 0x3800200000105c52, 499 /* 0x0f70: rcp_inf_or_denorm_or_zero */ 500 0x39ffc00000111c02, 501 0x190e0000fc41dc23, 502 0x2202f2b2d2f042b7, 503 0x40000000400001e7, 504 0x39ffc00000105c82, 505 0x1800000000001df2, 506 /* 0x0fa0: rcp_denorm_or_zero */ 507 0x1e0ec0000001dc81, 508 0x40000000200001e7, 509 0x39ffc00000105c52, 510 /* 0x0fb8: rcp_denorm */ 511 0x5000d0d400001c01, 512 0x2280428282b282f7, 513 0x18000000d800ddf2, 514 /* 0x0fd0: rcp_rejoin */ 515 0x188e0000fc31dc23, 516 0x40000006000001e7, 517 0x7000c02c50109c03, 518 0x3a003ffffc11dc02, 519 0x08ffc0000071dc02, 520 0x2800000000019de4, 521 0x22e2b2a2828042b7, 522 0x1006000019a15c04, 523 0xc800000010511c00, 524 0x1afe000000001de2, 525 0x3000000014415c00, 526 0x3008000014401e00, 527 0x1000000001301c04, 528 0x1000000019b19d04, 529 0x22929292929292e7, 530 0x1000cfe001321c04, 531 0x2010000000611c01, 532 0x2000000010001c01, 533 0x2010000000611c01, 534 0x2000000010001c01, 535 0x2010000000611c01, 536 0x2000000010001c01, 537 0x2282828282820297, 538 0x2010000000611c01, 539 0x2000000010001c01, 540 0x0800000ffc209e02, 541 0x480000000c211c03, 542 0x7000c02c5010dc03, 543 0x480000001030dc03, 544 0x0bfffffffc309c02, 545 0x22b28282b282b287, 546 0x188ec01ff821dc03, 547 0x40000000600021e7, 548 0x6000c00050411c03, 549 0x4800000004405c03, 550 0x40000001c0001de7, 551 /* 0x10f0: rcp_result_inf_or_denorm */ 552 0x1b0ec01ffc31dc23, 553 0x40000000a00021e7, 554 0x22f25232b2825207, 555 0x3a00000000105c02, 556 0x1800000000001de2, 557 0x09ffc00000105c02, 558 0x40000000e0001de7, 559 /* 0x1128: rcp_result_denorm */ 560 0x1a8e0000fc31dc03, 561 0x3a003ffffc105c02, 562 0x1000cfa001318004, 563 0x227202a2e2c282f7, 564 0x1000cfc00131a004, 565 0x0800400000105c02, 566 0x5000000018001c01, 567 /* 0x1160: rcp_end */ 568 0x9000000000001de7, 569 /* 0x1168: gk104_rsq_f64 */ 570 0x1e0edffc0001dc81, 571 0x3800200000104042, 572 0x39fffffffc109c02, 573 0x22828252c2820277, 574 0x7000c02c5010dc03, 575 0x198ec0000833dc03, 576 0x6800000008009c43, 577 0x5000d0d400000401, 578 0xc80000001c115c00, 579 0x128ec01ffc319c03, 580 0x6800000018209c03, 581 0x2282e2827202b287, 582 0x1a8e0000fc21dc03, 583 0x40000000800001e7, 584 0x3a00000000105c02, 585 0x1800000000001de2, 586 0x6800000014105c43, 587 0x9000000000001de7, 588 /* 0x11f8: rsq_norm */ 589 0x1800000000011de2, 590 0x22929292929292f7, 591 0x1000cfc001321c04, 592 0x5000000020009c01, 593 0x5000000010201c01, 594 0x2010000000419e01, 595 0x2008000018411c01, 596 0x5000000010201c01, 597 0x2010000000419e01, 598 0x2292929292929297, 599 0x2008000018411c01, 600 0x5000000010201c01, 601 0x2010000000419e01, 602 0x2008000018411c01, 603 0x5000000010201c01, 604 0x2010000000419e01, 605 0x2008000018411c01, 606 0x20000002e2820297, 607 0x5000d06800410401, 608 0x2800000014005de4, 609 0x2800000010001de4, 610 0x9000000000001de7, 611 0xc800000003f01cc5, 612 0x2c00000100005c04, 613 0x2c0000010800dc04, 614 0x3000c3fffff09c04, 615 0x680100000c1fdc03, 616 0x4000000a60001c47, 617 0x180000004000dde2, 618 /* 0x12e0: spill_cfstack */ 619 0x78000009c0000007, 620 0x0c0000000430dd02, 621 0x4003ffffa0001ca7, 622 0x2800406400001de4, 623 0x2800406410005de4, 624 0x180000000400dde2, 625 0x547e18000000dd05, 626 0x60000008e0000007, 627 0x190ec0000431dc03, 628 0x40000000000001f4, 629 0x94000004c0009c85, 630 0x2c00000100009c04, 631 0x2c0000010800dc04, 632 0x9400000020009ca5, 633 0x9400000100011cc5, 634 0x9400000140021cc5, 635 0x9400000180031cc5, 636 0x94000001c0041cc5, 637 0x9400000200051cc5, 638 0x9400000240061cc5, 639 0x9400000280071cc5, 640 0x94000002c0081cc5, 641 0x9400000300091cc5, 642 0x94000003400a1cc5, 643 0x94000003800b1cc5, 644 0x94000003c00c1cc5, 645 0x94000004000d1cc5, 646 0x94000004400e1cc5, 647 0x94000004800f1cc5, 648 0xc000000003f09ea5, 649 0x94000000c0009ca5, 650 0xc000000023f09ea5, 651 0x94000000e0009ca5, 652 0x2c00000084009c04, 653 0x2c0000008800dc04, 654 0x9400000040009ca5, 655 0x2c0000008c009c04, 656 0x2c0000009400dc04, 657 0x9400000060009ca5, 658 0x2c00000098009c04, 659 0x2c0000009c00dc04, 660 0x9400000080009ca5, 661 0x2c000000c800dc04, 662 0x0c0000001030dd02, 663 0x4000000100001ea7, 664 0x480100000c001c03, 665 0x0800000000105c42, 666 /* 0x1458: shared_loop */ 667 0xc100000000309c85, 668 0x9400000500009c85, 669 0x0c00000010001d02, 670 0x0800000000105d42, 671 0x0c0000001030dd02, 672 0x4003ffff40001ca7, 673 /* 0x1488: shared_done */ 674 0x2800406420001de4, 675 0x2800406430005de4, 676 0xe000000000001c45, 677 0xd000000003ffdcc5, 678 0x9c000000000fdcc5, 679 0x2c0000000c009c04, 680 0x7000c0205020dc03, 681 0x7000c01820209c03, 682 0x5000406450209c03, 683 0x500040644030dc03, 684 0x480000000c209c03, 685 0x4801000008001c03, 686 0x0800000000105c42, 687 /* 0x14f0: search_cstack */ 688 0x280040646000dde4, 689 0x8400000020009f05, 690 0x190ec0002821dc03, 691 0x40000000800001e7, 692 0x0c00000040001c02, 693 0x0800000000105c42, 694 0x0c0000004030dd02, 695 0x00029dff0ffc5cbf, 696 /* 0x1530: entry_found */ 697 0x8400000000009f85, 698 0x2800406400001de4, 699 0x2800406410005de4, 700 0x9400000010009c85, 701 0x4000000000001df4, 702 /* 0x1558: end_exit */ 703 0x9800000003ffdcc5, 704 0xd000000000008007, 705 0xa000000000004007, 706 /* 0x1570: end_cont */ 707 0xd000000000008007, 708 0x3400c3fffc201c04, 709 0xc000000003f01ec5, 710 0xa000000000000007, 711 }; 712 713 uint64_t gk104_builtin_offsets[] = { 714 0x0000000000000000, 715 0x00000000000000f0, 716 0x0000000000000f18, 717 0x0000000000001168, 718 }; 719