Merge branch 'bugfix2' of https://github.com/amdrexu/glslang into amdrexu-bugfix2
authorJohn Kessenich <cepheus@frii.com>
Fri, 9 Sep 2016 16:46:10 +0000 (10:46 -0600)
committerJohn Kessenich <cepheus@frii.com>
Fri, 9 Sep 2016 16:46:10 +0000 (10:46 -0600)
1  2 
Test/baseResults/spv.int64.frag.out
glslang/Include/revision.h

@@@ -5,9 -5,10 +5,9 @@@ Warning, version 450 is not yet complet
  Linked fragment stage:
  
  
 -Missing functionality: shader int64
  // Module Version 10000
  // Generated by (magic number): 80001
- // Id's are bound by 478
+ // Id's are bound by 480
  
                                Capability Shader
                                Capability Float64
                                FunctionEnd
  12(builtinFuncs():           2 Function None 3
                13:             Label
-        276(i64v):     51(ptr) Variable Function
-         279(i64):     15(ptr) Variable Function
-        289(u64v):    131(ptr) Variable Function
-         291(u64):     37(ptr) Variable Function
-          363(dv):    362(ptr) Variable Function
-          382(iv):     73(ptr) Variable Function
-          387(uv):     80(ptr) Variable Function
-          391(bv):    390(ptr) Variable Function
-              277:   50(ivec2) Load 276(i64v)
-              278:   50(ivec2) ExtInst 1(GLSL.std.450) 5(SAbs) 277
-                               Store 276(i64v) 278
-              280:     14(int) Load 279(i64)
-              281:     14(int) ExtInst 1(GLSL.std.450) 7(SSign) 280
-                               Store 279(i64) 281
-              282:   50(ivec2) Load 276(i64v)
-              283:     14(int) Load 279(i64)
-              284:   50(ivec2) CompositeConstruct 283 283
-              285:   50(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 282 284
-                               Store 276(i64v) 285
-              286:   50(ivec2) Load 276(i64v)
-              288:   50(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 286 287
-                               Store 276(i64v) 288
-              290:  130(ivec3) Load 289(u64v)
-              292:     36(int) Load 291(u64)
-              293:  130(ivec3) CompositeConstruct 292 292 292
-              294:  130(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 290 293
-                               Store 289(u64v) 294
-              295:  130(ivec3) Load 289(u64v)
-              297:  130(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 295 296
-                               Store 289(u64v) 297
-              298:   50(ivec2) Load 276(i64v)
-              299:     14(int) Load 279(i64)
-              300:   50(ivec2) CompositeConstruct 299 299
-              301:   50(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 298 300
-                               Store 276(i64v) 301
-              302:   50(ivec2) Load 276(i64v)
-              303:   50(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 302 287
-                               Store 276(i64v) 303
-              304:  130(ivec3) Load 289(u64v)
-              305:     36(int) Load 291(u64)
-              306:  130(ivec3) CompositeConstruct 305 305 305
-              307:  130(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 304 306
-                               Store 289(u64v) 307
-              308:  130(ivec3) Load 289(u64v)
-              309:  130(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 308 296
-                               Store 289(u64v) 309
-              310:   50(ivec2) Load 276(i64v)
-              311:     14(int) Load 279(i64)
-              312:     14(int) SNegate 311
-              313:     14(int) Load 279(i64)
-              314:   50(ivec2) CompositeConstruct 312 312
-              315:   50(ivec2) CompositeConstruct 313 313
-              316:   50(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 310 314 315
-                               Store 276(i64v) 316
-              317:   50(ivec2) Load 276(i64v)
-              318:   50(ivec2) Load 276(i64v)
-              319:   50(ivec2) SNegate 318
-              320:   50(ivec2) Load 276(i64v)
-              321:   50(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 317 319 320
-                               Store 276(i64v) 321
-              322:  130(ivec3) Load 289(u64v)
-              323:     36(int) Load 291(u64)
-              324:     36(int) SNegate 323
-              325:     36(int) Load 291(u64)
-              326:  130(ivec3) CompositeConstruct 324 324 324
-              327:  130(ivec3) CompositeConstruct 325 325 325
-              328:  130(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 322 326 327
-                               Store 289(u64v) 328
-              329:  130(ivec3) Load 289(u64v)
-              330:  130(ivec3) Load 289(u64v)
-              331:  130(ivec3) SNegate 330
-              332:  130(ivec3) Load 289(u64v)
-              333:  130(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 329 331 332
-                               Store 289(u64v) 333
-              334:     15(ptr) AccessChain 276(i64v) 217
-              335:     14(int) Load 334
-              336:     15(ptr) AccessChain 276(i64v) 200
-              337:     14(int) Load 336
-              339:     14(int) Select 338 337 335
-                               Store 279(i64) 339
-              340:     14(int) Load 279(i64)
-              341:   50(ivec2) CompositeConstruct 340 340
-              342:     14(int) Load 279(i64)
-              343:     14(int) SNegate 342
-              344:   50(ivec2) CompositeConstruct 343 343
-              347:   50(ivec2) Select 346 344 341
-                               Store 276(i64v) 347
-              348:     37(ptr) AccessChain 289(u64v) 217
-              349:     36(int) Load 348
-              350:     37(ptr) AccessChain 289(u64v) 200
-              351:     36(int) Load 350
-              352:     36(int) Select 338 351 349
-                               Store 291(u64) 352
-              353:     36(int) Load 291(u64)
-              354:  130(ivec3) CompositeConstruct 353 353 353
-              355:     36(int) Load 291(u64)
-              356:     36(int) SNegate 355
-              357:  130(ivec3) CompositeConstruct 356 356 356
-              360:  130(ivec3) Select 359 357 354
-                               Store 289(u64v) 360
-              364:  361(fvec3) Load 363(dv)
-              365:   93(fvec2) VectorShuffle 364 364 0 1
-              366:   50(ivec2) Bitcast 365
-                               Store 276(i64v) 366
-              368:    367(ptr) AccessChain 363(dv) 207
-              369:   92(float) Load 368
-              370:     36(int) Bitcast 369
-              371:     37(ptr) AccessChain 289(u64v) 217
-                               Store 371 370
-              372:   50(ivec2) Load 276(i64v)
-              373:   93(fvec2) Bitcast 372
-              374:  361(fvec3) Load 363(dv)
-              375:  361(fvec3) VectorShuffle 374 373 3 4 2
-                               Store 363(dv) 375
-              376:  130(ivec3) Load 289(u64v)
-              377:  361(fvec3) Bitcast 376
-                               Store 363(dv) 377
-              381:     14(int) Bitcast 380
-                               Store 279(i64) 381
-              383:     14(int) Load 279(i64)
-              384:   72(ivec2) Bitcast 383
-                               Store 382(iv) 384
-              386:     36(int) Bitcast 385
-                               Store 291(u64) 386
-              388:     36(int) Load 291(u64)
-              389:   79(ivec2) Bitcast 388
-                               Store 387(uv) 389
-              392:  130(ivec3) Load 289(u64v)
-              393:     36(int) Load 291(u64)
-              394:  130(ivec3) CompositeConstruct 393 393 393
-              395:  358(bvec3) ULessThan 392 394
-                               Store 391(bv) 395
-              396:   50(ivec2) Load 276(i64v)
-              397:     14(int) Load 279(i64)
-              398:   50(ivec2) CompositeConstruct 397 397
-              399:   54(bvec2) SLessThan 396 398
-              400:  358(bvec3) Load 391(bv)
-              401:  358(bvec3) VectorShuffle 400 399 3 4 2
-                               Store 391(bv) 401
-              402:  130(ivec3) Load 289(u64v)
-              403:     36(int) Load 291(u64)
-              404:  130(ivec3) CompositeConstruct 403 403 403
-              405:  358(bvec3) ULessThanEqual 402 404
-                               Store 391(bv) 405
-              406:   50(ivec2) Load 276(i64v)
-              407:     14(int) Load 279(i64)
-              408:   50(ivec2) CompositeConstruct 407 407
-              409:   54(bvec2) SLessThanEqual 406 408
-              410:  358(bvec3) Load 391(bv)
-              411:  358(bvec3) VectorShuffle 410 409 3 4 2
-                               Store 391(bv) 411
-              412:  130(ivec3) Load 289(u64v)
-              413:     36(int) Load 291(u64)
-              414:  130(ivec3) CompositeConstruct 413 413 413
-              415:  358(bvec3) UGreaterThan 412 414
-                               Store 391(bv) 415
-              416:   50(ivec2) Load 276(i64v)
-              417:     14(int) Load 279(i64)
-              418:   50(ivec2) CompositeConstruct 417 417
-              419:   54(bvec2) SGreaterThan 416 418
-              420:  358(bvec3) Load 391(bv)
-              421:  358(bvec3) VectorShuffle 420 419 3 4 2
-                               Store 391(bv) 421
-              422:  130(ivec3) Load 289(u64v)
-              423:     36(int) Load 291(u64)
-              424:  130(ivec3) CompositeConstruct 423 423 423
-              425:  358(bvec3) UGreaterThanEqual 422 424
-                               Store 391(bv) 425
-              426:   50(ivec2) Load 276(i64v)
-              427:     14(int) Load 279(i64)
-              428:   50(ivec2) CompositeConstruct 427 427
-              429:   54(bvec2) SGreaterThanEqual 426 428
-              430:  358(bvec3) Load 391(bv)
-              431:  358(bvec3) VectorShuffle 430 429 3 4 2
-                               Store 391(bv) 431
-              432:  130(ivec3) Load 289(u64v)
-              433:     36(int) Load 291(u64)
-              434:  130(ivec3) CompositeConstruct 433 433 433
-              435:  358(bvec3) IEqual 432 434
-                               Store 391(bv) 435
-              436:   50(ivec2) Load 276(i64v)
-              437:     14(int) Load 279(i64)
-              438:   50(ivec2) CompositeConstruct 437 437
-              439:   54(bvec2) IEqual 436 438
-              440:  358(bvec3) Load 391(bv)
-              441:  358(bvec3) VectorShuffle 440 439 3 4 2
-                               Store 391(bv) 441
-              442:  130(ivec3) Load 289(u64v)
-              443:     36(int) Load 291(u64)
-              444:  130(ivec3) CompositeConstruct 443 443 443
-              445:  358(bvec3) INotEqual 442 444
-                               Store 391(bv) 445
-              446:   50(ivec2) Load 276(i64v)
-              447:     14(int) Load 279(i64)
-              448:   50(ivec2) CompositeConstruct 447 447
-              449:   54(bvec2) INotEqual 446 448
-              450:  358(bvec3) Load 391(bv)
-              451:  358(bvec3) VectorShuffle 450 449 3 4 2
-                               Store 391(bv) 451
+        278(i64v):     53(ptr) Variable Function
+         281(i64):     19(ptr) Variable Function
+        291(u64v):    133(ptr) Variable Function
+         293(u64):     40(ptr) Variable Function
+          365(dv):    364(ptr) Variable Function
+          384(iv):     75(ptr) Variable Function
+          389(uv):     82(ptr) Variable Function
+          393(bv):    392(ptr) Variable Function
+              279:   52(ivec2) Load 278(i64v)
+              280:   52(ivec2) ExtInst 1(GLSL.std.450) 5(SAbs) 279
+                               Store 278(i64v) 280
+              282:     18(int) Load 281(i64)
+              283:     18(int) ExtInst 1(GLSL.std.450) 7(SSign) 282
+                               Store 281(i64) 283
+              284:   52(ivec2) Load 278(i64v)
+              285:     18(int) Load 281(i64)
+              286:   52(ivec2) CompositeConstruct 285 285
+              287:   52(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 284 286
+                               Store 278(i64v) 287
+              288:   52(ivec2) Load 278(i64v)
+              290:   52(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 288 289
+                               Store 278(i64v) 290
+              292:  132(ivec3) Load 291(u64v)
+              294:     14(int) Load 293(u64)
+              295:  132(ivec3) CompositeConstruct 294 294 294
+              296:  132(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 292 295
+                               Store 291(u64v) 296
+              297:  132(ivec3) Load 291(u64v)
+              299:  132(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 297 298
+                               Store 291(u64v) 299
+              300:   52(ivec2) Load 278(i64v)
+              301:     18(int) Load 281(i64)
+              302:   52(ivec2) CompositeConstruct 301 301
+              303:   52(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 300 302
+                               Store 278(i64v) 303
+              304:   52(ivec2) Load 278(i64v)
+              305:   52(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 304 289
+                               Store 278(i64v) 305
+              306:  132(ivec3) Load 291(u64v)
+              307:     14(int) Load 293(u64)
+              308:  132(ivec3) CompositeConstruct 307 307 307
+              309:  132(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 306 308
+                               Store 291(u64v) 309
+              310:  132(ivec3) Load 291(u64v)
+              311:  132(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 310 298
+                               Store 291(u64v) 311
+              312:   52(ivec2) Load 278(i64v)
+              313:     18(int) Load 281(i64)
+              314:     18(int) SNegate 313
+              315:     18(int) Load 281(i64)
+              316:   52(ivec2) CompositeConstruct 314 314
+              317:   52(ivec2) CompositeConstruct 315 315
+              318:   52(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 312 316 317
+                               Store 278(i64v) 318
+              319:   52(ivec2) Load 278(i64v)
+              320:   52(ivec2) Load 278(i64v)
+              321:   52(ivec2) SNegate 320
+              322:   52(ivec2) Load 278(i64v)
+              323:   52(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 319 321 322
+                               Store 278(i64v) 323
+              324:  132(ivec3) Load 291(u64v)
+              325:     14(int) Load 293(u64)
+              326:     14(int) SNegate 325
+              327:     14(int) Load 293(u64)
+              328:  132(ivec3) CompositeConstruct 326 326 326
+              329:  132(ivec3) CompositeConstruct 327 327 327
+              330:  132(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 324 328 329
+                               Store 291(u64v) 330
+              331:  132(ivec3) Load 291(u64v)
+              332:  132(ivec3) Load 291(u64v)
+              333:  132(ivec3) SNegate 332
+              334:  132(ivec3) Load 291(u64v)
+              335:  132(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 331 333 334
+                               Store 291(u64v) 335
+              336:     19(ptr) AccessChain 278(i64v) 219
+              337:     18(int) Load 336
+              338:     19(ptr) AccessChain 278(i64v) 202
+              339:     18(int) Load 338
+              341:     18(int) Select 340 339 337
+                               Store 281(i64) 341
+              342:     18(int) Load 281(i64)
+              343:   52(ivec2) CompositeConstruct 342 342
+              344:     18(int) Load 281(i64)
+              345:     18(int) SNegate 344
+              346:   52(ivec2) CompositeConstruct 345 345
+              349:   52(ivec2) Select 348 346 343
+                               Store 278(i64v) 349
+              350:     40(ptr) AccessChain 291(u64v) 219
+              351:     14(int) Load 350
+              352:     40(ptr) AccessChain 291(u64v) 202
+              353:     14(int) Load 352
+              354:     14(int) Select 340 353 351
+                               Store 293(u64) 354
+              355:     14(int) Load 293(u64)
+              356:  132(ivec3) CompositeConstruct 355 355 355
+              357:     14(int) Load 293(u64)
+              358:     14(int) SNegate 357
+              359:  132(ivec3) CompositeConstruct 358 358 358
+              362:  132(ivec3) Select 361 359 356
+                               Store 291(u64v) 362
+              366:  363(fvec3) Load 365(dv)
+              367:   95(fvec2) VectorShuffle 366 366 0 1
+              368:   52(ivec2) Bitcast 367
+                               Store 278(i64v) 368
+              370:    369(ptr) AccessChain 365(dv) 209
+              371:   94(float) Load 370
+              372:     14(int) Bitcast 371
+              373:     40(ptr) AccessChain 291(u64v) 219
+                               Store 373 372
+              374:   52(ivec2) Load 278(i64v)
+              375:   95(fvec2) Bitcast 374
+              376:  363(fvec3) Load 365(dv)
+              377:  363(fvec3) VectorShuffle 376 375 3 4 2
+                               Store 365(dv) 377
+              378:  132(ivec3) Load 291(u64v)
+              379:  363(fvec3) Bitcast 378
+                               Store 365(dv) 379
 -             383:     18(int) ExtInst 1(GLSL.std.450) 0(Unknown) 382
++             383:     18(int) Bitcast 382
+                               Store 281(i64) 383
+              385:     18(int) Load 281(i64)
 -             386:   74(ivec2) ExtInst 1(GLSL.std.450) 0(Unknown) 385
++             386:   74(ivec2) Bitcast 385
+                               Store 384(iv) 386
 -             388:     14(int) ExtInst 1(GLSL.std.450) 0(Unknown) 387
++             388:     14(int) Bitcast 387
+                               Store 293(u64) 388
+              390:     14(int) Load 293(u64)
 -             391:   81(ivec2) ExtInst 1(GLSL.std.450) 0(Unknown) 390
++             391:   81(ivec2) Bitcast 390
+                               Store 389(uv) 391
+              394:  132(ivec3) Load 291(u64v)
+              395:     14(int) Load 293(u64)
+              396:  132(ivec3) CompositeConstruct 395 395 395
+              397:  360(bvec3) ULessThan 394 396
+                               Store 393(bv) 397
+              398:   52(ivec2) Load 278(i64v)
+              399:     18(int) Load 281(i64)
+              400:   52(ivec2) CompositeConstruct 399 399
+              401:   56(bvec2) SLessThan 398 400
+              402:  360(bvec3) Load 393(bv)
+              403:  360(bvec3) VectorShuffle 402 401 3 4 2
+                               Store 393(bv) 403
+              404:  132(ivec3) Load 291(u64v)
+              405:     14(int) Load 293(u64)
+              406:  132(ivec3) CompositeConstruct 405 405 405
+              407:  360(bvec3) ULessThanEqual 404 406
+                               Store 393(bv) 407
+              408:   52(ivec2) Load 278(i64v)
+              409:     18(int) Load 281(i64)
+              410:   52(ivec2) CompositeConstruct 409 409
+              411:   56(bvec2) SLessThanEqual 408 410
+              412:  360(bvec3) Load 393(bv)
+              413:  360(bvec3) VectorShuffle 412 411 3 4 2
+                               Store 393(bv) 413
+              414:  132(ivec3) Load 291(u64v)
+              415:     14(int) Load 293(u64)
+              416:  132(ivec3) CompositeConstruct 415 415 415
+              417:  360(bvec3) UGreaterThan 414 416
+                               Store 393(bv) 417
+              418:   52(ivec2) Load 278(i64v)
+              419:     18(int) Load 281(i64)
+              420:   52(ivec2) CompositeConstruct 419 419
+              421:   56(bvec2) SGreaterThan 418 420
+              422:  360(bvec3) Load 393(bv)
+              423:  360(bvec3) VectorShuffle 422 421 3 4 2
+                               Store 393(bv) 423
+              424:  132(ivec3) Load 291(u64v)
+              425:     14(int) Load 293(u64)
+              426:  132(ivec3) CompositeConstruct 425 425 425
+              427:  360(bvec3) UGreaterThanEqual 424 426
+                               Store 393(bv) 427
+              428:   52(ivec2) Load 278(i64v)
+              429:     18(int) Load 281(i64)
+              430:   52(ivec2) CompositeConstruct 429 429
+              431:   56(bvec2) SGreaterThanEqual 428 430
+              432:  360(bvec3) Load 393(bv)
+              433:  360(bvec3) VectorShuffle 432 431 3 4 2
+                               Store 393(bv) 433
+              434:  132(ivec3) Load 291(u64v)
+              435:     14(int) Load 293(u64)
+              436:  132(ivec3) CompositeConstruct 435 435 435
+              437:  360(bvec3) IEqual 434 436
+                               Store 393(bv) 437
+              438:   52(ivec2) Load 278(i64v)
+              439:     18(int) Load 281(i64)
+              440:   52(ivec2) CompositeConstruct 439 439
+              441:   56(bvec2) IEqual 438 440
+              442:  360(bvec3) Load 393(bv)
+              443:  360(bvec3) VectorShuffle 442 441 3 4 2
+                               Store 393(bv) 443
+              444:  132(ivec3) Load 291(u64v)
+              445:     14(int) Load 293(u64)
+              446:  132(ivec3) CompositeConstruct 445 445 445
+              447:  360(bvec3) INotEqual 444 446
+                               Store 393(bv) 447
+              448:   52(ivec2) Load 278(i64v)
+              449:     18(int) Load 281(i64)
+              450:   52(ivec2) CompositeConstruct 449 449
+              451:   56(bvec2) INotEqual 448 450
+              452:  360(bvec3) Load 393(bv)
+              453:  360(bvec3) VectorShuffle 452 451 3 4 2
+                               Store 393(bv) 453
                                Return
                                FunctionEnd
@@@ -2,5 -2,5 +2,5 @@@
  // For the version, it uses the latest git tag followed by the number of commits.
  // For the date, it uses the current date (when then script is run).
  
--#define GLSLANG_REVISION "Overload400-PrecQual.1472"
--#define GLSLANG_DATE "05-Sep-2016"
++#define GLSLANG_REVISION "Overload400-PrecQual.1474"
++#define GLSLANG_DATE "09-Sep-2016"