diff options
| author | Richard Osborne <richard@xmos.com> | 2011-03-16 21:56:00 +0000 |
|---|---|---|
| committer | Richard Osborne <richard@xmos.com> | 2011-03-16 21:56:00 +0000 |
| commit | c871eff3f51b43bc88583cdbddd25c0f4ddd3e9e (patch) | |
| tree | db7213364551baa1db538d4ac5e00c4ff49b62d0 /llvm/lib | |
| parent | d4bcb4ffc1849128c309bfbccd3978ad67b95dff (diff) | |
| download | bcm5719-llvm-c871eff3f51b43bc88583cdbddd25c0f4ddd3e9e.tar.gz bcm5719-llvm-c871eff3f51b43bc88583cdbddd25c0f4ddd3e9e.zip | |
Add XCore intrinsics for setclk, setrdy.
llvm-svn: 127761
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreInstrInfo.td | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/Target/XCore/XCoreInstrInfo.td b/llvm/lib/Target/XCore/XCoreInstrInfo.td index c56792c7ee0..b147970b238 100644 --- a/llvm/lib/Target/XCore/XCoreInstrInfo.td +++ b/llvm/lib/Target/XCore/XCoreInstrInfo.td @@ -838,7 +838,7 @@ def SETD_2r : _F2R<(outs), (ins GRRegs:$r, GRRegs:$val), [(int_xcore_setd GRRegs:$r, GRRegs:$val)]>; // Two operand long -// TODO setclk, setrdy, setpsc, endin, peek, +// TODO setpsc, endin, peek, // getd, testlcl, tinitlr def BITREV_l2r : _FL2R<(outs GRRegs:$dst), (ins GRRegs:$src), "bitrev $dst, $src", @@ -868,6 +868,14 @@ def SETPS_l2r : _FL2R<(outs), (ins GRRegs:$src1, GRRegs:$src2), "set ps[$src1], $src2", [(int_xcore_setps GRRegs:$src1, GRRegs:$src2)]>; +def SETCLK_l2r : _FL2R<(outs), (ins GRRegs:$src1, GRRegs:$src2), + "setclk res[$src1], $src2", + [(int_xcore_setclk GRRegs:$src1, GRRegs:$src2)]>; + +def SETRDY_l2r : _FL2R<(outs), (ins GRRegs:$src1, GRRegs:$src2), + "setrdy res[$src1], $src2", + [(int_xcore_setrdy GRRegs:$src1, GRRegs:$src2)]>; + // One operand short // TODO edu, eeu, waitet, waitef, tstart, msync, mjoin, clrtp // setdp, setcp, setev, kcall |

