0b84159e3b
Previously, we didn't have tests which leveraged constant-evaluation of array indexing (because we didn't support it), and our test files commingled constant-indexing into vectors with constant-indexing into arrays. The test files now separate vector- and array-handling into separate tests, and a ton of new cases have been added to ArrayFolding. The ArrayFolding tests now require constant-evaluation of array indexing, so they fail in this CL, but will be fixed in the followup CL. Change-Id: I3b663e743d97d6db80627bc9b7808f88c99917a7 Bug: skia:12472 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/469528 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
8 lines
505 B
Plaintext
8 lines
505 B
Plaintext
void array_neg1 () { int a[123]; int v = a[-1]; }
|
|
void array_0 () { float a[123]; float v = a[0]; }
|
|
void array_122 () { bool2 a[123]; bool2 v = a[122]; }
|
|
void array_123 () { half4x4 a[123]; half4x4 v = a[123]; }
|
|
void array_huge () { int4 a[123]; int4 v = a[1000000000]; }
|
|
void array_overflow () { half3 a[123]; half3 v = a[3000000000]; }
|
|
void array_no_index () { int a[123]; int v = a[]; }
|