summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/implicit-null-checks.mir
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-11 11:16:48 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-11 11:16:48 +0000
commit48904e9452de81375bd55d830d08e51cc8f2ec7e (patch)
tree870ff19fbb173ec430372a5abbf06d4b27bc3836 /llvm/test/CodeGen/X86/implicit-null-checks.mir
parentd811d9115b0b2d004a568e8ebdb37ba0ea6397d1 (diff)
downloadbcm5719-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/X86/implicit-null-checks.mir')
-rw-r--r--llvm/test/CodeGen/X86/implicit-null-checks.mir54
1 files changed, 27 insertions, 27 deletions
diff --git a/llvm/test/CodeGen/X86/implicit-null-checks.mir b/llvm/test/CodeGen/X86/implicit-null-checks.mir
index d7983553cc9..e6147f56ed7 100644
--- a/llvm/test/CodeGen/X86/implicit-null-checks.mir
+++ b/llvm/test/CodeGen/X86/implicit-null-checks.mir
@@ -384,7 +384,7 @@
---
name: imp_null_check_with_bitwise_op_0
# CHECK-LABEL: name: imp_null_check_with_bitwise_op_0
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -424,7 +424,7 @@ body: |
...
---
name: imp_null_check_with_bitwise_op_1
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -468,7 +468,7 @@ body: |
---
name: imp_null_check_with_bitwise_op_2
# CHECK-LABEL: name: imp_null_check_with_bitwise_op_2
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -509,7 +509,7 @@ body: |
---
name: imp_null_check_with_bitwise_op_3
# CHECK-LABEL: name: imp_null_check_with_bitwise_op_3
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -549,7 +549,7 @@ body: |
---
name: imp_null_check_with_bitwise_op_4
# CHECK-LABEL: name: imp_null_check_with_bitwise_op_4
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -590,7 +590,7 @@ body: |
---
name: no_hoist_across_call
# CHECK-LABEL: name: no_hoist_across_call
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -638,7 +638,7 @@ name: dependency_live_in_hazard
# an implicit null check -- hoisting it will require hosting the move
# to $esi and we cannot do that without clobbering the use of $rsi in
# the first instruction in bb.1.not_null.
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -672,7 +672,7 @@ name: use_alternate_load_op
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -703,7 +703,7 @@ name: imp_null_check_gep_load_with_use_dep
# CHECK: bb.0.entry:
# CHECK: $eax = FAULTING_OP 1, %bb.2, {{[0-9]+}}, $rdi, 1, $noreg, 0, $noreg, implicit-def $rax :: (load 4 from %ir.x)
# CHECK-NEXT: JMP_1 %bb.1
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -735,7 +735,7 @@ name: imp_null_check_load_with_base_sep
# CHECK: $rsi = ADD64rr $rsi, $rdi, implicit-def dead $eflags
# CHECK-NEXT: $esi = FAULTING_OP 1, %bb.2, {{[0-9]+}}, $esi, $rdi, 1, $noreg, 0, $noreg, implicit-def $eflags
# CHECK-NEXT: JMP_1 %bb.1
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -768,7 +768,7 @@ name: inc_store
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -798,7 +798,7 @@ name: inc_store_plus_offset
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -829,7 +829,7 @@ name: inc_store_with_dep
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -860,7 +860,7 @@ name: inc_store_with_dep_in_null
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -895,7 +895,7 @@ name: inc_store_with_volatile
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -925,7 +925,7 @@ name: inc_store_with_two_dep
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -957,7 +957,7 @@ name: inc_store_with_redefined_base
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -988,7 +988,7 @@ name: inc_store_with_reused_base
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1020,7 +1020,7 @@ name: inc_store_across_call
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1062,7 +1062,7 @@ name: inc_store_with_dep_in_dep
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1095,7 +1095,7 @@ name: inc_store_with_load_over_store
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1127,7 +1127,7 @@ name: inc_store_with_store_over_load
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1159,7 +1159,7 @@ name: inc_store_with_store_over_store
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1190,7 +1190,7 @@ name: inc_store_with_load_and_store
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1221,7 +1221,7 @@ name: inc_store_and_load_no_alias
# CHECK-NEXT: JMP_1 %bb.1
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1253,7 +1253,7 @@ name: inc_store_and_load_alias
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
liveins:
- { reg: '$rdi' }
@@ -1285,7 +1285,7 @@ name: inc_spill_dep
# CHECK-NEXT: JCC_1 %bb.2, 4, implicit killed $eflags
# CHECK: bb.1.not_null
-alignment: 4
+alignment: 16
tracksRegLiveness: true
stack:
- { id: 0, type: spill-slot, offset: -8, size: 8, alignment: 8}
OpenPOWER on IntegriCloud