Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: cfc02314accefe13e63f753ff44cb2477d20525d
      
https://github.com/tianocore/edk2/commit/cfc02314accefe13e63f753ff44cb2477d20525d
  Author: zhubo <[email protected]>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M MdePkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
    A MdePkg/Library/CompilerIntrinsicsLib/LoongArch64/Ashlti3.S

  Log Message:
  -----------
  MdePkg/CompilerIntrinsicsLib: Add LoongArch64 __ashlti3

GCC may emit a call to __ashlti3 for 128-bit left shifts when
compiling code that uses unsigned __int128, such as OpenSSL Curve448
code in CryptoPkg. The LoongArch64 firmware build does not link against
libgcc, so provide the helper from CompilerIntrinsicsLib.

Implement __ashlti3 using the LoongArch64 ABI: the low and high 64-bit
halves are passed in $a0 and $a1, the shift count is passed in $a2, and
the result is returned in $a0 and $a1.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Chao Li <[email protected]>
Signed-off-by: zhubo <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to