1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4 #include "builtin.h"
5
6
predefine_alpha(const struct target * self)7 static void predefine_alpha(const struct target *self)
8 {
9 predefine("__alpha__", 1, "1");
10 predefine("__alpha", 1, "1");
11 }
12
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 { }
22 };
23
24 const struct target target_alpha = {
25 .mach = MACH_ALPHA,
26 .bitness = ARCH_LP64,
27 .has_int128 = 1,
28
29 .bits_in_longdouble = 64,
30
31 .predefine = predefine_alpha,
32 .builtins = builtins_alpha,
33 };
34