view gcc/testsuite/gcc.dg/pr28402.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "" } */
typedef long long ll;
typedef unsigned long long ull;

int global;

#define A(BASE, OP, AMT) \
  ll BASE ## AMT (ll x) { return x OP AMT; } \
  ull BASE ## AMT ## u (ull x) { return x OP AMT; }

#define B(BASE, OP) \
  A (BASE, OP, 1) \
  A (BASE, OP, 10) \
  A (BASE, OP, 31) \
  A (BASE, OP, 33) \
  A (BASE, OP, 61) \
  A (BASE, OP, global)

B (left, <<)
B (right, >>)

/* { dg-final { scan-assembler-not "__\[a-z\]*si3" } } */