From: Jozef Kolek Date: Mon, 24 Nov 2014 16:14:10 +0000 (+0000) Subject: [mips][microMIPS] Fix JRADDIUSP instruction X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11bdb8bf336aec60b87b6288a09cf90a232dadbc;p=platform%2Fupstream%2Fllvm.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 llvm-svn: 222658 --- diff --git a/llvm/lib/Target/Mips/MicroMipsInstrInfo.td b/llvm/lib/Target/Mips/MicroMipsInstrInfo.td index 59100a4..774b657 100644 --- a/llvm/lib/Target/Mips/MicroMipsInstrInfo.td +++ b/llvm/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/llvm/test/MC/Mips/micromips-16-bit-instructions.s b/llvm/test/MC/Mips/micromips-16-bit-instructions.s index 176584f..f8095b1 100644 --- a/llvm/test/MC/Mips/micromips-16-bit-instructions.s +++ b/llvm/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]