Re: Re: [PATCH 0/5] Add support for operand-specific alignment requirements

2023-11-23 Thread juzhe.zh...@rivai.ai
Hi, Richard. Here is an example for vsext.vf2. The general pattern for this instruction as follows: (set (operand 0) (unspec:...(operand 1))) We have a TARGET_MIN_VLEN macro which specify minimum VLEN according to -march Consider this case V16QI -> V16HI of vsext.vf2 When TARGET_MIN_VLEN ==

Re: Re: [PATCH 0/5] Add support for operand-specific alignment requirements

2023-11-22 Thread 钟居哲
Hi, Richard. Current define_mode_attr can only map an attribute for a mode. I wonder whether we can map a mode to multiple attributes ? E.g. (define_mode_attr dest_constraint [(V16QI "&vr")]) But I want it to be: (define_mode_attr dest_constraint [(V16QI (TARGET_MIN_VLEN <= 128 "vr") (TARGET_M