This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]