[all-commits] [llvm/llvm-project] 70a66c: [compiler-rt][builtins] Add helper functions for u...

Ben Shi via All-commits all-commits at lists.llvm.org
Thu May 5 16:29:50 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70a66c08fc6534c78eb5104b3293a9fa81350da3
  Author: Ben Shi <ben.shi at streamcomputing.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M compiler-rt/lib/builtins/CMakeLists.txt
    A compiler-rt/lib/builtins/avr/divmodhi4.S
    A compiler-rt/lib/builtins/avr/divmodqi4.S
    A compiler-rt/lib/builtins/avr/udivmodhi4.S
    A compiler-rt/lib/builtins/avr/udivmodqi4.S

  Log Message:
  [compiler-rt][builtins] Add helper functions for uint16/sint16/uint8/sint8 div and mod

__udivmodhi4 : uint16 div and mod
__udivmodqi4 : uint8 div and mod
__divmodhi4  : sint16 div and mod
__divmodqi4  : sint8 div and mod

The above helper functions in libgcc have special ABI as described at
https://gcc.gnu.org/wiki/avr-gcc#Exceptions_to_the_Calling_Convention .

Reviewed By: aykevl

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

More information about the All-commits mailing list