[PATCH] D146960: [builtins] Support architectures with 16-bit int in __ashlti3, __ashrti3 and __lshrti3

Karl-Johan Karlsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 06:58:08 PDT 2023


Ka-Ka created this revision.
Ka-Ka added reviewers: aykevl, MaskRay, phosek, efriedma.
Herald added a subscriber: Enna1.
Herald added a project: All.
Ka-Ka requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

The amount to shift should be specified by the int type not a 32-bit integer
type.

This patch change the functions for 128-bit shifts in compiler-rt the same way
as was done for 64-bit shifts in D78662 <https://reviews.llvm.org/D78662>.

The README.txt is updated with the shift builtins signatures from this patch and D78662 <https://reviews.llvm.org/D78662>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146960

Files:
  compiler-rt/lib/builtins/README.txt
  compiler-rt/lib/builtins/ashlti3.c
  compiler-rt/lib/builtins/ashrti3.c
  compiler-rt/lib/builtins/lshrti3.c
  compiler-rt/test/builtins/Unit/ashlti3_test.c
  compiler-rt/test/builtins/Unit/ashrti3_test.c
  compiler-rt/test/builtins/Unit/lshrti3_test.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146960.508636.patch
Type: text/x-patch
Size: 4255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230327/4b9d8618/attachment.bin>


More information about the llvm-commits mailing list