[llvm] r288245 - [AArch64] use exact checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 07:00:43 PST 2016
Author: spatel
Date: Wed Nov 30 09:00:43 2016
New Revision: 288245
URL: http://llvm.org/viewvc/llvm-project?rev=288245&view=rev
Log:
[AArch64] use exact checks; NFC
Modified:
llvm/trunk/test/CodeGen/AArch64/arm64-icmp-opt.ll
Modified: llvm/trunk/test/CodeGen/AArch64/arm64-icmp-opt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/arm64-icmp-opt.ll?rev=288245&r1=288244&r2=288245&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/arm64-icmp-opt.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/arm64-icmp-opt.ll Wed Nov 30 09:00:43 2016
@@ -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
More information about the llvm-commits
mailing list