summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt9
-rw-r--r--llvm/test/MC/PowerPC/ppc64-encoding.s12
2 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
index 59a1c4908fe..f235c242fbc 100644
--- a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
+++ b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding.txt
@@ -73,6 +73,15 @@
# CHECK: sc
0x44 0x00 0x00 0x02
+# CHECK: clrbhrb
+0x7c 0x00 0x03 0x5c
+
+# CHECK: mfbhrbe 9, 983
+0x7d 0x3e 0xba 0x5c
+
+# CHECK: rfebb 1
+0x4c 0x00 0x09 0x24
+
# CHECK: lbz 2, 128(4)
0x88 0x44 0x00 0x80
diff --git a/llvm/test/MC/PowerPC/ppc64-encoding.s b/llvm/test/MC/PowerPC/ppc64-encoding.s
index effbc94fb13..4a698adadda 100644
--- a/llvm/test/MC/PowerPC/ppc64-encoding.s
+++ b/llvm/test/MC/PowerPC/ppc64-encoding.s
@@ -112,6 +112,18 @@
# CHECK-LE: sc # encoding: [0x02,0x00,0x00,0x44]
sc
+# Branch history rolling buffer
+
+# CHECK-BE: clrbhrb # encoding: [0x7c,0x00,0x03,0x5c]
+# CHECK-LE: clrbhrb # encoding: [0x5c,0x03,0x00,0x7c]
+ clrbhrb
+# CHECK-BE: mfbhrbe 9, 983 # encoding: [0x7d,0x3e,0xba,0x5c]
+# CHECK-LE: mfbhrbe 9, 983 # encoding: [0x5c,0xba,0x3e,0x7d]
+ mfbhrbe 9, 983
+# CHECK-BE: rfebb 1 # encoding: [0x4c,0x00,0x09,0x24]
+# CHECK-LE: rfebb 1 # encoding: [0x24,0x09,0x00,0x4c]
+ rfebb 1
+
# Fixed-point facility
# Fixed-point load instructions
OpenPOWER on IntegriCloud