2019-08-29 18:32:12 +08:00
|
|
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
|
|
# RUN: llc -mtriple=thumbv8.1-m.main-none-eabi -mattr=+mve -run-pass arm-mve-vpt %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @vpnot(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
|
|
|
|
entry:
|
|
|
|
%0 = icmp slt <4 x i32> %a, zeroinitializer
|
|
|
|
%c2 = icmp sgt <4 x i32> %b, zeroinitializer
|
|
|
|
%c3 = icmp eq <4 x i32> %c, zeroinitializer
|
|
|
|
%o1 = and <4 x i1> %0, %c2
|
|
|
|
%o2 = xor <4 x i1> %o1, <i1 true, i1 true, i1 true, i1 true>
|
|
|
|
%o = and <4 x i1> %c3, %o2
|
|
|
|
%s = select <4 x i1> %o, <4 x i32> %a, <4 x i32> %b
|
|
|
|
ret <4 x i32> %s
|
|
|
|
}
|
|
|
|
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @vpnot_end(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
|
|
|
|
entry:
|
|
|
|
%0 = icmp slt <4 x i32> %a, zeroinitializer
|
|
|
|
%c2 = icmp sgt <4 x i32> %b, zeroinitializer
|
|
|
|
%c3 = icmp eq <4 x i32> %c, zeroinitializer
|
|
|
|
%o1 = and <4 x i1> %0, %c2
|
|
|
|
%o2 = xor <4 x i1> %o1, <i1 true, i1 true, i1 true, i1 true>
|
|
|
|
br label %bb2
|
|
|
|
bb2:
|
|
|
|
%o = and <4 x i1> %c3, %o2
|
|
|
|
%s = select <4 x i1> %o, <4 x i32> %a, <4 x i32> %b
|
|
|
|
ret <4 x i32> %s
|
|
|
|
}
|
|
|
|
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @vpnot_two(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
|
|
|
|
entry:
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @vpnot_lots(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
|
|
|
|
entry:
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @vpnot_first(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
|
|
|
|
entry:
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
define arm_aapcs_vfpcc <4 x i32> @vpnot_many(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
|
|
|
|
entry:
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: vpnot
|
[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: 4
|
2019-08-29 18:32:12 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
liveins:
|
|
|
|
- { reg: '$q0', virtual-reg: '' }
|
|
|
|
- { reg: '$q1', virtual-reg: '' }
|
|
|
|
- { reg: '$q2', virtual-reg: '' }
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $q0, $q1, $q2
|
|
|
|
|
|
|
|
; CHECK-LABEL: name: vpnot
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
|
|
|
|
; CHECK: MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit killed $q2, implicit $zr {
|
|
|
|
; CHECK: MVE_VPST 8, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: tBX_RET 14, $noreg, implicit $q0
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
|
|
|
|
renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
tBX_RET 14, $noreg, implicit $q0
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: vpnot_end
|
[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: 4
|
2019-08-29 18:32:12 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
liveins:
|
|
|
|
- { reg: '$q0', virtual-reg: '' }
|
|
|
|
- { reg: '$q1', virtual-reg: '' }
|
|
|
|
- { reg: '$q2', virtual-reg: '' }
|
|
|
|
body: |
|
|
|
|
; CHECK-LABEL: name: vpnot_end
|
|
|
|
; CHECK: bb.0.entry:
|
|
|
|
; CHECK: successors: %bb.1(0x80000000)
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
|
|
|
|
; CHECK: MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: bb.1.bb2:
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2, $vpr
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit killed $q2, implicit $zr {
|
|
|
|
; CHECK: MVE_VPST 8, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: tBX_RET 14, $noreg, implicit $q0
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $q0, $q1, $q2
|
|
|
|
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
|
|
|
|
bb.1.bb2:
|
|
|
|
liveins: $q0, $q1, $q2, $vpr
|
|
|
|
|
|
|
|
renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
|
|
|
|
renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
tBX_RET 14, $noreg, implicit $q0
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: vpnot_two
|
[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: 4
|
2019-08-29 18:32:12 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
liveins:
|
|
|
|
- { reg: '$q0', virtual-reg: '' }
|
|
|
|
- { reg: '$q1', virtual-reg: '' }
|
|
|
|
- { reg: '$q2', virtual-reg: '' }
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $q0, $q1, $q2
|
|
|
|
|
|
|
|
; CHECK-LABEL: name: vpnot_two
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
|
|
|
|
; CHECK: MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit killed $q2, implicit $zr {
|
|
|
|
; CHECK: MVE_VPST 8, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: tBX_RET 14, $noreg, implicit $q0
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
|
|
|
|
renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
tBX_RET 14, $noreg, implicit $q0
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: vpnot_lots
|
[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: 4
|
2019-08-29 18:32:12 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
liveins:
|
|
|
|
- { reg: '$q0', virtual-reg: '' }
|
|
|
|
- { reg: '$q1', virtual-reg: '' }
|
|
|
|
- { reg: '$q2', virtual-reg: '' }
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $q0, $q1, $q2
|
|
|
|
|
|
|
|
; CHECK-LABEL: name: vpnot_lots
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
|
|
|
|
; CHECK: MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit killed $q2, implicit $zr {
|
|
|
|
; CHECK: MVE_VPST 8, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: tBX_RET 14, $noreg, implicit $q0
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
|
|
|
|
renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
tBX_RET 14, $noreg, implicit $q0
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: vpnot_first
|
[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: 4
|
2019-08-29 18:32:12 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
liveins:
|
|
|
|
- { reg: '$q0', virtual-reg: '' }
|
|
|
|
- { reg: '$q1', virtual-reg: '' }
|
|
|
|
- { reg: '$q2', virtual-reg: '' }
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $q0, $q1, $q2
|
|
|
|
|
|
|
|
; CHECK-LABEL: name: vpnot_first
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit $q1, implicit $zr, implicit killed $q2 {
|
|
|
|
; CHECK: MVE_VPST 4, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
|
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: tBX_RET 14, $noreg, implicit $q0
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
|
|
|
|
renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
tBX_RET 14, $noreg, implicit $q0
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: vpnot_many
|
[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: 4
|
2019-08-29 18:32:12 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
liveins:
|
|
|
|
- { reg: '$q0', virtual-reg: '' }
|
|
|
|
- { reg: '$q1', virtual-reg: '' }
|
|
|
|
- { reg: '$q2', virtual-reg: '' }
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: $q0, $q1, $q2
|
|
|
|
|
|
|
|
; CHECK-LABEL: name: vpnot_many
|
|
|
|
; CHECK: liveins: $q0, $q1, $q2
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit $q1, implicit $zr {
|
|
|
|
; CHECK: MVE_VPST 8, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-09-16 21:02:41 +08:00
|
|
|
; CHECK: BUNDLE implicit-def $vpr, implicit killed $q2, implicit $zr {
|
|
|
|
; CHECK: MVE_VPST 8, implicit-def $vpr
|
|
|
|
; CHECK: renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: }
|
2019-09-05 21:37:04 +08:00
|
|
|
; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
2019-08-29 18:32:12 +08:00
|
|
|
; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
; CHECK: tBX_RET 14, $noreg, implicit $q0
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
|
|
|
|
renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
|
|
|
|
renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
|
|
|
|
tBX_RET 14, $noreg, implicit $q0
|
|
|
|
|
|
|
|
...
|