From: Sam Tebbs Date: Fri, 30 Nov 2018 14:38:11 +0000 (+0000) Subject: [PATCH][GCC][ARM] Ensure dotproduct is only enabled on armv8 neon X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=427071d4a44f6a7f742c93af83a56057c88edecf;p=gcc.git [PATCH][GCC][ARM] Ensure dotproduct is only enabled on armv8 neon gcc/ChangeLog: 2018-11-30 Sam Tebbs * config/arm/arm.h (TARGET_DOTPROD): Add TARGET_VFP5 constraint. gcc/testsuite/ChangeLog: 2018-11-30 Sam Tebbs * gcc.target/arm/neon-dotprod-restriction.c: New file. * lib/target-supports.exp (check_effective_target_arm_v8_2a_dotprod_neon_ok_nocache): Include stdint.h. From-SVN: r266665 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c10bfc3e4d7..18feaf5e0a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-30 Sam Tebbs + + * config/arm/arm.h (TARGET_DOTPROD): Add TARGET_VFP5 constraint. + 2018-11-30 Martin Liska PR sanitizer/81715 diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 8472312487b..ab63fc5797a 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -214,7 +214,7 @@ extern tree arm_fp16_type_node; #define TARGET_NEON_RDMA (TARGET_NEON && arm_arch8_1) /* Supports the Dot Product AdvSIMD extensions. */ -#define TARGET_DOTPROD (TARGET_NEON \ +#define TARGET_DOTPROD (TARGET_NEON && TARGET_VFP5 \ && bitmap_bit_p (arm_active_target.isa, \ isa_bit_dotprod) \ && arm_arch8_2) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 33b42aa2e86..4963b1dd41c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,8 +1,16 @@ +2018-11-30 Sam Tebbs + + * gcc.target/arm/neon-dotprod-restriction.c: New file. + * lib/target-supports.exp + (check_effective_target_arm_v8_2a_dotprod_neon_ok_nocache): Include + stdint.h. + 2018-11-30 Martin Liska PR sanitizer/81715 * c-c++-common/asan/asan-stack-small.c: New test. +>>>>>>> .r266664 2018-11-30 Richard Biener * gcc.dg/gimplefe-34.c: New testcase. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index f18cf2a172c..3baa2da25ea 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -4437,6 +4437,7 @@ proc check_effective_target_arm_v8_2a_dotprod_neon_ok_nocache { } { foreach flags {"" "-mfloat-abi=softfp -mfpu=neon-fp-armv8" "-mfloat-abi=hard -mfpu=neon-fp-armv8"} { if { [check_no_compiler_messages_nocache \ arm_v8_2a_dotprod_neon_ok object { + #include #if !defined (__ARM_FEATURE_DOTPROD) #error "__ARM_FEATURE_DOTPROD not defined" #endif