Skip to content

Commit

Permalink
[AArch64] use exact checks; NFC
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288245 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rotateright committed Nov 30, 2016
1 parent 398063c commit ec0235a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/CodeGen/AArch64/arm64-icmp-opt.ll
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
; for comparison only
; rdar://10233472

define i32 @t1(i64 %a) nounwind ssp {
entry:
define i32 @t1(i64 %a) {
; CHECK-LABEL: t1:
; CHECK-NOT: movn
; CHECK: cmp x0, #0
; CHECK: cset w0, ge
; CHECK: // BB#0:
; CHECK-NEXT: cmp x0, #0
; CHECK-NEXT: cset w0, ge
; CHECK-NEXT: ret
;
%cmp = icmp sgt i64 %a, -1
%conv = zext i1 %cmp to i32
ret i32 %conv
Expand Down

0 comments on commit ec0235a

Please sign in to comment.