Skip to content

Commit

Permalink
tests: avoid problems on 32 bit machines
Browse files Browse the repository at this point in the history
  • Loading branch information
durin42 committed Mar 1, 2022
1 parent 26c5d21 commit 6fbef7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/codegen/dst-vtable-align-nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn eliminates_runtime_check_when_align_1(
x: &Struct<WrapperWithAlign1<dyn Trait>>
) -> &WrapperWithAlign1<dyn Trait> {
// CHECK: load [[USIZE:i[0-9]+]], {{.+}} !range [[RANGE_META:![0-9]+]]
// CHECK-NOT: tail call i64 @llvm.umax.i64
// CHECK-NOT: llvm.umax
// CHECK-NOT: icmp
// CHECK-NOT: select
// CHECK: ret
Expand All @@ -37,7 +37,7 @@ pub fn does_not_eliminate_runtime_check_when_align_2(
x: &Struct<WrapperWithAlign2<dyn Trait>>
) -> &WrapperWithAlign2<dyn Trait> {
// CHECK: [[X0:%[0-9]+]] = load [[USIZE]], {{.+}} !range [[RANGE_META]]
// CHECK: {{icmp|llvm.umax.i64}}
// CHECK: {{icmp|llvm.umax}}
// CHECK: ret
&x.dst
}
Expand Down

0 comments on commit 6fbef7f

Please sign in to comment.