mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
encode rdtsc correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81363c3871
commit
441b223c9b
@ -167,10 +167,6 @@ class Ii32<bits<8> o, Format f, dag ops, string asm, list<dag> pattern>
|
|||||||
def PHI : I<0, Pseudo, (ops variable_ops), "PHINODE">; // PHI node.
|
def PHI : I<0, Pseudo, (ops variable_ops), "PHINODE">; // PHI node.
|
||||||
def NOOP : I<0x90, RawFrm, (ops), "nop">; // nop
|
def NOOP : I<0x90, RawFrm, (ops), "nop">; // nop
|
||||||
|
|
||||||
//FIXME: encode this correctly
|
|
||||||
let Defs = [EAX, EDX] in
|
|
||||||
def RDTSC : I<0, Pseudo, (ops ), "rdtsc">; //in binary, this inst is 0x0f 0x31
|
|
||||||
|
|
||||||
def ADJCALLSTACKDOWN : I<0, Pseudo, (ops i32imm:$amt), "#ADJCALLSTACKDOWN">;
|
def ADJCALLSTACKDOWN : I<0, Pseudo, (ops i32imm:$amt), "#ADJCALLSTACKDOWN">;
|
||||||
def ADJCALLSTACKUP : I<0, Pseudo, (ops i32imm:$amt1, i32imm:$amt2),
|
def ADJCALLSTACKUP : I<0, Pseudo, (ops i32imm:$amt1, i32imm:$amt2),
|
||||||
"#ADJCALLSTACKUP">;
|
"#ADJCALLSTACKUP">;
|
||||||
@ -1609,6 +1605,13 @@ def CMPSDrm : I<0xC2, MRMSrcMem,
|
|||||||
"cmp${cc}sd {$src, $dst|$dst, $src}">, XD;
|
"cmp${cc}sd {$src, $dst|$dst, $src}">, XD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// Miscellaneous Instructions
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
def RDTSC : I<0x31, RawFrm, (ops), "rdtsc">, TB, Imp<[],[EAX,EDX]>;
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Stack-based Floating point support
|
// Stack-based Floating point support
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
Reference in New Issue
Block a user