Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPWBS-1401] Truncate the len argument to memory intrinsics to 32-bits.
LLVM and clang use hard-coded types when creating calls to memory intrinsics in cirtain situations. In some cases, the type is hard-coded to i64, which is passed in an extended register on TriCore. When lowering the intrinsic to the corresponding C library function, this results in an ABI mismatch which breaks at runtime. For now, we truncate the len argument to 32-bits to work around this problem.
- Loading branch information
1 parent
109ce0a
commit 3c6aa40
Showing
2 changed files
with
205 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters