mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 10:51:19 +08:00
sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
* doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New. gcc/testsuite/ChangeLog * lib/target-supports.exp (arm_tune_string_ops_prefer_neon): New. * gcc.target/arm/memset-inline-4.c: Skip for arm_tune_string_ops_prefer_neon. * gcc.target/arm/memset-inline-5.c: Ditto. * gcc.target/arm/memset-inline-6.c: Ditto. * gcc.target/arm/memset-inline-8.c: Ditto. * gcc.target/arm/memset-inline-9.c: Ditto. From-SVN: r221651
This commit is contained in:
parent
2301ca745e
commit
d45c2a1bd6
@ -1,3 +1,7 @@
|
||||
2015-03-25 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
* doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
|
||||
|
||||
2015-03-25 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
* config/arm/arm.opt (print_tune_info): New option.
|
||||
|
@ -1527,6 +1527,9 @@ Some multilibs may be incompatible with this option.
|
||||
@item arm_neon
|
||||
ARM target supports generating NEON instructions.
|
||||
|
||||
@item arm_tune_string_ops_prefer_neon
|
||||
Test CPU tune supports inlining string operations with NEON instructions.
|
||||
|
||||
@item arm_neon_hw
|
||||
Test system supports executing NEON instructions.
|
||||
|
||||
|
@ -1,3 +1,13 @@
|
||||
2015-03-25 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
* lib/target-supports.exp (arm_tune_string_ops_prefer_neon): New.
|
||||
* gcc.target/arm/memset-inline-4.c: Skip for
|
||||
arm_tune_string_ops_prefer_neon.
|
||||
* gcc.target/arm/memset-inline-5.c: Ditto.
|
||||
* gcc.target/arm/memset-inline-6.c: Ditto.
|
||||
* gcc.target/arm/memset-inline-8.c: Ditto.
|
||||
* gcc.target/arm/memset-inline-9.c: Ditto.
|
||||
|
||||
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/58923
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mcpu=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mtune=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions" { ! arm_tune_string_ops_prefer_neon } } */
|
||||
/* { dg-options "-save-temps -O2 -fno-inline" } */
|
||||
/* { dg-add-options "arm_neon" } */
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mcpu=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mtune=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions" { ! arm_tune_string_ops_prefer_neon } } */
|
||||
/* { dg-options "-save-temps -O2 -fno-inline" } */
|
||||
/* { dg-add-options "arm_neon" } */
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mcpu=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mtune=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions" { ! arm_tune_string_ops_prefer_neon } } */
|
||||
/* { dg-options "-save-temps -O2 -fno-inline" } */
|
||||
/* { dg-add-options "arm_neon" } */
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mcpu=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mtune=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions" { ! arm_tune_string_ops_prefer_neon } } */
|
||||
/* { dg-options "-save-temps -O2 -fno-inline" } */
|
||||
/* { dg-add-options "arm_neon" } */
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mcpu=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions on cortex-a9" { *-*-* } { "-mtune=cortex-a9" } { "" } } */
|
||||
/* { dg-skip-if "Don't inline memset using neon instructions" { ! arm_tune_string_ops_prefer_neon } } */
|
||||
/* { dg-options "-save-temps -Os -fno-inline" } */
|
||||
/* { dg-add-options "arm_neon" } */
|
||||
|
||||
|
@ -2954,6 +2954,14 @@ proc check_effective_target_arm_cortex_m { } {
|
||||
} "-mthumb"]
|
||||
}
|
||||
|
||||
# Return 1 if this compilation turns on string_ops_prefer_neon on.
|
||||
|
||||
proc check_effective_target_arm_tune_string_ops_prefer_neon { } {
|
||||
return [check_no_messages_and_pattern arm_tune_string_ops_prefer_neon "@string_ops_prefer_neon:\t1" assembly {
|
||||
int foo (void) { return 0; }
|
||||
} "-O2 -mprint-tune-info" ]
|
||||
}
|
||||
|
||||
# Return 1 if the target supports executing NEON instructions, 0
|
||||
# otherwise. Cache the result.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user