diff options
| author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-01 16:37:52 +0000 |
|---|---|---|
| committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-01 16:37:52 +0000 |
| commit | af679a22923d2b61e3bfb6721bd562b99546bfad (patch) | |
| tree | 8fafcd54d2cec2cc1e2eafc00c7409ee50ab313b /lib/Target/PowerPC/PPCInstrFormats.td | |
| parent | d59fc0af0a3ebd13c7004511e64e3233dfe87b17 (diff) | |
| download | external_llvm-af679a22923d2b61e3bfb6721bd562b99546bfad.zip external_llvm-af679a22923d2b61e3bfb6721bd562b99546bfad.tar.gz external_llvm-af679a22923d2b61e3bfb6721bd562b99546bfad.tar.bz2 | |
[PowerPC] Add variants of "sync" instruction
This adds support for the "sync $L" instruction with operand,
and provides aliases for "lwsync" and "ptesync".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrFormats.td')
| -rw-r--r-- | lib/Target/PowerPC/PPCInstrFormats.td | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td index b316fa6..9f5435e 100644 --- a/lib/Target/PowerPC/PPCInstrFormats.td +++ b/lib/Target/PowerPC/PPCInstrFormats.td @@ -473,8 +473,11 @@ class XForm_24<bits<6> opcode, bits<10> xo, dag OOL, dag IOL, string asmstr, class XForm_24_sync<bits<6> opcode, bits<10> xo, dag OOL, dag IOL, string asmstr, InstrItinClass itin, list<dag> pattern> : I<opcode, OOL, IOL, asmstr, itin> { + bits<2> L; + let Pattern = pattern; - let Inst{6-10} = 0; + let Inst{6-8} = 0; + let Inst{9-10} = L; let Inst{11-15} = 0; let Inst{16-20} = 0; let Inst{21-30} = xo; |
