Re: [Committed] IBM Z: Add pattern for load truth value of comparison into reg

2019-11-11 Thread Richard Henderson
On 11/11/19 4:03 PM, Andreas Krebbel wrote: > On 11.11.19 15:39, Richard Henderson wrote: >> On 11/7/19 12:52 PM, Andreas Krebbel wrote: >>> +; Such patterns get directly emitted by noce_emit_store_flag. >>> +(define_insn_and_split "*cstorecc_z13" >>> + [(set (match_operand:GPR 0 "register_operan

Re: [Committed] IBM Z: Add pattern for load truth value of comparison into reg

2019-11-11 Thread Andreas Krebbel
On 11.11.19 15:39, Richard Henderson wrote: > On 11/7/19 12:52 PM, Andreas Krebbel wrote: >> +; Such patterns get directly emitted by noce_emit_store_flag. >> +(define_insn_and_split "*cstorecc_z13" >> + [(set (match_operand:GPR 0 "register_operand""=&d") >> +(match_operator:G

Re: [Committed] IBM Z: Add pattern for load truth value of comparison into reg

2019-11-11 Thread Richard Henderson
On 11/7/19 12:52 PM, Andreas Krebbel wrote: > +; Such patterns get directly emitted by noce_emit_store_flag. > +(define_insn_and_split "*cstorecc_z13" > + [(set (match_operand:GPR 0 "register_operand""=&d") > + (match_operator:GPR 1 "s390_comparison" > +

[Committed] IBM Z: Add pattern for load truth value of comparison into reg

2019-11-07 Thread Andreas Krebbel
The RTXs used to express an overflow condition check in add/sub/mul are too complex for if conversion. However, there is code in noce_emit_store_flag which generates a simple CC compare as the base for using a conditional load. All we have to do is to provide a pattern to store the truth value of