diff options
author | Richard Osborne <richard@xmos.com> | 2011-07-19 12:50:25 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-07-19 12:50:25 +0000 |
commit | dee3dd9129e1bb5283a7e7f79c3c20b8b81cf13d (patch) | |
tree | d9e6a6d4da6f17bd78952dc93c321217c343143f /lib/Target/XCore | |
parent | bb2518c71671cf7962f8b5e9ab0f0eec9784a2c1 (diff) | |
download | external_llvm-dee3dd9129e1bb5283a7e7f79c3c20b8b81cf13d.zip external_llvm-dee3dd9129e1bb5283a7e7f79c3c20b8b81cf13d.tar.gz external_llvm-dee3dd9129e1bb5283a7e7f79c3c20b8b81cf13d.tar.bz2 |
Add intrinsics for the peek and endin instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore')
-rw-r--r-- | lib/Target/XCore/XCoreInstrInfo.td | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreInstrInfo.td b/lib/Target/XCore/XCoreInstrInfo.td index 55c7527..c615d9f 100644 --- a/lib/Target/XCore/XCoreInstrInfo.td +++ b/lib/Target/XCore/XCoreInstrInfo.td @@ -871,7 +871,6 @@ def INITDP_2r : _F2R<(outs), (ins GRRegs:$t, GRRegs:$src), [(int_xcore_initdp GRRegs:$t, GRRegs:$src)]>; // Two operand long -// TODO endin, peek, // getd, testlcl def BITREV_l2r : _FL2R<(outs GRRegs:$dst), (ins GRRegs:$src), "bitrev $dst, $src", @@ -917,6 +916,14 @@ def SETPSC_l2r : _FL2R<(outs), (ins GRRegs:$src1, GRRegs:$src2), "setpsc res[$src1], $src2", [(int_xcore_setpsc GRRegs:$src1, GRRegs:$src2)]>; +def PEEK_l2r : _FL2R<(outs GRRegs:$dst), (ins GRRegs:$src), + "peek $dst, res[$src]", + [(set GRRegs:$dst, (int_xcore_peek GRRegs:$src))]>; + +def ENDIN_l2r : _FL2R<(outs GRRegs:$dst), (ins GRRegs:$src), + "endin $dst, res[$src]", + [(set GRRegs:$dst, (int_xcore_endin GRRegs:$src))]>; + // One operand short // TODO edu, eeu, waitet, waitef, tstart, clrtp // setdp, setcp, setev, kcall |