2019-09-17 22:21:36 +08:00
|
|
|
# RUN: llc -mtriple=thumbv6m-apple-ios -run-pass=arm-cp-islands --verify-machine-dom-info %s -o - | FileCheck %s
|
2017-11-14 19:43:54 +08:00
|
|
|
--- |
|
|
|
|
; Function Attrs: minsize nounwind optsize uwtable
|
|
|
|
define arm_aapcscc double @test_split_cfg(double %a, double %b) local_unnamed_addr #0 {
|
|
|
|
ret double undef
|
|
|
|
}
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: test_split_cfg
|
[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 19:16:48 +08:00
|
|
|
alignment: 2
|
2017-11-14 19:43:54 +08:00
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$r0', virtual-reg: '' }
|
2017-11-14 19:43:54 +08:00
|
|
|
frameInfo:
|
|
|
|
isFrameAddressTaken: false
|
|
|
|
isReturnAddressTaken: false
|
|
|
|
hasStackMap: false
|
|
|
|
hasPatchPoint: false
|
|
|
|
stackSize: 48
|
|
|
|
offsetAdjustment: 0
|
|
|
|
maxAlignment: 4
|
|
|
|
adjustsStack: true
|
|
|
|
hasCalls: true
|
|
|
|
stackProtector: ''
|
|
|
|
maxCallFrameSize: 0
|
|
|
|
hasOpaqueSPAdjustment: false
|
|
|
|
hasVAStart: false
|
|
|
|
hasMustTailInVarArgFunc: false
|
|
|
|
savePoint: ''
|
|
|
|
restorePoint: ''
|
|
|
|
fixedStack:
|
|
|
|
# CHECK-LABEL: name: test_split_cfg
|
|
|
|
# CHECK: bb.0:
|
|
|
|
# CHECK: successors: %[[LONG_BR_BB:bb.[0-9]+]](0x{{[0-9a-f]+}}), %[[DEST1:bb.[0-9]+]](0x{{[0-9a-f]+}}){{$}}
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: tBcc %[[LONG_BR_BB]], 0, $cpsr
|
2017-11-14 19:43:54 +08:00
|
|
|
# CHECK: tB %[[DEST1]]
|
2018-02-22 16:41:55 +08:00
|
|
|
# CHECK: [[LONG_BR_BB]]:
|
2017-11-14 19:43:54 +08:00
|
|
|
# CHECK: successors: %[[DEST2:bb.[0-9]+]](0x{{[0-9a-f]+}}){{$}}
|
|
|
|
# CHECK: tB %[[DEST2]]
|
|
|
|
# CHECK: [[DEST1]]:
|
|
|
|
# CHECK: [[DEST2]]:
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0
|
|
|
|
tCMPi8 killed $r0, 0, 14, $noreg, implicit-def $cpsr
|
|
|
|
tBcc %bb.2, 1, killed $cpsr
|
|
|
|
tB %bb.3, 14, $noreg
|
2017-11-14 19:43:54 +08:00
|
|
|
|
2018-02-22 16:41:55 +08:00
|
|
|
bb.1:
|
2018-02-01 06:04:26 +08:00
|
|
|
dead $r0 = SPACE 256, undef $r0
|
2017-11-14 19:43:54 +08:00
|
|
|
|
|
|
|
bb.2:
|
2018-02-01 06:04:26 +08:00
|
|
|
tPOP_RET 14, $noreg, def $pc
|
2017-11-14 19:43:54 +08:00
|
|
|
|
|
|
|
bb.3:
|
2018-02-01 06:04:26 +08:00
|
|
|
tPOP_RET 14, $noreg, def $pc
|
2017-11-14 19:43:54 +08:00
|
|
|
|
|
|
|
...
|