1 ; RUN: llc -verify-machineinstrs -aarch64-enable-atomic-cfg-tidy=0 < %s -mtriple=aarch64-none-eabihf -fast-isel=false | FileCheck %s
4 define i32 @ule_64_max(i64 %p) {
6 ; CHECK-LABEL: ule_64_max:
8 ; CHECK: b.hi [[RET_ZERO:.LBB[0-9]+_[0-9]+]]
9 %cmp = icmp ule i64 %p, 18446744073709551615 ; 0xffffffffffffffff
10 br i1 %cmp, label %ret_one, label %ret_zero
16 ; CHECK: [[RET_ZERO]]:
17 ; CHECK-NEXT: mov w0, wzr
21 define i32 @ugt_64_max(i64 %p) {
23 ; CHECK-LABEL: ugt_64_max:
25 ; CHECK: b.ls [[RET_ZERO:.LBB[0-9]+_[0-9]+]]
26 %cmp = icmp ugt i64 %p, 18446744073709551615 ; 0xffffffffffffffff
27 br i1 %cmp, label %ret_one, label %ret_zero
33 ; CHECK: [[RET_ZERO]]:
34 ; CHECK-NEXT: mov w0, wzr