Commit bf822e19 by Richard Earnshaw Committed by Richard Earnshaw

[arm] PR target/90405 New test.

This time really add the test.

gcc/testsuite:
        PR target/90405
        * gcc.target/arm/pr90405.c: New test.

From-SVN: r271037
parent 4456525c
2019-05-09 Richard Earnshaw <rearnsha@arm.com>
PR target/90405
* gcc.target/arm/pr90405.c: New test.
2019-05-09 Martin Liska <mliska@suse.cz> 2019-05-09 Martin Liska <mliska@suse.cz>
* gcc.dg/gimplefe-39.c: New test. * gcc.dg/gimplefe-39.c: New test.
......
/* PR target/90405 */
/* { dg-do compile } */
/* { dg-require-effective-target arm_thumb1_ok } */
/* { dg-options "-Ofast -mthumb -mtpcs-leaf-frame" } */
#define vector __attribute((vector_size(16)))
vector float a;
float
foo (float b)
{
vector float c = { 0, 0, 0, 0 };
vector float d = { 0, 0, 0, 0 };
d += c;
return ((float *)&c)[2];
}
float
bar (vector float a, int b, vector float c)
{
vector float e = c * a;
a = (vector float) { 0, 0, 0, 0 };
c = (vector float) { 0, 0, 0, 0 };
float d = ((float *)&a)[0];
float f = ((float *)&c)[0];
return d * f;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment