(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
aapcs/
vfp26.c
       1  /* Test AAPCS layout (VFP variant) */
       2  
       3  /* { dg-do run { target arm_eabi } } */
       4  /* { dg-require-effective-target arm_hard_vfp_ok } */
       5  /* { dg-require-effective-target arm32 } */
       6  /* { dg-options "-O -mfpu=vfp -mfloat-abi=hard" } */
       7  
       8  #ifndef IN_FRAMEWORK
       9  #define VFP
      10  #define TESTFILE "vfp26.c"
      11  
      12  /* Anonymous bitfields do not add members; if they do not change the layout
      13     then the end result may still be an HFA.  */
      14  struct z
      15  {
      16    float a;
      17    int :0;
      18    float b;
      19  };
      20  
      21  struct z a = { 5.0f, 6.0f };
      22  struct z b = { 9.0f, 10.0f };
      23  
      24  #define MYFUNCTYPE struct z
      25  
      26  #include "abitest.h"
      27  #else
      28    ARG(int, 7, R0)
      29    ARG(struct z, a, S0)
      30    LAST_ARG(struct z, b, S2)
      31  #endif