https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101205
Bug ID: 101205 Summary: csinv does not have an zero_extend version Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Target: aarch64 While improving phi-opt I ran into this issue. gcc.target/aarch64/csinv-neg.c started to fail because we move the cast out of the conditional and such. Here is a testcase which shows the problem even without improvment of phiopt: unsigned long long inv1(unsigned a, unsigned b, unsigned c) { unsigned t = a ? b : ~c; return t; }