diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2019-09-11 11:16:48 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2019-09-11 11:16:48 +0000 |
| commit | 48904e9452de81375bd55d830d08e51cc8f2ec7e (patch) | |
| tree | 870ff19fbb173ec430372a5abbf06d4b27bc3836 /llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir | |
| parent | d811d9115b0b2d004a568e8ebdb37ba0ea6397d1 (diff) | |
| download | bcm5719-llvm-48904e9452de81375bd55d830d08e51cc8f2ec7e.tar.gz bcm5719-llvm-48904e9452de81375bd55d830d08e51cc8f2ec7e.zip | |
[Alignment] Use llvm::Align in MachineFunction and TargetLowering - fixes mir parsing
Summary:
This catches malformed mir files which specify alignment as log2 instead of pow2.
See https://reviews.llvm.org/D65945 for reference,
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: MatzeB, qcolombet, dschuff, arsenm, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, Petar.Avramovic, asbirlea, s.egerton, pzheng, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67433
llvm-svn: 371608
Diffstat (limited to 'llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir')
| -rw-r--r-- | llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir b/llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir index e7a2edbec95..d864cfa4e32 100644 --- a/llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir +++ b/llvm/test/CodeGen/Mips/unaligned-memops-mapping.mir @@ -20,7 +20,7 @@ ... --- name: g -alignment: 2 +alignment: 4 exposesReturnsTwice: false legalized: false regBankSelected: false @@ -66,7 +66,7 @@ body: | ... --- name: g2 -alignment: 2 +alignment: 4 exposesReturnsTwice: false legalized: false regBankSelected: false @@ -118,7 +118,7 @@ body: | # CHECK: c: 60 25 90 03 swr $1, 3($5) # CHECK-LABEL: g2: -# CHECK: 12: 60 24 64 00 lwle $1, 0($4) -# CHECK: 16: 60 24 66 03 lwre $1, 3($4) -# CHECK: 1a: 60 25 a0 00 swle $1, 0($5) -# CHECK: 1e: 60 25 a2 03 swre $1, 3($5) +# CHECK: 14: 60 24 64 00 lwle $1, 0($4) +# CHECK: 18: 60 24 66 03 lwre $1, 3($4) +# CHECK: 1c: 60 25 a0 00 swle $1, 0($5) +# CHECK: 20: 60 25 a2 03 swre $1, 3($5) |

