2019-08-08 22:42:48 +00:00
|
|
|
# RUN: llc -mtriple=aarch64-none-linux-android -run-pass aarch64-ldst-opt -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
--- |
|
|
|
|
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
|
|
|
target triple = "aarch64-unknown-linux-android"
|
|
|
|
|
|
|
|
define void @f(i64* nocapture %x) "target-features"="+mte" {
|
|
|
|
entry:
|
|
|
|
store i64 1, i64* %x, align 8
|
|
|
|
%0 = tail call i8* @llvm.aarch64.irg(i8* null, i64 0)
|
|
|
|
%1 = tail call i8* @llvm.aarch64.irg.sp(i64 0)
|
|
|
|
%arrayidx1 = getelementptr inbounds i64, i64* %x, i64 1
|
|
|
|
store i64 1, i64* %arrayidx1, align 8
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i8* @llvm.aarch64.irg(i8*, i64) nounwind
|
|
|
|
declare i8* @llvm.aarch64.irg.sp(i64) nounwind
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: f
|
[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
2019-09-11 11:16:48 +00:00
|
|
|
alignment: 4
|
2019-08-08 22:42:48 +00:00
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
failedISel: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
hasWinCFI: false
|
|
|
|
registers: []
|
|
|
|
liveins:
|
|
|
|
- { reg: '$x0', virtual-reg: '' }
|
|
|
|
frameInfo:
|
|
|
|
isFrameAddressTaken: false
|
|
|
|
isReturnAddressTaken: false
|
|
|
|
hasStackMap: false
|
|
|
|
hasPatchPoint: false
|
|
|
|
stackSize: 0
|
|
|
|
offsetAdjustment: 0
|
|
|
|
maxAlignment: 0
|
|
|
|
adjustsStack: false
|
|
|
|
hasCalls: false
|
|
|
|
stackProtector: ''
|
|
|
|
maxCallFrameSize: 0
|
|
|
|
cvBytesOfCalleeSavedRegisters: 0
|
|
|
|
hasOpaqueSPAdjustment: false
|
|
|
|
hasVAStart: false
|
|
|
|
hasMustTailInVarArgFunc: false
|
|
|
|
localFrameSize: 0
|
|
|
|
savePoint: ''
|
|
|
|
restorePoint: ''
|
|
|
|
fixedStack: []
|
|
|
|
stack: []
|
|
|
|
callSites: []
|
|
|
|
constants: []
|
|
|
|
machineFunctionInfo: {}
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $x0
|
|
|
|
|
|
|
|
$x8 = ORRXrs $xzr, $xzr, 0
|
|
|
|
$w9 = MOVZWi 1, 0, implicit-def $x9
|
|
|
|
|
|
|
|
; Check that stores are merged across IRG.
|
|
|
|
; CHECK: STPXi renamable $x9, renamable $x9, renamable $x0, 0
|
|
|
|
|
|
|
|
STRXui renamable $x9, renamable $x0, 0 :: (store 8 into %ir.x)
|
|
|
|
dead renamable $x10 = IRG renamable $x8, $xzr
|
|
|
|
dead renamable $x8 = IRG $sp, $xzr
|
|
|
|
STRXui killed renamable $x9, killed renamable $x0, 1 :: (store 8 into %ir.arrayidx1)
|
|
|
|
RET undef $lr
|
|
|
|
|
|
|
|
...
|