[PATCH] D78663: [builtins] Add 32-bit shift builtins
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 12:30:55 PDT 2020
aykevl created this revision.
aykevl added reviewers: MaskRay, kamleshbhalui, luismarques.
Herald added subscribers: Sanitizers, mgorny, dylanmckay.
Herald added a project: Sanitizers.
This patch adds support for the following 32-bit shift builtins:
- `__ashlsi3`
- `__ashrsi3`
- `__lshrsi3`
They are needed on architectures that do not have a 32-bit shift instruction, such as AVR.
---
Note: this patch depends on D78662 <https://reviews.llvm.org/D78662>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78663
Files:
compiler-rt/lib/builtins/CMakeLists.txt
compiler-rt/lib/builtins/ashlsi3.c
compiler-rt/lib/builtins/ashrsi3.c
compiler-rt/lib/builtins/int_types.h
compiler-rt/lib/builtins/lshrsi3.c
compiler-rt/test/builtins/Unit/ashlsi3_test.c
compiler-rt/test/builtins/Unit/ashrsi3_test.c
compiler-rt/test/builtins/Unit/lshrsi3_test.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78663.259354.patch
Type: text/x-patch
Size: 15498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/35fa83cb/attachment.bin>
More information about the llvm-commits
mailing list