score-datadep.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* score-datadep.h -- Score Instructions data dependency table
  2. Copyright (C) 2006-2022 Free Software Foundation, Inc.
  3. Contributed by:
  4. Brain.lin (brain.lin@sunplusct.com)
  5. Mei Ligang (ligang@sunnorth.com.cn)
  6. Pei-Lin Tsai (pltsai@sunplus.com)
  7. This file is part of GAS, the GNU Assembler.
  8. GAS is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 3, or (at your option)
  11. any later version.
  12. GAS is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with GAS; see the file COPYING3. If not, write to the Free
  18. Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
  19. Boston, MA 02110-1301, USA. */
  20. #ifndef SCORE_DATA_DEPENDENCY_H
  21. #define SCORE_DATA_DEPENDENCY_H
  22. #define INSN_NAME_LEN 16
  23. enum insn_type_for_dependency
  24. {
  25. D_mtcr,
  26. D_all_insn
  27. };
  28. struct insn_to_dependency
  29. {
  30. char *insn_name;
  31. enum insn_type_for_dependency type;
  32. };
  33. struct data_dependency
  34. {
  35. enum insn_type_for_dependency pre_insn_type;
  36. char pre_reg[6];
  37. enum insn_type_for_dependency cur_insn_type;
  38. char cur_reg[6];
  39. int bubblenum_7;
  40. int bubblenum_3;
  41. int warn_or_error; /* warning - 0; error - 1 */
  42. };
  43. static const struct insn_to_dependency insn_to_dependency_table[] =
  44. {
  45. /* move spectial instruction. */
  46. {"mtcr", D_mtcr},
  47. };
  48. static const struct data_dependency data_dependency_table[] =
  49. {
  50. /* Status regiser. */
  51. {D_mtcr, "cr0", D_all_insn, "", 5, 1, 0},
  52. };
  53. #endif