Merge branch 'handle-cleanup-attr'
[smatch.git] / target-alpha.c
blob4c622aec194fdf6838202e32b8d574dacd5b3c2b
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4 #include "builtin.h"
7 static void predefine_alpha(const struct target *self)
9 predefine("__alpha__", 1, "1");
10 predefine("__alpha", 1, "1");
13 static const struct builtin_fn builtins_alpha[] = {
14 { "__builtin_alpha_cmpbge", &long_ctype, 0, { &long_ctype, &long_ctype }},
15 { "__builtin_alpha_extbl", &long_ctype, 0, { &long_ctype, &long_ctype }},
16 { "__builtin_alpha_extwl", &long_ctype, 0, { &long_ctype, &long_ctype }},
17 { "__builtin_alpha_insbl", &long_ctype, 0, { &long_ctype, &long_ctype }},
18 { "__builtin_alpha_inslh", &long_ctype, 0, { &long_ctype, &long_ctype }},
19 { "__builtin_alpha_insql", &long_ctype, 0, { &long_ctype, &long_ctype }},
20 { "__builtin_alpha_inswl", &long_ctype, 0, { &long_ctype, &long_ctype }},
21 { }
24 const struct target target_alpha = {
25 .mach = MACH_ALPHA,
26 .bitness = ARCH_LP64,
27 .has_int128 = 1,
29 .bits_in_longdouble = 64,
31 .predefine = predefine_alpha,
32 .builtins = builtins_alpha,