forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sparc] Add support to disassemble sparc memory instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202575 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
4 changed files
with
296 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# RUN: llvm-mc --disassemble %s -triple=sparcv9-unknown-linux | FileCheck %s | ||
|
||
# CHECK: ldsb [%i0+%l6], %o2 | ||
0xd4 0x4e 0x00 0x16 | ||
|
||
# CHECK: ldsb [%i0+32], %o2 | ||
0xd4 0x4e 0x20 0x20 | ||
|
||
# CHECK: ldsb [%g1], %o4 | ||
0xd8 0x48 0x60 0x00 | ||
|
||
# CHECK: ldsh [%i0+%l6], %o2 | ||
0xd4 0x56 0x00 0x16 | ||
|
||
# CHECK: ldsh [%i0+32], %o2 | ||
0xd4 0x56 0x20 0x20 | ||
|
||
# CHECK: ldsh [%g1], %o4 | ||
0xd8 0x50 0x60 0x00 | ||
|
||
# CHECK: ldub [%i0+%l6], %o2 | ||
0xd4 0x0e 0x00 0x16 | ||
|
||
# CHECK: ldub [%i0+32], %o2 | ||
0xd4 0x0e 0x20 0x20 | ||
|
||
# CHECK: ldub [%g1], %o2 | ||
0xd4 0x08 0x60 0x00 | ||
|
||
# CHECK: lduh [%i0+%l6], %o2 | ||
0xd4 0x16 0x00 0x16 | ||
|
||
# CHECK: lduh [%i0+32], %o2 | ||
0xd4 0x16 0x20 0x20 | ||
|
||
# CHECK: lduh [%g1], %o2 | ||
0xd4 0x10 0x60 0x00 | ||
|
||
# CHECK: ld [%i0+%l6], %o2 | ||
0xd4 0x06 0x00 0x16 | ||
|
||
# CHECK: ld [%i0+32], %o2 | ||
0xd4 0x06 0x20 0x20 | ||
|
||
# CHECK: ld [%g1], %o2 | ||
0xd4 0x00 0x60 0x00 | ||
|
||
# CHECK: ld [%i0+%l6], %f2 | ||
0xc5 0x06 0x00 0x16 | ||
|
||
# CHECK: ld [%i0+32], %f2 | ||
0xc5 0x06 0x20 0x20 | ||
|
||
# CHECK: ld [%g1], %f2 | ||
0xc5 0x00 0x60 0x00 | ||
|
||
# CHECK: ldd [%i0+%l6], %f2 | ||
0xc5 0x1e 0x00 0x16 | ||
|
||
# CHECK: ldd [%i0+32], %f2 | ||
0xc5 0x1e 0x20 0x20 | ||
|
||
# CHECK: ldd [%g1], %f2 | ||
0xc5 0x18 0x60 0x00 | ||
|
||
# CHECK: ldq [%i0+%l6], %f4 | ||
0xc9 0x16 0x00 0x16 | ||
|
||
# CHECK: ldq [%i0+32], %f4 | ||
0xc9 0x16 0x20 0x20 | ||
|
||
# CHECK: ldq [%g1], %f4 | ||
0xc9 0x10 0x60 0x00 | ||
|
||
# CHECK: ldx [%i0+%l6], %o2 | ||
0xd4 0x5e 0x00 0x16 | ||
|
||
# CHECK: ldx [%i0+32], %o2 | ||
0xd4 0x5e 0x20 0x20 | ||
|
||
# CHECK: ldx [%g1], %o2 | ||
0xd4 0x58 0x60 0x00 | ||
|
||
# CHECK: ldsw [%i0+%l6], %o2 | ||
0xd4 0x46 0x00 0x16 | ||
|
||
# CHECK: ldsw [%i0+32], %o2 | ||
0xd4 0x46 0x20 0x20 | ||
|
||
# CHECK: ldsw [%g1], %o2 | ||
0xd4 0x40 0x60 0x00 | ||
|
||
# CHECK: stb %o2, [%i0+%l6] | ||
0xd4 0x2e 0x00 0x16 | ||
|
||
# CHECK: stb %o2, [%i0+32] | ||
0xd4 0x2e 0x20 0x20 | ||
|
||
# CHECK: stb %o2, [%g1] | ||
0xd4 0x28 0x60 0x00 | ||
|
||
# CHECK: sth %o2, [%i0+%l6] | ||
0xd4 0x36 0x00 0x16 | ||
|
||
# CHECK: sth %o2, [%i0+32] | ||
0xd4 0x36 0x20 0x20 | ||
|
||
# CHECK: sth %o2, [%g1] | ||
0xd4 0x30 0x60 0x00 | ||
|
||
# CHECK: st %o2, [%i0+%l6] | ||
0xd4 0x26 0x00 0x16 | ||
|
||
# CHECK: st %o2, [%i0+32] | ||
0xd4 0x26 0x20 0x20 | ||
|
||
# CHECK: st %o2, [%g1] | ||
0xd4 0x20 0x60 0x00 | ||
|
||
# CHECK: st %f2, [%i0+%l6] | ||
0xc5 0x26 0x00 0x16 | ||
|
||
# CHECK: st %f2, [%i0+32] | ||
0xc5 0x26 0x20 0x20 | ||
|
||
# CHECK: st %f2, [%g1] | ||
0xc5 0x20 0x60 0x00 | ||
|
||
# CHECK: std %f2, [%i0+%l6] | ||
0xc5 0x3e 0x00 0x16 | ||
|
||
# CHECK: std %f2, [%i0+32] | ||
0xc5 0x3e 0x20 0x20 | ||
|
||
# CHECK: std %f2, [%g1] | ||
0xc5 0x38 0x60 0x00 | ||
|
||
# CHECK: stq %f4, [%i0+%l6] | ||
0xc9 0x36 0x00 0x16 | ||
|
||
# CHECK: stq %f4, [%i0+32] | ||
0xc9 0x36 0x20 0x20 | ||
|
||
# CHECK: stq %f4, [%g1] | ||
0xc9 0x30 0x60 0x00 | ||
|
||
# CHECK: stx %o2, [%i0+%l6] | ||
0xd4 0x76 0x00 0x16 | ||
|
||
# CHECK: stx %o2, [%i0+32] | ||
0xd4 0x76 0x20 0x20 | ||
|
||
# CHECK: stx %o2, [%g1] | ||
0xd4 0x70 0x60 0x00 |