Skip to content
Snippets Groups Projects
Commit 8b737ec2 authored by Uros Bizjak's avatar Uros Bizjak
Browse files

i386/testsuite: Add testcase for fixed PR [PR51492]

	PR target/51492

gcc/testsuite/ChangeLog:

	* gcc.target/i386/pr51492.c: New test.
parent 7ef8a9d4
No related branches found
No related tags found
No related merge requests found
/* PR target/51492 */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -msse2" } */
#define SIZE 65536
#define WSIZE 64
unsigned short head[SIZE] __attribute__((aligned(64)));
void
f(void)
{
for (unsigned n = 0; n < SIZE; ++n) {
unsigned short m = head[n];
head[n] = (unsigned short)(m >= WSIZE ? m-WSIZE : 0);
}
}
/* { dg-final { scan-assembler "psubusw" } } */
/* { dg-final { scan-assembler-not "paddw" } } */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment