Hello,

I have a problem about the definition of SHIFT_COUNT_TRUNCATED. MIPS
is a SHIFT_COUNT_TRUNCATED target, and has it defined as 1. While
loongson-specific vector insns are not SHIFT_COUNT_TRUNCATED. That
means that the macro depends on the machine mode. One simple
resolution may be,

  #define SHIFT_COUNT_TRUNCATED (TARGET_LOONGSON_2EF ? 0 : 1)

but this will disable the common optimization for loongson target.
Another way is to use a target hook to handle this problem, but this
requires many changes.

I'd like to ask suggestions for this.

Thanks,
Mingjie

Reply via email to