[Bug target/62014] [AArch64] Using -mgeneral-regs-only may lead to ICE

ramana at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 5 09:02:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62014

--- Comment #7 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to ktkachov from comment #6)
> One crude way to look is by looking for the "w" constraint that signifies
> usage of FP registers in the md files and seeing whether those usages are
> properly guarded by the 'simd' attribute or by TARGET_FLOAT/TARGET_SIMD.
> 
> One quick search shows the absdi2 define_insn_and_split that uses 'w' in its
> second alternative to emit "abs\\t%d0, %d1" but doesn't guard it by the
> 'simd' attribute. Maybe that's a place to start to construct a testcase

Thanks, I was about to do this after my morning cuppa :) 

If this was noticed from a testcase, it should be trivial to work out which
pattern it was that had the w registers by just looking at the output with -dp.
Anyway I agree that absdi2 looks the most suspicious.



More information about the Gcc-bugs mailing list