(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
pru/
lra-framepointer-fragmentation-1.c
       1  /* { dg-do assemble } */
       2  /* { dg-options "-O1 -fno-omit-frame-pointer" } */
       3  #include <stdint.h>
       4  
       5  extern uint64_t global;
       6  
       7  uint64_t __attribute__((noinline)) test(uint64_t a, uint64_t b,
       8                                           uint64_t c, uint64_t d,
       9                                           uint64_t e, uint64_t f,
      10                                           uint64_t g, uint64_t h)
      11  {
      12    uint64_t l1 = 0x12345678, l2 = 0x87654321, l3 = 1001, l4 = 1002;
      13    uint64_t l5 = 1004;
      14    uint32_t l6 = 2005;
      15    uint16_t s1 = 4321;
      16    uint8_t c1 = 101, c2 = 102;
      17  
      18    /* The numerous dummy asm input operands create just
      19     * enough register pressure to resort to using
      20     * FP.b1 (r4.b1).
      21     */
      22  
      23    asm ("nop" /* { dg-error "'asm' operand has impossible constraints" } */
      24         : "=r" (l1)
      25         : "0" (l1), "r" (a), "r"(b),
      26         "r"(c), "r"(d), "r"(e), "r"(f),
      27         "r"(g), "r"(h), "r"(l2),
      28         "r"(c1), "r"(c2), "r"(s1),
      29         "r"(l3), "r"(l4), "r"(l5), "r"(l6));
      30  
      31    global = a+b+c+d+e+f+g+h + s1 + c1+c2 + l2;
      32  
      33    return l1;
      34  }