summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Disassembler/PowerPC
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2016-03-31 15:26:37 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2016-03-31 15:26:37 +0000
commita621a7f9c30b86f7c38487ab2c24dea4b14043b3 (patch)
treeee37a9518f69a47e93183de0c0219c7a24259f0e /llvm/test/MC/Disassembler/PowerPC
parentcf9744367b6e9dc99a07c16894a51e6b9a5e7348 (diff)
downloadbcm5719-llvm-a621a7f9c30b86f7c38487ab2c24dea4b14043b3.tar.gz
bcm5719-llvm-a621a7f9c30b86f7c38487ab2c24dea4b14043b3.zip
[PowerPC] Basic support for P9 atomic loads and stores
This patch corresponds to review: http://reviews.llvm.org/D18032 This patch provides asm implementation for the following instructions: lwat, ldat, stwat, stdat, ldmx, mcrxrx llvm-svn: 265022
Diffstat (limited to 'llvm/test/MC/Disassembler/PowerPC')
-rw-r--r--llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookII.txt12
-rw-r--r--llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt7
2 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookII.txt b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookII.txt
index 480681c67f1..4f62c782fd7 100644
--- a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookII.txt
+++ b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookII.txt
@@ -33,6 +33,12 @@
# CHECK: stdcx. 2, 3, 4
0x7c 0x43 0x21 0xad
+# CHECK: stwat 2, 3, 28
+0x7c 0x43 0xe5 0x8c
+
+# CHECK: stdat 2, 3, 28
+0x7c 0x43 0xe5 0xcc
+
# CHECK: ptesync
0x7c 0x40 0x04 0xac
@@ -72,6 +78,12 @@
# CHECK: ldarx 2, 3, 4, 1
0x7c 0x43 0x20 0xa9
+# CHECK: lwat 2, 3, 28
+0x7c 0x43 0xe4 0x8c
+
+# CHECK: ldat 2, 3, 28
+0x7c 0x43 0xe4 0xcc
+
# CHECK: sync
0x7c 0x00 0x04 0xac
diff --git a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
index 74023340d50..aa2552ddac1 100644
--- a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
+++ b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
@@ -151,6 +151,9 @@
# CHECK: ldux 2, 3, 4
0x7c 0x43 0x20 0x6a
+# CHECK: ldmx 2, 3, 4
+0x7c 0x43 0x22 0x6a
+
# CHECK: stb 2, 128(4)
0x98 0x44 0x00 0x80
@@ -658,7 +661,11 @@
# CHECK: mfocrf 16, 8
0x7e 0x10 0x80 0x26
+# CHECK: mcrxrx 7
+0x7f 0x80 0x04 0x80
+
# CHECK: mtsrin 10, 12
0x7d 0x40 0x61 0xe4
+
# CHECK: mfsrin 10, 12
0x7d 0x40 0x65 0x26
OpenPOWER on IntegriCloud