diff options
author | Justin Hibbits <jrh29@alumni.cwru.edu> | 2017-01-29 04:55:57 +0000 |
---|---|---|
committer | Justin Hibbits <jrh29@alumni.cwru.edu> | 2017-01-29 04:55:57 +0000 |
commit | 10b6147e2303f1e331cdc2ca83a3a8e7c6b97434 (patch) | |
tree | 585d3293c9c93e08ae2d637b92a59a15524cb704 /llvm/test | |
parent | 5fab85408232759b2e81e5878d558bd929276998 (diff) | |
download | bcm5719-llvm-10b6147e2303f1e331cdc2ca83a3a8e7c6b97434.tar.gz bcm5719-llvm-10b6147e2303f1e331cdc2ca83a3a8e7c6b97434.zip |
Add some Book-E instructions to the asm parser and printer.
Summary:
Adds the following instructions:
* mfpmr
* mtpmr
* icblc
* icblq
* icbtls
Fix the scheduling for mtspr on e5500, which uses CFX0, instead of
SFX0/SFX1 as on e500mc.
Addresses PR 31538.
Differential Revision: https://reviews.llvm.org/D29002
llvm-svn: 293417
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt | 9 | ||||
-rw-r--r-- | llvm/test/MC/PowerPC/ppc64-encoding-bookIII.s | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt index 8602a3daeaa..ae8efcf211f 100644 --- a/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt +++ b/llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-bookIII.txt @@ -134,3 +134,12 @@ 0x7c 0x0b 0x66 0x24 # CHECK: tlbsx 11, 12 0x7c 0x0b 0x67 0x24 + +# CHECK: mfpmr 5, 400 +0x7c 0xb0 0x62 0x9c +# CHECK: mtpmr 400, 6 +0x7c 0xd0 0x63 0x9c +# CHECK: icblc 0, 0, 8 +0x7c 0x00 0x41 0xcc +# CHECK: icbtls 0, 0, 9 +0x7c 0x00 0x4b 0xcc diff --git a/llvm/test/MC/PowerPC/ppc64-encoding-bookIII.s b/llvm/test/MC/PowerPC/ppc64-encoding-bookIII.s index d157ea0feba..a9d21b299f5 100644 --- a/llvm/test/MC/PowerPC/ppc64-encoding-bookIII.s +++ b/llvm/test/MC/PowerPC/ppc64-encoding-bookIII.s @@ -197,3 +197,16 @@ # CHECK-BE: tlbsx 11, 12 # encoding: [0x7c,0x0b,0x67,0x24] # CHECK-LE: tlbsx 11, 12 # encoding: [0x24,0x67,0x0b,0x7c] tlbsx %r11, %r12 + +# CHECK-BE: mfpmr 5, 400 # encoding: [0x7c,0xb0,0x62,0x9c] +# CHECK-LE: mfpmr 5, 400 # encoding: [0x9c,0x62,0xb0,0x7c] + mfpmr 5, 400 +# CHECK-BE: mtpmr 400, 6 # encoding: [0x7c,0xd0,0x63,0x9c] +# CHECK-LE: mtpmr 400, 6 # encoding: [0x9c,0x63,0xd0,0x7c] + mtpmr 400, 6 +# CHECK-BE: icblc 0, 0, 8 # encoding: [0x7c,0x00,0x41,0xcc] +# CHECK-LE: icblc 0, 0, 8 # encoding: [0xcc,0x41,0x00,0x7c] + icblc 0, 0, 8 +# CHECK-BE: icbtls 0, 0, 9 # encoding: [0x7c,0x00,0x4b,0xcc] +# CHECK-LE: icbtls 0, 0, 9 # encoding: [0xcc,0x4b,0x00,0x7c] + icbtls 0, 0, 9 |