mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Implement 64 bit immediates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
759205d1ac
commit
57b04e6fa7
@ -703,6 +703,10 @@ def : Pat<(i64 (anyext GR32:$src)),
|
||||
|
||||
// FIXME: use add/sub tricks with 32678/-32768
|
||||
|
||||
// Arbitrary immediate support. Implement in terms of LLIHF/OILF.
|
||||
def : Pat<(i64 imm:$imm),
|
||||
(OR64rilo32 (MOV64rihi32 (HI32 imm:$imm)), (LO32 imm:$imm))>;
|
||||
|
||||
// trunc patterns
|
||||
def : Pat<(i32 (trunc GR64:$src)),
|
||||
(EXTRACT_SUBREG GR64:$src, subreg_32bit)>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user