[llvm] r195006 - [mips][msa] Update encoding of bnz.v (typo).

Matheus Almeida matheus.almeida at imgtec.com
Mon Nov 18 05:09:54 PST 2013


Author: matheusalmeida
Date: Mon Nov 18 07:09:54 2013
New Revision: 195006

URL: http://llvm.org/viewvc/llvm-project?rev=195006&view=rev
Log:
[mips][msa] Update encoding of bnz.v (typo).

Note that there's no hardware yet that relies on that encoding.


Modified:
    llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td
    llvm/trunk/test/MC/Mips/msa/test_cbranch.s

Modified: llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td?rev=195006&r1=195005&r2=195006&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td Mon Nov 18 07:09:54 2013
@@ -536,7 +536,7 @@ class BNZ_H_ENC : MSA_CBRANCH_FMT<0b111,
 class BNZ_W_ENC : MSA_CBRANCH_FMT<0b111, 0b10>;
 class BNZ_D_ENC : MSA_CBRANCH_FMT<0b111, 0b11>;
 
-class BNZ_V_ENC : MSA_CBRANCH_V_FMT<0b01000>;
+class BNZ_V_ENC : MSA_CBRANCH_V_FMT<0b01111>;
 
 class BSEL_V_ENC : MSA_VEC_FMT<0b00110, 0b011110>;
 

Modified: llvm/trunk/test/MC/Mips/msa/test_cbranch.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/msa/test_cbranch.s?rev=195006&r1=195005&r2=195006&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/msa/test_cbranch.s (original)
+++ llvm/trunk/test/MC/Mips/msa/test_cbranch.s Mon Nov 18 07:09:54 2013
@@ -20,9 +20,9 @@
                                         #   fixup A - offset: 0, value: SYMBOL3, kind: fixup_Mips_PC16
 #CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
 
-#CHECK:      bnz.v        $w0, 4        # encoding: [0x45,0x00,0x00,0x01]
+#CHECK:      bnz.v        $w0, 4        # encoding: [0x45,0xe0,0x00,0x01]
 #CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
-#CHECK:      bnz.v        $w0, SYMBOL0  # encoding: [0x45'A',A,0x00,0x00]
+#CHECK:      bnz.v        $w0, SYMBOL0  # encoding: [0x45'A',0xe0'A',0x00,0x00]
                                         #   fixup A - offset: 0, value: SYMBOL0, kind: fixup_Mips_PC16
 #CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
 





More information about the llvm-commits mailing list