target-bfin.c 563 B

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