mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Add 64-bit to 32-bit trunc pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2ea402541f
commit
bce22b48fe
@ -172,3 +172,8 @@ defm : SetlePats<CPU64Regs, SLT64, SLTu64>;
|
||||
defm : SetgtPats<CPU64Regs, SLT64, SLTu64>;
|
||||
defm : SetgePats<CPU64Regs, SLT64, SLTu64>;
|
||||
defm : SetgeImmPats<CPU64Regs, SLTi64, SLTiu64>;
|
||||
|
||||
// truncate
|
||||
def : Pat<(i32 (trunc CPU64Regs:$src)),
|
||||
(SLL (EXTRACT_SUBREG CPU64Regs:$src, sub_32), 0)>, Requires<[IsN64]>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user