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 rtl-optimization/60554] redundant instruction is generated for setting the flags on x86


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60554

--- Comment #2 from Luchezar Belev <l_belev at yahoo dot com> ---
sorry, the above code to be correct "setg %al" should be "seta %al" instead.

also in the compiler-generated code, the testl instruction is still redundant,
but when it is removed the following "setg %al" should be replaced with "seta
%al".
Maybe this is too complicated for a compiler to figure out though.


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