http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51782
--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-01-07 12:17:21 UTC --- Created attachment 26267 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26267 a-bug.c.150r.expand a-bug.c.150r.expand RTL dump, FYI As you can see in read_rgb_ok that move insns 8, 9, 13 are reading from AS1 which is __pgm. This code is correct In read_rgb_bug, insns 8, 9 and 13 are reading from generic address space brcause there is no address space information. This code is wrong.