diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-12-09 23:34:09 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-12-09 23:34:09 +0000 |
commit | 21d7fb814adcedc7b2f156e003d2083ad1d8ac6a (patch) | |
tree | f5e6f3dd0ba3fd3193572e70a58b5c3427af6b0e /lib/Target/ARM/ARMInstrVFP.td | |
parent | 52ee230f6e06c4ec38b1953e1182d22431b88ddb (diff) |
ARM add some pre-UAL VFP mnemonics for convenience when porting old code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrVFP.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrVFP.td | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMInstrVFP.td b/lib/Target/ARM/ARMInstrVFP.td index 828b9a2bb3..9839ccd770 100644 --- a/lib/Target/ARM/ARMInstrVFP.td +++ b/lib/Target/ARM/ARMInstrVFP.td @@ -1161,15 +1161,26 @@ def FCONSTS : VFPAI<(outs SPR:$Sd), (ins vfp_f32imm:$imm), // Assembler aliases. // +class VFP2MnemonicAlias<string src, string dst> : MnemonicAlias<src, dst>, + Requires<[HasVFP2]>; // A few mnemnoic aliases for pre-unifixed syntax. We don't guarantee to // support them all, but supporting at least some of the basics is // good to be friendly. -def : MnemonicAlias<"flds", "vldr">; -def : MnemonicAlias<"fldd", "vldr">; -def : MnemonicAlias<"fmrs", "vmov">; -def : MnemonicAlias<"fmsr", "vmov">; -def : MnemonicAlias<"fsqrts", "vsqrt">; -def : MnemonicAlias<"fsqrtd", "vsqrt">; +def : VFP2MnemonicAlias<"flds", "vldr">; +def : VFP2MnemonicAlias<"fldd", "vldr">; +def : VFP2MnemonicAlias<"fmrs", "vmov">; +def : VFP2MnemonicAlias<"fmsr", "vmov">; +def : VFP2MnemonicAlias<"fsqrts", "vsqrt">; +def : VFP2MnemonicAlias<"fsqrtd", "vsqrt">; +def : VFP2MnemonicAlias<"fadds", "vadd.f32">; +def : VFP2MnemonicAlias<"faddd", "vadd.f64">; +def : VFP2MnemonicAlias<"fmrdd", "vmov">; +def : VFP2MnemonicAlias<"fmrds", "vmov">; +def : VFP2MnemonicAlias<"fmrrd", "vmov">; +def : VFP2MnemonicAlias<"fmdrr", "vmov">; +def : VFP2MnemonicAlias<"fmuld", "vmul.f64">; +def : VFP2MnemonicAlias<"fnegs", "vneg.f32">; +def : VFP2MnemonicAlias<"fnegd", "vneg.f64">; def : VFP2InstAlias<"fmstat${p}", (FMSTAT pred:$p)>; |