Skip to content

Commit fd93bf6

Browse files
committed
Split Linux unwind-v3 check into separate test gated on LINUX_ENABLED
1 parent 4ddc033 commit fd93bf6

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Unwind v3 (the "winx64-eh-unwind" module flag) is Windows-only, so on Linux
2+
// it is never set even for APX-capable targets that enable the EGPR registers
3+
// (R16-R31) by default. The Windows-side coverage lives in apx-win-unwindv3.ispc.
4+
5+
//; RUN: %{ispc} %s --target=avx10.2dmr-x16 --arch=x86-64 --target-os=linux --emit-llvm-text -o - | FileCheck %s --check-prefix=NO-V3
6+
7+
// REQUIRES: X86_ENABLED && LINUX_ENABLED && LLVM_23_0+
8+
9+
// NO-V3-NOT: winx64-eh-unwind
10+
11+
void foo(uniform int a[], uniform int n) {
12+
for (uniform int i = 0; i < n; ++i)
13+
a[i] = a[i] + 1;
14+
}

tests/lit-tests/apx-win-unwindv3.ispc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// Non-APX target: no v3 flag.
1313
//; RUN: %{ispc} %s --target=avx512skx-x16 --arch=x86-64 --target-os=windows --emit-llvm-text -o - | FileCheck %s --check-prefix=NO-V3
1414

15-
// Linux: unwind v3 is Windows-only, so the flag is never set.
16-
//; RUN: %{ispc} %s --target=avx10.2dmr-x16 --arch=x86-64 --target-os=linux --emit-llvm-text -o - | FileCheck %s --check-prefix=NO-V3
15+
// The Linux counterpart (unwind v3 is Windows-only) is verified separately in
16+
// apx-win-unwindv3-linux.ispc, which is gated on LINUX_ENABLED.
1717

1818
// REQUIRES: X86_ENABLED && WINDOWS_ENABLED && LLVM_23_0+
1919

0 commit comments

Comments
 (0)