diff mbox

[ARM] PR68674 Fix LTO support for neon builtin and error catching (ping)

Message ID 56979FE7.3030804@st.com
State New
Headers show

Commit Message

Christian Bruel Jan. 14, 2016, 1:17 p.m. UTC
sorry forgot to provide one of the tests in the patch.

On 01/14/2016 01:37 PM, Christian Bruel wrote:
> Here is the rebased patch after the #pragma GCC target warning fixes.
> I also disabled the builtins initialisations when float-abi is solft as
> you suggested.
>
>
>
>
diff mbox

Patch

Index: arm/attr-neon-builtin-fail2.c
===================================================================
--- arm/attr-neon-builtin-fail2.c	(revision 0)
+++ arm/attr-neon-builtin-fail2.c	(working copy)
@@ -0,0 +1,15 @@ 
+/* Check that calling a neon builtin from a function compiled with vfp fails.  */
+/* { dg-do compile } */
+/* { dg-require-effective-target arm_vfp_ok } */
+/* { dg-options "-O2 -mfloat-abi=softfp" } */
+
+extern __simd64_int8_t a, b;
+
+__attribute__ ((target ("fpu=vfp")))
+void
+foo (__simd128_int16_t *p)
+{
+  *p = (__simd128_int16_t)__builtin_neon_vaddlsv8qi (a, b); /* { dg-error "You must enable NEON instructions .*" } */
+
+}
+