diff options
| author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-05-14 19:35:45 +0000 |
|---|---|---|
| committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-05-14 19:35:45 +0000 |
| commit | 5bbdb190412a55436b808cfa59820b1e6cf08db0 (patch) | |
| tree | 8c4f94018139abcf37477feb075de9ee5d7bc148 /lib/Target/PowerPC/PPCInstrFormats.td | |
| parent | 13a3cf192887233fb9452ec5b7f841e4652c33c7 (diff) | |
| download | external_llvm-5bbdb190412a55436b808cfa59820b1e6cf08db0.zip external_llvm-5bbdb190412a55436b808cfa59820b1e6cf08db0.tar.gz external_llvm-5bbdb190412a55436b808cfa59820b1e6cf08db0.tar.bz2 | |
Implement the PowerPC system call (sc) instruction.
Instruction added at request of Roman Divacky. Tested via asm-parser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrFormats.td')
| -rw-r--r-- | lib/Target/PowerPC/PPCInstrFormats.td | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td index b6f4e85..a244058 100644 --- a/lib/Target/PowerPC/PPCInstrFormats.td +++ b/lib/Target/PowerPC/PPCInstrFormats.td @@ -145,6 +145,19 @@ class BForm_2<bits<6> opcode, bits<5> bo, bits<5> bi, bit aa, bit lk, let Inst{31} = lk; } +// 1.7.3 SC-Form +class SCForm<bits<6> opcode, bits<1> xo, + dag OOL, dag IOL, string asmstr, InstrItinClass itin, + list<dag> pattern> + : I<opcode, OOL, IOL, asmstr, itin> { + bits<7> LEV; + + let Pattern = pattern; + + let Inst{20-26} = LEV; + let Inst{30} = xo; +} + // 1.7.4 D-Form class DForm_base<bits<6> opcode, dag OOL, dag IOL, string asmstr, InstrItinClass itin, list<dag> pattern> |
