Hello, I tried to define a new machine mode for a data type only allocated to certain registers, e.g., MAC registers. I first used an unused PDI mode (same as Blackfin porting).
In target-modes.def file: PARTIAL_INT_MODE (DI); Then in my test program, I tried to define a new data type using PDI mode. typedef int __attribute__ ((mode (PDI))) MREG; But GCC reports error: tst.c:13: error: no data type for mode 'PDI' On this typedef statement. How can I use the newly defined MODE to specify a new data type? I cannot find any example for Blackfin, where PDI mode is used to represennt 40-bit MAC similarly. I also tries to define a new INT_MODE by: INT_MODE(PDI, 8). The error message is the same. Any hint? Thanks in advance. Cheers, Bingfeng Mei Broadcom UK