Home
last modified time | relevance | path

Searched refs:ffs (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dffs-1.ll1 ; Test that the ffs* library call simplifier works correctly.
11 declare i32 @ffs(i32)
15 ; Check ffs(0) -> 0.
21 %ret = call i32 @ffs(i32 0)
49 ; Check ffs(c) -> cttz(c) + 1, where 'c' is a constant.
55 %ret = call i32 @ffs(i32 1)
63 %ret = call i32 @ffs(i32 2048)
71 %ret = call i32 @ffs(i32 65536)
147 ; Check ffs(x) -> x != 0 ? (i32)llvm.cttz(x) + 1 : 0.
157 %ret = call i32 @ffs(i32 %x)
H A Ddisable-simplify-libcalls.ll42 declare i32 @ffs(i32)
260 %ret = call i32 @ffs(i32 %y)
262 ; CHECK: call i32 @ffs
H A Dtrunc.ll1019 %ffs = select i1 %iszero, i32 0, i32 %t1
1020 %cast = trunc i32 %ffs to i16
H A Dtrunc-inseltpoison.ll1019 %ffs = select i1 %iszero, i32 0, i32 %t1
1020 %cast = trunc i32 %ffs to i16
/llvm-project-15.0.7/polly/lib/External/isl/
H A Disl_config_post.h10 #define ffs __builtin_ffs macro
15 #define ffs isl_ffs macro
H A Disl_hash.c52 table->bits = ffs(round_up(4 * (min_size + 1) / 3 - 1)) - 1; in isl_hash_table_init()
H A Disl_map_simplify.c717 ci->bits = ffs(ci->size) - 1; in create_constraint_index()
849 bits = ffs(size) - 1; in remove_duplicate_divs()
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/
H A Dcttz.ll70 %ffs = select i1 %iszero, i32 0, i32 %1
71 ret i32 %ffs
112 %ffs = select i1 %iszero, i64 0, i64 %1
113 ret i64 %ffs
/llvm-project-15.0.7/llvm/test/MC/Disassembler/ARC/
H A Dmisc.txt133 # CHECK: ffs %r0, %r0
136 # CHECK: ffs.f %r0, %r0
139 # CHECK: ffs %r15, %r15
142 # CHECK: ffs.f %r15, %r15
/llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/include/
H A DUtils.h45 inline uint32_t ffs(uint32_t V) { in ffs() function
51 inline uint32_t ffs(uint64_t V) { in ffs() function
/llvm-project-15.0.7/llvm/test/CodeGen/ARC/
H A Dintrinsics.ll19 ; CHECK: ffs.f %r0, %r0
/llvm-project-15.0.7/polly/lib/External/
H A Disl_config.h.cmake8 /* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */
H A DCMakeLists.txt91 int main(void) { (void)ffs(0); return 0; }
106 message(FATAL_ERROR "No ffs implementation found")
/llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/src/
H A DReduction.cpp58 remote_id = utils::ffs(Liveness & lanemask_gt); in gpu_irregular_simd_reduce()
H A DWorkshare.cpp343 uint32_t leader = utils::ffs(active) - 1; in NextIter()
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dbuiltins.c77 P(ffs, (N)); in main()
/llvm-project-15.0.7/llvm/test/Transforms/InferFunctionAttrs/
H A Dno-proto.ll348 ; CHECK: declare void @ffs(...)
349 declare void @ffs(...)
H A Dannotate.ll410 ; CHECK: declare i32 @ffs(i32) [[NOFREE_NOUNWIND_WILLRETURN_WRITEONLY]]
411 declare i32 @ffs(i32)
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.def736 /// int ffs(int i);
737 TLI_DEFINE_ENUM_INTERNAL(ffs)
738 TLI_DEFINE_STRING_INTERNAL("ffs")
/llvm-project-15.0.7/llvm/lib/Target/ARC/
H A DARCInstrInfo.td145 "error.ffs $A, $B",
344 defm FFS : ArcUnaryEXT5Inst<0b010010, "ffs">;
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Dlibc_ubuntu1404_abilist.txt1704 fun:ffs=uninstrumented