Bug 102118 - Ternary operator not executing
Summary: Ternary operator not executing
Status: RESOLVED MOVED
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Zhigang Gong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 13:52 UTC by Chris Cummins
Modified: 2018-10-12 21:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Test case (12.05 KB, text/x-csrc)
2017-08-08 13:52 UTC, Chris Cummins
Details

Description Chris Cummins 2017-08-08 13:52:13 UTC
Created attachment 133380 [details]
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
Comment 1 GitLab Migration User 2018-10-12 21:22:25 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/beignet/beignet/issues/4.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.