diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2012-08-07 17:04:20 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2012-08-07 17:04:20 +0000 |
| commit | 895a5f5d12576d5b5af2282c4be164dd939b103b (patch) | |
| tree | 2e240a9a7f1a91c1c60152e39790e876f8165bc6 /llvm/lib/Target/PowerPC | |
| parent | a7c9f883e609da7bdd1f11504fa12c2cc3b196b3 (diff) | |
| download | bcm5719-llvm-895a5f5d12576d5b5af2282c4be164dd939b103b.tar.gz bcm5719-llvm-895a5f5d12576d5b5af2282c4be164dd939b103b.zip | |
Add a comment about mftb vs. mfspr on PPC.
Thanks to Alex Rosenberg for the suggestion.
llvm-svn: 161428
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstr64Bit.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td b/llvm/lib/Target/PowerPC/PPCInstr64Bit.td index 5df735aaba7..39778a5dc1e 100644 --- a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/llvm/lib/Target/PowerPC/PPCInstr64Bit.td @@ -269,6 +269,10 @@ let Pattern = [(set G8RC:$rT, readcyclecounter)] in def MFTB8 : XFXForm_1_ext<31, 339, 268, (outs G8RC:$rT), (ins), "mfspr $rT, 268", SprMFTB>, PPC970_DGroup_First, PPC970_Unit_FXU; +// Note that encoding mftb using mfspr is now the preferred form, +// and has been since at least ISA v2.03. The mftb instruction has +// now been phased out. Using mfspr, however, is known not to work on +// the POWER3. let Defs = [X1], Uses = [X1] in def DYNALLOC8 : Pseudo<(outs G8RC:$result), (ins G8RC:$negsize, memri:$fpsi),"", |

