diff options
author | Justin Bogner <mail@justinbogner.com> | 2021-03-02 09:49:15 -0800 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2021-06-08 10:13:38 -0700 |
commit | 2a7e759734982bea1d08642332a92f687266148f (patch) | |
tree | df3e2641863d25bf3e132c172e8dedf5995f4486 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 30bb5dcb0a5cfe933136340318cbff2ba329a8c4 (diff) | |
download | llvm-2a7e759734982bea1d08642332a92f687266148f.zip llvm-2a7e759734982bea1d08642332a92f687266148f.tar.gz llvm-2a7e759734982bea1d08642332a92f687266148f.tar.bz2 |
[GlobalISel] Handle non-multiples of the base type in narrowScalarInsert
When narrowing G_INSERT, handle types that aren't a multiple of the
type we're narrowing to. This comes up if we're narrowing something
like an s96 to fit in 64 bit registers and also for non-byte multiple
packed types if they come up.
This implementation handles these cases by extending the extra bits to
the narrow size and truncating the result back to the destination
size.
Differential Revision: https://reviews.llvm.org/D97791
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions