Oclgrind icon indicating copy to clipboard operation
Oclgrind copied to clipboard

Wrong mad_sat result

Open mpflanzer opened this issue 8 years ago • 0 comments

The following kernel produces a wrong result with Oclgrind:

kernel void mad_sat_overflow(global long *res)
{
    res[0] = mad_sat(1L, -1L, 0L);
}

Output should be:

Argument 'res': 8 bytes
  res[0] = -1

but is:

Argument 'res': 8 bytes
  res[0] = -9223372036854775808

mpflanzer avatar Aug 05 '16 18:08 mpflanzer