/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/lit-tests/print_errors_xe.ispc
62 строки
2 KB
Arina Neshlyaeva
Remove gen9 targets
22 ноя 2025, 03:42
22 ноя 2025, 03:42
057d51a
Код
Авторство
О чём код?
// This test checks that compiler does not crash and produces correct error output // for different print arguments for Xe. // RUN: not %{ispc} %s -o %t.spv -DPRINT_1 --emit-spirv --nowrap --target=xehpg-x8 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_1 // RUN: %{ispc} %s -o %t.spv -DPRINT_2 --emit-spirv --nowrap --target=xehpg-x8 // RUN: not %{ispc} %s -o %t.spv -DPRINT_3 --emit-spirv --nowrap --target=xehpg-x8 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_3 // RUN: not %{ispc} %s -o %t.spv -DPRINT_4 --emit-spirv --nowrap --target=xehpg-x8 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_4 // RUN: not %{ispc} %s -o %t.spv -DPRINT_5 --emit-spirv --nowrap --target=xehpg-x8 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_5 // RUN: not %{ispc} %s -o %t.spv -DPRINT_6 --emit-spirv --nowrap --target=xehpg-x8 2>&1 | FileCheck %s -check-prefix=CHECK_ERROR_6 // REQUIRES: XE_ENABLED // CHECK_ERROR_1: Error: syntax error, unexpected ')', expecting TOKEN_STRING_LITERAL // CHECK_ERROR_1-NOT: FATAL ERROR // CHECK_ERROR_3: Error: Not enough arguments are provided in print call // CHECK_ERROR_3-NOT: FATAL ERROR // CHECK_ERROR_4: Error: Too much arguments are provided in print call // CHECK_ERROR_4-NOT: FATAL ERROR // CHECK_ERROR_5: Error: Not enough arguments are provided in print call // CHECK_ERROR_5-NOT: FATAL ERROR // CHECK_ERROR_6: Error: Too much arguments are provided in print call // CHECK_ERROR_6-NOT: FATAL ERROR #ifdef PRINT_1 task void test() { print(); } #endif #ifdef PRINT_2 task void test() { print(""); } #endif #ifdef PRINT_3 task void test() { print("%"); } #endif #ifdef PRINT_4 task void test() { print("", 5); } #endif #ifdef PRINT_5 task void test() { print("% %", 5); } #endif #ifdef PRINT_6 task void test() { print("%", 5, 5); } #endif