• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "symbol.h"
2 #include "target.h"
3 #include "machine.h"
4 #include "builtin.h"
5 
6 
predefine_bfin(const struct target * self)7 static void predefine_bfin(const struct target *self)
8 {
9 	predefine("__BFIN__", 1, "1");
10 	predefine("__bfin__", 1, "1");
11 }
12 
13 static const struct builtin_fn builtins_bfin[] = {
14 	{ "__builtin_bfin_csync", &void_ctype, 0 },
15 	{ "__builtin_bfin_ssync", &void_ctype, 0 },
16 	{ "__builtin_bfin_norm_fr1x32", &int_ctype, 0, { &int_ctype }},
17 	{ }
18 };
19 
20 const struct target target_bfin = {
21 	.mach = MACH_BFIN,
22 	.bitness = ARCH_LP32,
23 
24 	.predefine = predefine_bfin,
25 	.builtins = builtins_bfin,
26 };
27