i386: Fix array index overflow in pr105354-2.c
The array index should not be over 8 for v8hi, or it will fail under -O0 or using -fstack-protector. gcc/testsuite/ChangeLog: PR target/110621 * gcc.target/i386/pr105354-2.c: As mentioned.
This commit is contained in:
parent
9353f6f475
commit
4a2e55b3ad
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ sse2_test (void)
|
|||
b.a[i] = i + 16;
|
||||
res_ab.a[i] = 0;
|
||||
exp_ab.a[i] = -1;
|
||||
if (i <= 8)
|
||||
if (i < 8)
|
||||
{
|
||||
c.a[i] = i;
|
||||
d.a[i] = i + 8;
|
||||
|
|
Loading…
Add table
Reference in a new issue