diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-07-08 20:32:02 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-07-08 20:32:02 +0000 |
commit | f7e1ae349ce59eab9904cc36a88f520524baf585 (patch) | |
tree | 3f806db39dce2920fd3e497b1298ee7f0320252b /lib/Target/ARM | |
parent | 1f0bb9901f04ac2ad87b091504adc54306b4815c (diff) | |
download | external_llvm-f7e1ae349ce59eab9904cc36a88f520524baf585.zip external_llvm-f7e1ae349ce59eab9904cc36a88f520524baf585.tar.gz external_llvm-f7e1ae349ce59eab9904cc36a88f520524baf585.tar.bz2 |
Implement NEON vst1 instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMInstrNEON.td | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrNEON.td b/lib/Target/ARM/ARMInstrNEON.td index e8d3f58..3fd63f0 100644 --- a/lib/Target/ARM/ARMInstrNEON.td +++ b/lib/Target/ARM/ARMInstrNEON.td @@ -133,6 +133,28 @@ def VLD1q32 : VLD1Q<"vld1.32", v4i32, int_arm_neon_vldi>; def VLD1qf : VLD1Q<"vld1.32", v4f32, int_arm_neon_vldf>; def VLD1q64 : VLD1Q<"vld1.64", v2i64, int_arm_neon_vldi>; +// VST1 : Vector Store (multiple single elements) +class VST1D<string OpcodeStr, ValueType Ty, Intrinsic IntOp> + : NLdSt<(outs), (ins addrmode6:$addr, DPR:$src), + !strconcat(OpcodeStr, "\t${src:dregsingle}, $addr"), + [(IntOp addrmode6:$addr, (Ty DPR:$src), 1)]>; +class VST1Q<string OpcodeStr, ValueType Ty, Intrinsic IntOp> + : NLdSt<(outs), (ins addrmode6:$addr, QPR:$src), + !strconcat(OpcodeStr, "\t${src:dregpair}, $addr"), + [(IntOp addrmode6:$addr, (Ty QPR:$src), 1)]>; + +def VST1d8 : VST1D<"vst1.8", v8i8, int_arm_neon_vsti>; +def VST1d16 : VST1D<"vst1.16", v4i16, int_arm_neon_vsti>; +def VST1d32 : VST1D<"vst1.32", v2i32, int_arm_neon_vsti>; +def VST1df : VST1D<"vst1.32", v2f32, int_arm_neon_vstf>; +def VST1d64 : VST1D<"vst1.64", v1i64, int_arm_neon_vsti>; + +def VST1q8 : VST1Q<"vst1.8", v16i8, int_arm_neon_vsti>; +def VST1q16 : VST1Q<"vst1.16", v8i16, int_arm_neon_vsti>; +def VST1q32 : VST1Q<"vst1.32", v4i32, int_arm_neon_vsti>; +def VST1qf : VST1Q<"vst1.32", v4f32, int_arm_neon_vstf>; +def VST1q64 : VST1Q<"vst1.64", v2i64, int_arm_neon_vsti>; + //===----------------------------------------------------------------------===// // NEON pattern fragments |