/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/lit-tests/xe_assert.ispc
14 строк
1010 B
Arina Neshlyaeva
Remove gen9 targets
22 ноя 2025, 03:42
22 ноя 2025, 03:42
057d51a
Код
Авторство
О чём код?
// This test checks correct LLVM IR generation when assert is used on Xe target. // TODO: add test case with assert inside exported function when support is added to VC backend. // RUN: %{ispc} %s --target=xehpg-x16 --arch=xe64 --emit-llvm-text --nowrap -o - | FileCheck %s // REQUIRES: XE_ENABLED //CHECK: @lz_format_str = internal unnamed_addr addrspace(2) constant [{{.*}} x i8] c"{{.*}}xe_assert.ispc:13:3: Assertion failed: a > 0 \0A\00", align 1 task void assert_kernel(uniform float aFOO[]) { //CHECK: fail{{.*}}: //CHECK-NEXT: call i32 ({{(i8 addrspace\(2\)\*|ptr addrspace\(2\))}}, ...) @_Z18__spirv_ocl_printfPU3AS2c({{.*}} @lz_format_str //CHECK-NEXT: call void @llvm.genx.raw.send.noresult.v32i16.v16i1.v32i16(i32 0, <16 x i1> {{<i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true>|splat \(i1 true\)}}, i32 39, i32 33554448, <32 x i16> zeroinitializer) float a = aFOO[programIndex]; assert(a > 0); }