mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Rename OR4 -> OR. Move some PPC64-specific stuff to the 64-bit file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -22,7 +22,29 @@ def symbolLo64 : Operand<i64> {
|
||||
let PrintMethod = "printSymbolLo";
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// 64-bit transformation functions.
|
||||
//
|
||||
|
||||
def SHL64 : SDNodeXForm<imm, [{
|
||||
// Transformation function: 63 - imm
|
||||
return getI32Imm(63 - N->getValue());
|
||||
}]>;
|
||||
|
||||
def SRL64 : SDNodeXForm<imm, [{
|
||||
// Transformation function: 64 - imm
|
||||
return N->getValue() ? getI32Imm(64 - N->getValue()) : getI32Imm(0);
|
||||
}]>;
|
||||
|
||||
def HI32_48 : SDNodeXForm<imm, [{
|
||||
// Transformation function: shift the immediate value down into the low bits.
|
||||
return getI32Imm((unsigned short)(N->getValue() >> 32));
|
||||
}]>;
|
||||
|
||||
def HI48_64 : SDNodeXForm<imm, [{
|
||||
// Transformation function: shift the immediate value down into the low bits.
|
||||
return getI32Imm((unsigned short)(N->getValue() >> 48));
|
||||
}]>;
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -238,17 +260,6 @@ def FCTIDZ : XForm_26<63, 815, (ops F8RC:$frD, F8RC:$frB),
|
||||
// Instruction Patterns
|
||||
//
|
||||
|
||||
def HI32_48 : SDNodeXForm<imm, [{
|
||||
// Transformation function: shift the immediate value down into the low bits.
|
||||
return getI32Imm((unsigned short)(N->getValue() >> 32));
|
||||
}]>;
|
||||
|
||||
def HI48_64 : SDNodeXForm<imm, [{
|
||||
// Transformation function: shift the immediate value down into the low bits.
|
||||
return getI32Imm((unsigned short)(N->getValue() >> 48));
|
||||
}]>;
|
||||
|
||||
|
||||
// Immediate support.
|
||||
// Handled above:
|
||||
// sext(0x0000_0000_0000_FFFF, i8) -> li imm
|
||||
|
Reference in New Issue
Block a user