aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/call-builtin.c
blob: af0148aa4d1391567ef7d1dbfd34b9269c69992f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef unsigned int u32;

u32 ff(u32 a) { return __builtin_popcount(a); }

u32 f0(u32 a) { return (__builtin_popcount)(a); }

/*
 * check-name: builtin calls
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: load
 * check-output-pattern(2): call\..*__builtin_.*, %arg1
 */