This is an archive of the discontinued LLVM Phabricator instance.

[Clang][RISCV] Add test cases for intrinsics clz/ctz codegen when has extension zbb/xtheadbb
AbandonedPublic

Authored by Yunzezhu on Jun 6 2023, 2:28 AM.

Details

Summary

Add test cases for intrinsics clz/ctz when has extension zbb/xtheadbb to demonstrate future changes in codegen.

This patch helps demonstrate codegen changes made in https://reviews.llvm.org/D151867 .

Diff Detail

Event Timeline

Yunzezhu created this revision.Jun 6 2023, 2:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2023, 2:28 AM
Yunzezhu requested review of this revision.Jun 6 2023, 2:28 AM
craig.topper added inline comments.Jun 6 2023, 12:21 PM
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-xtheadbb.c
52

Should the return type be int to match __builtin_clzl?

clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbb.c
51

Should the return type be int to match __builtin_clzl

Yunzezhu abandoned this revision.Jun 7 2023, 8:02 PM

Abandon this revision because https://reviews.llvm.org/D151867 is abandoned.