mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
testsuite: arm: Use effective-target for pr98636.c test
The test case assumes that -mfp16-format=alternative is accepted for the target, but not all targets support this flag. One such target is Cortex-M85 that does support FP16, but not the alternative format. gcc/testsuite/ChangeLog: * gcc.target/arm/pr98636.c: Use effective-target arm_fp16_alternative. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
This commit is contained in:
parent
3621d2ac22
commit
4602f628f7
@ -1,6 +1,8 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_softfp_ok } */
|
||||
/* { dg-options "-mfp16-format=alternative -mfloat-abi=softfp" } */
|
||||
/* { dg-require-effective-target arm_fp16_alternative_ok } */
|
||||
/* { dg-options "-mfloat-abi=softfp" } */
|
||||
/* { dg-add-options arm_fp16_alternative } */
|
||||
|
||||
#pragma GCC push_options
|
||||
# pragma GCC target ("arch=armv8.2-a+fp16") /* { dg-error "selected fp16 options are incompatible" } */
|
||||
|
Loading…
Reference in New Issue
Block a user