aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/instr/builtin64.c
blob: 252eb2c6fbe54f73fa55fcd03f6c4ac227db197a (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 __KVX__
  long long d = c;
  a = __builtin_kvx_alclrd(ptr);
  c = d;
  c += a;

  c += __builtin_clzll(a);

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