• Home
  • Raw
  • Download

Lines Matching refs:FFS

4 ; RUN: opt < %s -mtriple i386-pc-linux -instcombine -S | FileCheck %s -check-prefix=CHECK-FFS
5 ; RUN: opt -instcombine -mtriple=arm64-apple-ios9.0 -S %s | FileCheck --check-prefix=CHECK-FFS %s
6 ; RUN: opt -instcombine -mtriple=arm64-apple-tvos9.0 -S %s | FileCheck --check-prefix=CHECK-FFS %s
7 …: opt -instcombine -mtriple=thumbv7k-apple-watchos2.0 -S %s | FileCheck --check-prefix=CHECK-FFS %s
8 …N: opt -instcombine -mtriple=x86_64-apple-macosx10.11 -S %s | FileCheck --check-prefix=CHECK-FFS %s
9 ; RUN: opt -instcombine -mtriple=x86_64-freebsd-gnu -S %s | FileCheck --check-prefix=CHECK-FFS %s
25 ; CHECK-FFS-LABEL: @test_simplify2(
28 ; CHECK-FFS-NEXT: ret i32 0
32 ; CHECK-FFS-LABEL: @test_simplify3(
35 ; CHECK-FFS-NEXT: ret i32 0
62 ; CHECK-FFS-LABEL: @test_simplify7(
65 ; CHECK-FFS-NEXT: ret i32 17
69 ; CHECK-FFS-LABEL: @test_simplify8(
72 ; CHECK-FFS-NEXT: ret i32 11
76 ; CHECK-FFS-LABEL: @test_simplify9(
79 ; CHECK-FFS-NEXT: ret i32 17
83 ; CHECK-FFS-LABEL: @test_simplify10(
86 ; CHECK-FFS-NEXT: ret i32 35
90 ; CHECK-FFS-LABEL: @test_simplify11(
93 ; CHECK-FFS-NEXT: ret i32 49
97 ; CHECK-FFS-LABEL: @test_simplify12(
100 ; CHECK-FFS-NEXT: ret i32 61
117 ; CHECK-FFS-LABEL: @test_simplify14(
119 ; CHECK-FFS-NEXT: [[CTTZ:%[a-z0-9]+]] = call i32 @llvm.cttz.i32(i32 %x, i1 true)
120 ; CHECK-FFS-NEXT: [[INC:%[a-z0-9]+]] = add nuw nsw i32 [[CTTZ]], 1
121 ; CHECK-FFS-NEXT: [[CMP:%[a-z0-9]+]] = icmp ne i32 %x, 0
122 ; CHECK-FFS-NEXT: [[RET:%[a-z0-9]+]] = select i1 [[CMP]], i32 [[INC]], i32 0
124 ; CHECK-FFS-NEXT: ret i32 [[RET]]
128 ; CHECK-FFS-LABEL: @test_simplify15(
130 ; CHECK-FFS-NEXT: [[CTTZ:%[a-z0-9]+]] = call i64 @llvm.cttz.i64(i64 %x, i1 true)
131 ; CHECK-FFS-NEXT: [[INC:%[a-z0-9]+]] = add nuw nsw i64 [[CTTZ]], 1
132 ; CHECK-FFS-NEXT: [[TRUNC:%[a-z0-9]+]] = trunc i64 [[INC]] to i32
133 ; CHECK-FFS-NEXT: [[CMP:%[a-z0-9]+]] = icmp ne i64 %x, 0
134 ; CHECK-FFS-NEXT: [[RET:%[a-z0-9]+]] = select i1 [[CMP]], i32 [[TRUNC]], i32 0
136 ; CHECK-FFS-NEXT: ret i32 [[RET]]