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

19 lines
462 B
Plaintext

// RUN: %{ispc} --pic -O2 --target=host %s -o %t.o
// RUN: %{cc} %t.o -o %t.bin
// RUN: %t.bin | FileCheck %s
// REQUIRES: !MACOS_HOST
uniform float<3> foo(uniform float<3> a, uniform float<3> b) { return a < b; }
// CHECK: 0.000000 1.000000 0.000000
extern "C" uniform int main() {
uniform float<3> a = { 5., 3., 9. };
uniform float<3> b = { 1., 8., 2. };
uniform float<3> r = foo(a, b);
print("% % %\n", r[0], r[1], r[2]);
return 0;
}