[PATCH, GCC/ARM, 6/10] Clear GPRs inline when calling nscall function
[official-gcc.git] / gcc / testsuite / gcc.target / arm / fma-sp.c
blobe1884545f0dbf8ece87c7a6cb668af9e52ae5058
1 /* { dg-do compile } */
2 /* { dg-skip-if "avoid conflicts with multilib options" { ! arm_thumb2_ok } { "-march=*" } { "" } } */
3 /* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mcpu=*" } { "-mcpu=cortex-m4" } } */
4 /* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mfpu=*" } { "-mfpu=fpv4-sp-d16" } } */
5 /* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
6 /* { dg-options "-O2 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mthumb -mfloat-abi=hard" } */
8 #include "fma.h"
10 /* { dg-final { scan-assembler-not "vfma\.f64\td\[0-9\]" } } */
11 /* { dg-final { scan-assembler-times "vfma\.f32\ts\[0-9\]" 1 } } */
12 /* { dg-final { scan-assembler-not "vfms\.f64\td\[0-9\]" } } */
13 /* { dg-final { scan-assembler-times "vfms\.f32\ts\[0-9\]" 1 } } */
14 /* { dg-final { scan-assembler-not "vfnma\.f64\td\[0-9\]" } } */
15 /* { dg-final { scan-assembler-times "vfnma\.f32\ts\[0-9\]" 1 } } */
16 /* { dg-final { scan-assembler-not "vfnms\.f64\td\[0-9\]" } } */
17 /* { dg-final { scan-assembler-times "vfnms\.f32\ts\[0-9\]" 1 } } */