19 lines · plain
1; RUN: llc < %s -mtriple=arm64-eabi | FileCheck %s2 3; Optimize (x > -1) to (x >= 0) etc.4; Optimize (cmp (add / sub), 0): eliminate the subs used to update flag5; for comparison only6; rdar://102334727 8define i32 @t1(i64 %a) {9; CHECK-LABEL: t1:10; CHECK: // %bb.0:11; CHECK-NEXT: lsr x8, x0, #6312; CHECK-NEXT: eor w0, w8, #0x113; CHECK-NEXT: ret14;15 %cmp = icmp sgt i64 %a, -116 %conv = zext i1 %cmp to i3217 ret i32 %conv18}19