------- Comment #5 from anemo at mba dot ocn dot ne dot jp 2006-07-13 14:42 ------- Created an attachment (id=11881) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11881&action=view) do not put rdhwr instruction on delay slot
With this patch, gcc 4.2 (with -O1, -O2) and gcc 4.1.1 with -O1 produces expected code. gcc 4.1 with -O2 still moves rdhwr outside of a conditional. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28126