summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse-4.c
blob: 394ad9d7ec4bf29ab15cae0aafa188c8f7bcbdf7 (plain)
1
2
3
4
5
6
7
8
9
10
/* This testcase caused a buffer overflow in simplify_immed_subreg.  */
/* { dg-do compile } */
/* { dg-options "-O2 -msse2" } */

#include <emmintrin.h>

__m128i foo (__m128i x)
{
  return _mm_min_epu8 (x, _mm_set1_epi8 (10));
}