diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-01-10 01:48:17 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-01-10 01:48:17 +0000 |
commit | 8ce28c812bdd11f5bb8d35d84b3ab97a4ad9ffd1 (patch) | |
tree | 862526347d40b77a85794013e2ef6dd533597188 /test | |
parent | 0f09c9f5ac4017f4accda3691832e71ba7158c2c (diff) | |
download | llvm-8ce28c812bdd11f5bb8d35d84b3ab97a4ad9ffd1.tar.gz llvm-8ce28c812bdd11f5bb8d35d84b3ab97a4ad9ffd1.tar.bz2 llvm-8ce28c812bdd11f5bb8d35d84b3ab97a4ad9ffd1.tar.xz |
[Sparc] Add support for parsing jmpl instruction and make indirect call and jmp instructions as aliases to jmpl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Sparc/sparc-ctrl-instructions.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/Sparc/sparc-ctrl-instructions.s b/test/MC/Sparc/sparc-ctrl-instructions.s index acedcb46cc..f713276747 100644 --- a/test/MC/Sparc/sparc-ctrl-instructions.s +++ b/test/MC/Sparc/sparc-ctrl-instructions.s @@ -31,6 +31,19 @@ ! CHECK-NEXT: ! fixup A - offset: 0, value: %lo(sym), kind: fixup_sparc_lo10 jmp %g1+%lo(sym) + ! CHECK: jmpl %g1+%i2, %g2 ! encoding: [0x85,0xc0,0x40,0x1a] + jmpl %g1 + %i2, %g2 + + ! CHECK: jmpl %o1+8, %g2 ! encoding: [0x85,0xc2,0x60,0x08] + jmpl %o1 + 8, %g2 + + ! CHECK: jmpl %g1, %g2 ! encoding: [0x85,0xc0,0x60,0x00] + jmpl %g1, %g2 + + ! CHECK: jmpl %g1+%lo(sym), %g2 ! encoding: [0x85,0xc0,0b011000AA,A] + ! CHECK-NEXT: ! fixup A - offset: 0, value: %lo(sym), kind: fixup_sparc_lo10 + jmpl %g1+%lo(sym), %g2 + ! CHECK: ba .BB0 ! encoding: [0x10,0b10AAAAAA,A,A] ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22 ba .BB0 |