aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/stack-check-11.c
blob: 48341cedcd4b91284b9d972cca0d81eb1d66e5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection -mtune=generic -fno-stack-protector" } */
/* { dg-require-effective-target supports_stack_clash_protection } */

#include <stdint.h>

extern void arf (uint64_t *, uint64_t *);
void
frob ()
{
  uint64_t num[859];
  uint64_t den[859];
  arf (den, num);
}

/* { dg-final { scan-assembler-times "sub\[ql\]" 4 } } */
/* { dg-final { scan-assembler-times "or\[ql\]" 3 } } */