Skip to content

Commit

Permalink
Issue 14703 - el.c is missing simd vectors
Browse files Browse the repository at this point in the history
This fixes the simd vector optimization in release builds by adding the comparison operation for the corresponding types.
  • Loading branch information
Etienne Cimon committed Jun 16, 2015
1 parent 58b3055 commit 902a65e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/backend/el.c
Original file line number Diff line number Diff line change
Expand Up @@ -2588,7 +2588,19 @@ int el_match(elem *n1,elem *n2)
if (memcmp(&n1->EV,&n2->EV,sizeof(n1->EV.Vcdouble)))
goto nomatch;
break;

case TYfloat4:
case TYdouble2:
case TYschar16:
case TYuchar16:
case TYshort8:
case TYushort8:
case TYlong4:
case TYulong4:
case TYllong2:
case TYullong2:
if(n1->EV.Vcent.msw != n2->EV.Vcent.msw || n1->EV.Vcent.lsw != n2->EV.Vcent.lsw)
goto nomatch;
break;
case TYcldouble:
#if LNGDBLSIZE > 10
/* sizeof is 12, but actual size of each part is 10 */
Expand Down

0 comments on commit 902a65e

Please sign in to comment.