[llvm] r184244 - ARM: Add optional datatype suffix to NEON mvn asm syntax.
Jim Grosbach
grosbach at apple.com
Tue Jun 18 14:49:22 PDT 2013
Author: grosbach
Date: Tue Jun 18 16:49:21 2013
New Revision: 184244
URL: http://llvm.org/viewvc/llvm-project?rev=184244&view=rev
Log:
ARM: Add optional datatype suffix to NEON mvn asm syntax.
rdar://14194152
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrNEON.td
llvm/trunk/test/MC/ARM/neon-mov-encoding.s
Modified: llvm/trunk/lib/Target/ARM/ARMInstrNEON.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrNEON.td?rev=184244&r1=184243&r2=184244&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrNEON.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrNEON.td Tue Jun 18 16:49:21 2013
@@ -6698,12 +6698,17 @@ def VST4qWB_register_Asm_32 :
(ins VecListFourQ:$list, addrmode6:$addr,
rGPR:$Rm, pred:$p)>;
-// VMOV takes an optional datatype suffix
+// VMOV/VMVN takes an optional datatype suffix
defm : NEONDTAnyInstAlias<"vmov${p}", "$Vd, $Vm",
(VORRd DPR:$Vd, DPR:$Vm, DPR:$Vm, pred:$p)>;
defm : NEONDTAnyInstAlias<"vmov${p}", "$Vd, $Vm",
(VORRq QPR:$Vd, QPR:$Vm, QPR:$Vm, pred:$p)>;
+defm : NEONDTAnyInstAlias<"vmvn${p}", "$Vd, $Vm",
+ (VMVNd DPR:$Vd, DPR:$Vm, pred:$p)>;
+defm : NEONDTAnyInstAlias<"vmvn${p}", "$Vd, $Vm",
+ (VMVNq QPR:$Vd, QPR:$Vm, pred:$p)>;
+
// VCLT (register) is an assembler alias for VCGT w/ the operands reversed.
// D-register versions.
def : NEONInstAlias<"vcle${p}.s8 $Dd, $Dn, $Dm",
Modified: llvm/trunk/test/MC/ARM/neon-mov-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/neon-mov-encoding.s?rev=184244&r1=184243&r2=184244&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/neon-mov-encoding.s (original)
+++ llvm/trunk/test/MC/ARM/neon-mov-encoding.s Tue Jun 18 16:49:21 2013
@@ -128,3 +128,42 @@
@ CHECK: vmov.8 d18[1], r1 @ encoding: [0xb0,0x1b,0x42,0xee]
@ CHECK: vmov.16 d18[1], r1 @ encoding: [0xf0,0x1b,0x02,0xee]
@ CHECK: vmov.32 d18[1], r1 @ encoding: [0x90,0x1b,0x22,0xee]
+
+
+ vmvn.8 d1, d2
+ vmvn.16 d1, d2
+ vmvn.32 d1, d2
+ vmvn.64 d1, d2
+ vmvn.i8 d1, d2
+ vmvn.i16 d1, d2
+ vmvn.i32 d1, d2
+ vmvn.i64 d1, d2
+ vmvn.s8 d1, d2
+ vmvn.s16 d1, d2
+ vmvn.s32 d1, d2
+ vmvn.s64 d1, d2
+ vmvn.u8 d1, d2
+ vmvn.u16 d1, d2
+ vmvn.u32 d1, d2
+ vmvn.u64 d1, d2
+ vmvn.f32 d1, d2
+ vmvn.f64 d1, d2
+
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
+@ CHECK: vmvn d1, d2 @ encoding: [0x82,0x15,0xb0,0xf3]
More information about the llvm-commits
mailing list