summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/PowerPC/ppc64-encoding-vmx.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/PowerPC/ppc64-encoding-vmx.s')
-rw-r--r--llvm/test/MC/PowerPC/ppc64-encoding-vmx.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/PowerPC/ppc64-encoding-vmx.s b/llvm/test/MC/PowerPC/ppc64-encoding-vmx.s
index 7ac4ce9e0d0..16c48a71e42 100644
--- a/llvm/test/MC/PowerPC/ppc64-encoding-vmx.s
+++ b/llvm/test/MC/PowerPC/ppc64-encoding-vmx.s
@@ -933,6 +933,19 @@
# CHECK-LE: vmul10ecuq 2, 3, 4 # encoding: [0x41,0x20,0x43,0x10]
vmul10ecuq 2, 3, 4
+# Vector Absolute Difference
+# CHECK-BE: vabsdub 2, 3, 4 # encoding: [0x10,0x43,0x24,0x03]
+# CHECK-LE: vabsdub 2, 3, 4 # encoding: [0x03,0x24,0x43,0x10]
+ vabsdub 2, 3, 4
+
+# CHECK-BE: vabsduh 2, 3, 4 # encoding: [0x10,0x43,0x24,0x43]
+# CHECK-LE: vabsduh 2, 3, 4 # encoding: [0x43,0x24,0x43,0x10]
+ vabsduh 2, 3, 4
+
+# CHECK-BE: vabsduw 2, 3, 4 # encoding: [0x10,0x43,0x24,0x83]
+# CHECK-LE: vabsduw 2, 3, 4 # encoding: [0x83,0x24,0x43,0x10]
+ vabsduw 2, 3, 4
+
# Decimal Convert From/to National/Zoned/Signed-QWord
# CHECK-BE: bcdcfn. 27, 31, 1 # encoding: [0x13,0x67,0xff,0x81]
# CHECK-LE: bcdcfn. 27, 31, 1 # encoding: [0x81,0xff,0x67,0x13]
OpenPOWER on IntegriCloud