summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Disassembler
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2016-04-13 18:51:18 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2016-04-13 18:51:18 +0000
commit87bcae366daf2cd690b2fc2711a7908be40b2bcf (patch)
tree439d911aabd48ea83e4d831609d880aca40213aa /llvm/test/MC/Disassembler
parent9df0720766597376d912d757a5e7a45ac2b816a2 (diff)
downloadbcm5719-llvm-87bcae366daf2cd690b2fc2711a7908be40b2bcf.tar.gz
bcm5719-llvm-87bcae366daf2cd690b2fc2711a7908be40b2bcf.zip
[PowerPC] Basic support for P9 byte comparison and count trailing zero insns
This patch corresponds to review: http://reviews.llvm.org/D17850 This patch implements the following instructions: cmprb, cmpeqb, cnttzw, cnttzw., cnttzd, cnttzd. llvm-svn: 266228
Diffstat (limited to 'llvm/test/MC/Disassembler')
-rw-r--r--llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
index 4406e916bdc..53d788586fe 100644
--- a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
+++ b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
@@ -418,6 +418,24 @@
# CHECK: cmplw 2, 3, 4
0x7d 0x03 0x20 0x40
+# CHECK: cmprb 3, 1, 7, 17
+0x7d 0xa7 0x89 0x80
+
+# CHECK: cmpeqb 3, 7, 17
+0x7d 0x87 0x89 0xc0
+
+# CHECK: cnttzw 7, 17
+0x7e 0x27 0x04 0x34
+
+# CHECK: cnttzw. 7, 17
+0x7e 0x27 0x04 0x35
+
+# CHECK: cnttzd 7, 17
+0x7e 0x27 0x04 0x74
+
+# CHECK: cnttzd. 7, 17
+0x7e 0x27 0x04 0x75
+
# CHECK: twllti 3, 4
0x0c 0x43 0x00 0x04
OpenPOWER on IntegriCloud