aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/instr/builtin64.c
blob: dbbb1886b7794b53cdd55129392d215f07a4471b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "framework.h"

BEGIN_TEST(long long)
  long long *ptr = &c;
#ifdef __K1C__
  long long d = c;
  a = __builtin_k1_alclrd(ptr);
  c = d;
  c += a;

  c += __builtin_clzll(a);

  /* Removed the AFADDD builtin who was incorrect in CompCert, see #157 */
  // a = __builtin_k1_afaddd(ptr, a);
  // a = __builtin_k1_afaddd(ptr, a);
#endif
END_TEST64()