summaryrefslogtreecommitdiff
path: root/test/MC/PowerPC
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-08 15:20:38 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-08 15:20:38 +0000
commit19d2b78978905cfde0a0d7190c8480219fb2d1c6 (patch)
treeb73fc4dff69770eddbba5bf6ed7056dfaf287e91 /test/MC/PowerPC
parent9e5bbeab1f6f79375c24bfab87c28f5f4c5afea1 (diff)
downloadllvm-19d2b78978905cfde0a0d7190c8480219fb2d1c6.tar.gz
llvm-19d2b78978905cfde0a0d7190c8480219fb2d1c6.tar.bz2
llvm-19d2b78978905cfde0a0d7190c8480219fb2d1c6.tar.xz
[PowerPC] Support time base instructions
This adds support for the old-style time base instructions; while new programs are supposed to use mfspr, the mftb instructions are still supported and in use by existing assembler files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/PowerPC')
-rw-r--r--test/MC/PowerPC/ppc64-encoding-bookII.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-encoding-bookII.s b/test/MC/PowerPC/ppc64-encoding-bookII.s
index 34ed77aa7f..9e68a4b3c2 100644
--- a/test/MC/PowerPC/ppc64-encoding-bookII.s
+++ b/test/MC/PowerPC/ppc64-encoding-bookII.s
@@ -71,3 +71,12 @@
# CHECK: wait 2 # encoding: [0x7c,0x40,0x00,0x7c]
waitimpl
+# Time base instructions
+
+# CHECK: mftb 2, 123 # encoding: [0x7c,0x5b,0x1a,0xe6]
+ mftb 2, 123
+# CHECK: mftb 2, 268 # encoding: [0x7c,0x4c,0x42,0xe6]
+ mftb 2
+# CHECK: mftb 2, 269 # encoding: [0x7c,0x4d,0x42,0xe6]
+ mftbu 2
+