summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-02-07 19:48:00 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-02-07 19:48:00 +0000
commit061d1ea5da88ccb6ded3b573e4d7325a6ea83069 (patch)
treeeb14096da98377a56ab6a78e3f93e11ea7d05347 /llvm/test
parent1c822a8929ca696874552f973a59bf49c82e5537 (diff)
downloadbcm5719-llvm-061d1ea5da88ccb6ded3b573e4d7325a6ea83069.tar.gz
bcm5719-llvm-061d1ea5da88ccb6ded3b573e4d7325a6ea83069.zip
[mips] Add definition of JALR instruction which has two register operands. Change the
original JALR instruction with one register operand to be a pseudo-instruction. llvm-svn: 174657
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/Mips/mips-jump-instructions.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips-jump-instructions.s b/llvm/test/MC/Mips/mips-jump-instructions.s
index 58250f306e8..bc2d7203981 100644
--- a/llvm/test/MC/Mips/mips-jump-instructions.s
+++ b/llvm/test/MC/Mips/mips-jump-instructions.s
@@ -56,6 +56,10 @@ end_of_code:
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
# CHECK: jalr $6 # encoding: [0x09,0xf8,0xc0,0x00]
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+# CHECK: jalr $25 # encoding: [0x09,0xf8,0x20,0x03]
+# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
+# CHECK: jalr $10, $11 # encoding: [0x09,0x50,0x60,0x01]
+# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
# CHECK: jr $7 # encoding: [0x08,0x00,0xe0,0x00]
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
# CHECK: jr $7 # encoding: [0x08,0x00,0xe0,0x00]
@@ -67,6 +71,10 @@ end_of_code:
nop
jalr $6
nop
+ jalr $31, $25
+ nop
+ jalr $10, $11
+ nop
jr $7
nop
j $7
OpenPOWER on IntegriCloud