test/unittest: Fix expected cases

Bug: tint:1043
Change-Id: Ib1f73a02488665d5d7f4e088033207e9647f88c2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60350
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton 2021-07-30 17:18:36 +00:00 committed by Tint LUCI CQ
parent 5209a8170d
commit 2c1fbe801b
61 changed files with 576 additions and 0 deletions

View File

@ -1,3 +1,5 @@
SKIP: FAILED
void main_1() {
const bool2 x_1 = isnan(float2(50.0f, 60.0f));
return;
@ -7,3 +9,6 @@ void main() {
main_1();
return;
}
Internal Compiler error: cast<X>() argument of incompatible type!

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
static uint x_2 = 0u;
static uint x_3 = 0u;
@ -30,3 +32,11 @@ tint_symbol_2 main(tint_symbol_1 tint_symbol) {
const tint_symbol_2 tint_symbol_4 = {tint_symbol_3.x_2_1, tint_symbol_3.x_4_1};
return tint_symbol_4;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
error: SV_Target semantic index exceeds maximum (7).
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
@ -33,3 +35,13 @@ fragment tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) {
return tint_symbol_5;
}
Compilation failed:
program_source:14:22: error: 'color' attribute parameter is out of bounds: must be between 0 and 7
uint x_4_1 [[color(40)]];
^
program_source:21:10: error: invalid return type 'tint_symbol_3' for fragment function
fragment tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) {
^

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -15,3 +17,4 @@ void main() {
main_1();
return;
}

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -12,3 +14,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_Pui8tf:11: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -15,3 +17,4 @@ void main() {
main_1();
return;
}

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_5BECUW:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -10,3 +12,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_ow9VQQ:9: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -10,3 +12,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_py60tZ:9: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -18,3 +20,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_7IQZev:17: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_43uiR4:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -16,3 +18,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_ZN83ug:15: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -25,3 +27,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_8eZRxk:24: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -19,3 +21,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_qTM1ZY:18: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -17,3 +19,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_TECAbG:16: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -16,3 +18,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_U669Fi:15: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -37,3 +39,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_cTIG3E:36: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -38,3 +40,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_KckIVH:37: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -24,3 +26,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_Zkgxp1:23: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -25,3 +27,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_OTzREg:24: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -27,3 +29,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_pSVapr:26: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -28,3 +30,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_3cKDSw:27: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -28,3 +30,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_ZSOcKK:27: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -21,3 +23,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_QwTln4:20: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -31,3 +33,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_jbcKmW:30: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -34,3 +36,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_7vcoV0:33: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -33,3 +35,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_GolFDb:32: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_rsqlpD:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -11,3 +13,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_M8paEY:10: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -21,3 +23,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_Bo3oTm:20: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -31,3 +33,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_ZKuQdB:30: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -14,3 +16,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_7xiEOQ:13: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -14,3 +16,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_dFrzYz:13: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_FvyNcC:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -11,3 +13,4 @@ void main() {
main_1();
return;
}

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -25,3 +27,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_zB6KUk:24: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -17,3 +19,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_LKWCSU:16: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -18,3 +20,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_ilDeI2:17: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -17,3 +19,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_ol4Bod:16: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -21,3 +23,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_MlbMXj:20: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_4MTE0x:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -16,3 +18,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_zYChsb:15: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_chIw8M:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -21,3 +23,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_lyH14u:20: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -18,3 +20,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_WSJX53:17: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -17,3 +19,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_vD8PSg:16: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_EyIpkA:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -14,3 +16,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_HrNFse:13: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_dK0Vw9:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_fz0Wqg:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -13,3 +15,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_B7oTsM:12: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint var_1 = 0u;
void main_1() {
@ -10,3 +12,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_8uV2qf:9: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
void main_1() {
@ -30,3 +32,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_9DZjPt:29: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
void main_1() {
uint x_25 = 0u;
const uint x_2 = (1u + 1u);
@ -15,3 +17,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_yj82Xu:14: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
static bool x_7 = false;
static bool x_8 = false;
@ -35,3 +37,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_GXPsdi:34: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
static bool x_7 = false;
static bool x_8 = false;
@ -35,3 +37,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_N12ZXm:34: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
static bool x_7 = false;
static bool x_8 = false;
@ -34,3 +36,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_eXjRIC:33: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
static bool x_7 = false;
static bool x_8 = false;
@ -29,3 +31,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_26i6xo:28: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
static uint x_1 = 0u;
static bool x_17 = false;
@ -30,3 +32,11 @@ void main() {
main_1();
return;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors
tint_AU073z:29: error: Loop must have break.
Validation failed.

View File

@ -1,3 +1,5 @@
SKIP: FAILED
void main_1() {
const uint2 x_1 = uint2(3u, 4u);
const uint x_10 = x_1[3u];
@ -9,3 +11,8 @@ void main() {
main_1();
return;
}
tint_kzPJNg:3:25: error: vector element index '3' is out of bounds
const uint x_10 = x_1[3u];
^

View File

@ -1,3 +1,5 @@
SKIP: FAILED
void main_1() {
while (true) {
float x_600 = 0.0f;
@ -19,3 +21,4 @@ void main() {
main_1();
return;
}