diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-08 15:20:38 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-08 15:20:38 +0000 |
commit | 19d2b78978905cfde0a0d7190c8480219fb2d1c6 (patch) | |
tree | b73fc4dff69770eddbba5bf6ed7056dfaf287e91 /test | |
parent | 9e5bbeab1f6f79375c24bfab87c28f5f4c5afea1 (diff) | |
download | external_llvm-19d2b78978905cfde0a0d7190c8480219fb2d1c6.zip external_llvm-19d2b78978905cfde0a0d7190c8480219fb2d1c6.tar.gz external_llvm-19d2b78978905cfde0a0d7190c8480219fb2d1c6.tar.bz2 |
[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')
-rw-r--r-- | test/MC/PowerPC/ppc64-encoding-bookII.s | 9 |
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 34ed77a..9e68a4b 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 + |