Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/lit-tests/ps-pic-level.ispc
2025-05-18 13:04:45 +08:00

12 lines
517 B
Plaintext

// RUN: %{ispc} --target-os=ps4 --nostdlib --nowrap %s -o - --emit-llvm-text 2>&1 | FileCheck %s --check-prefix=CHECK-IR-PIC
// RUN: %{ispc} --target-os=ps4 --nostdlib --nowrap %s -o - --emit-llvm-text --pic 2>&1 | FileCheck %s --check-prefix=CHECK-IR-PIC
// RUN: %{ispc} --target-os=ps4 --nostdlib --nowrap %s -o - --emit-llvm-text --PIC 2>&1 | FileCheck %s --check-prefix=CHECK-IR-PIC
// REQUIRES: PS_ENABLED
// CHECK-IR-PIC: !"PIC Level", i32 2
uniform int global_var;
uniform int foo() { return global_var; }