Ternary operator not executing
Submitted by Chris Cummins
Assigned to Zhigang Gong @gongzg
Link to original bug (#102118)
Description
Created attachment 133380 Test case
Hi,
I'm having trouble where kernels containing ternary assignments compute the wrong result. I've attached a minimal example, where the kernel is:
__kernel void A(__global int* a, __global int* b, __global int* c) { c[0] = 100; c[1] = (a[3] <= b[4]) ? a[4] : b[5]; } // Expected output: c[0] = 100, c[1] = 5 // Actual output: c[0] = 1, c[1] = 2
Device: Intel(R) HD Graphics Haswell GT2 Desktop Beignet version: 1.3
Cheers, Chris
Attachment 133380, "Test case":
ternary.c