testcase: Add testcase for already fixed PR [PR118476]
This testcase was fixed by r15-3052-gc7b76a076cb2c6ded but is a testcase that failed in a different fashion and a much older failure than the one added with r15-3052. Pushed as obvious after a quick test. PR tree-optimization/118476 gcc/testsuite/ChangeLog: * gcc.dg/torture/pr118476-1.c: New test. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
This commit is contained in:
parent
00966a7fdb
commit
d45a6502d1
1 changed files with 14 additions and 0 deletions
14
gcc/testsuite/gcc.dg/torture/pr118476-1.c
Normal file
14
gcc/testsuite/gcc.dg/torture/pr118476-1.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* { dg-do compile } */
|
||||
|
||||
/* PR tree-optimization/118476 */
|
||||
|
||||
typedef unsigned long long poly64x1 __attribute__((__vector_size__(1*sizeof(long long))));
|
||||
|
||||
poly64x1 vext_p64(poly64x1 a, poly64x1 b, const int n)
|
||||
{
|
||||
poly64x1 r = a;
|
||||
unsigned src = (unsigned)n;
|
||||
long long t = b[0];
|
||||
r[0] = (src < 1) ? a[src] : t;
|
||||
return r;
|
||||
}
|
Loading…
Add table
Reference in a new issue