Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gdc.dg / simd23077.d
blob150ec9f902e258f078a6849dfcaee72cc77f27c4
1 // https://issues.dlang.org/show_bug.cgi?id=23077
2 // { dg-additional-options "-mavx" { target avx_runtime } }
3 // { dg-do compile }
4 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
6 float test23077(float x)
8 short i = *cast(short*)&x;
9 ++i;
10 return *cast(float*)&i; // this cast is not allowed in @safe code