[all-commits] [llvm/llvm-project] f07b95: [PowerPC] Add addtional test that retroactively ca...

Brandon Bergren via All-commits all-commits at lists.llvm.org
Wed Dec 30 13:28:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f07b95e8bcd1584167eaa8bd41ef8ee96422df65
      https://github.com/llvm/llvm-project/commit/f07b95e8bcd1584167eaa8bd41ef8ee96422df65
  Author: Brandon Bergren <bdragon at FreeBSD.org>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M llvm/test/MC/PowerPC/ppc64-encoding-ext.s

  Log Message:
  -----------
  [PowerPC] Add addtional test that retroactively catches PR47259

Due to the unfortunate way the bug could only be triggered when reading SPRG[0-3] into a register lower than %r4 with the "mfsprg %rX, 0" syntax, the tests did not detect it.

(It could not be triggered for "mfsprg0, %r2" because that pattern was already in the table, so the earlier "correct" match took effect)

As a canary, add an intentionally ambiguous "mfsprg 2, 2" and "mtsprg 2, 2" check that would have caught the problem.

Reviewed By: ZhangKang

Differential Revision: https://reviews.llvm.org/D86489




More information about the All-commits mailing list