Skip to content

Commit

Permalink
[NFC] Autogenerate test/Transforms/InstCombine/fls.ll
Browse files Browse the repository at this point in the history
  • Loading branch information
deadalnix committed Jan 4, 2023
1 parent be08bb7 commit 8661644
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llvm/test/Transforms/InstCombine/fls.ll
@@ -1,3 +1,4 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s

target triple = "x86_64-unknown-freebsd11.0"
Expand Down Expand Up @@ -30,10 +31,10 @@ define i32 @myflsll() {

define i32 @flsnotconst(i64 %z) {
; CHECK-LABEL: @flsnotconst(
; CHECK-NEXT: [[CTLZ:%.*]] = call i64 @llvm.ctlz.i64(i64 %z, i1 false), !range !0
; CHECK-NEXT: [[CTLZ:%.*]] = call i64 @llvm.ctlz.i64(i64 [[Z:%.*]], i1 false), !range [[RNG0:![0-9]+]]
; CHECK-NEXT: [[TMP1:%.*]] = trunc i64 [[CTLZ]] to i32
; CHECK-NEXT: [[TMP2:%.*]] = sub nsw i32 64, [[TMP1]]
; CHECK-NEXT: ret i32 [[TMP2]]
; CHECK-NEXT: [[GOO:%.*]] = sub nsw i32 64, [[TMP1]]
; CHECK-NEXT: ret i32 [[GOO]]
;
%goo = call i32 @flsl(i64 %z)
ret i32 %goo
Expand Down

0 comments on commit 8661644

Please sign in to comment.