[all-commits] [llvm/llvm-project] 3834b0: [builtins] Support architectures with 16-bit int i...

Karl-Johan Karlsson via All-commits all-commits at lists.llvm.org
Thu Mar 30 22:09:59 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3834b0467ddc97ce0595e98eab805cd306ba4069
  Author: Karl-Johan Karlsson <karl-johan.karlsson at ericsson.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

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

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

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

This patch change the functions for 128-bit shifts in compiler-rt the same way
as was done for 64-bit shifts in D78662.

The README.txt is updated with the shift builtins signatures from this patch and D78662.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D146960

More information about the All-commits mailing list