From: Jozef Kolek Date: Mon, 24 Nov 2014 16:14:10 +0000 (+0000) Subject: [mips][microMIPS] Fix JRADDIUSP instruction X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c19526770e282d886e062e84957e611308702da9;p=oota-llvm.git [mips][microMIPS] Fix JRADDIUSP instruction Fix JRADDIUSP instruction, remove delay slot flag because this instruction doesn't have delay slot. Differential Revision: http://reviews.llvm.org/D6365 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222658 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MicroMipsInstrInfo.td b/lib/Target/Mips/MicroMipsInstrInfo.td index 59100a402e9..774b6575d7d 100644 --- a/lib/Target/Mips/MicroMipsInstrInfo.td +++ b/lib/Target/Mips/MicroMipsInstrInfo.td @@ -265,7 +265,6 @@ class JumpRAddiuStackMM16 : [], IIBranch, FrmR> { let isTerminator = 1; let isBarrier = 1; - let hasDelaySlot = 1; let isBranch = 1; let isIndirectBranch = 1; } diff --git a/test/MC/Mips/micromips-16-bit-instructions.s b/test/MC/Mips/micromips-16-bit-instructions.s index 176584fb2dd..f8095b1b03b 100644 --- a/test/MC/Mips/micromips-16-bit-instructions.s +++ b/test/MC/Mips/micromips-16-bit-instructions.s @@ -38,8 +38,7 @@ # CHECK-EL: jrc $9 # encoding: [0xa9,0x45] # CHECK-NEXT: jalr $9 # encoding: [0xc9,0x45] # CHECK-EL: jraddiusp 20 # encoding: [0x05,0x47] -# CHECK-EL: nop # encoding: [0x00,0x00,0x00,0x00] -# CHECK-EL: jalrs16 $9 # encoding: [0xe9,0x45] +# CHECK-NEXT: jalrs16 $9 # encoding: [0xe9,0x45] # CHECK-EL: move $zero, $zero # encoding: [0x00,0x0c] # CHECK-EL: jr16 $9 # encoding: [0x89,0x45] # CHECK-EL: nop # encoding: [0x00,0x00,0x00,0x00] @@ -75,8 +74,7 @@ # CHECK-EB: jrc $9 # encoding: [0x45,0xa9] # CHECK-NEXT: jalr $9 # encoding: [0x45,0xc9] # CHECK-EB: jraddiusp 20 # encoding: [0x47,0x05] -# CHECK-EB: nop # encoding: [0x00,0x00,0x00,0x00] -# CHECK-EB: jalrs16 $9 # encoding: [0x45,0xe9] +# CHECK-NEXT: jalrs16 $9 # encoding: [0x45,0xe9] # CHECK-EB: move $zero, $zero # encoding: [0x0c,0x00] # CHECK-EB: jr16 $9 # encoding: [0x45,0x89] # CHECK-EB: nop # encoding: [0x00,0x00,0x00,0x00]