https://bugs.freedesktop.org/show_bug.cgi?id=98761
--- Comment #20 from Matt Arsenault arsenm2@gmail.com --- (In reply to Marek Olšák from comment #19)
Created attachment 128178 [details] still bad
(In reply to Matt Arsenault from comment #18)
Try after llvm r287844
It's still pretty broken. See the attached asm. "s_mov vcc_hi, m0" looks suspicious.
s_mov vcc_hi, m0 is fine and expected. TableGen happens to sort VCC to the beginning of the SReg_64 register class list, so the scavenger tends to find VCC first if its available