From 26651c7a6602626cf13ff3cda13f3ec2401bf790 Mon Sep 17 00:00:00 2001 From: Matheus Almeida Date: Mon, 18 Nov 2013 13:09:54 +0000 Subject: [PATCH] [mips][msa] Update encoding of bnz.v (typo). Note that there's no hardware yet that relies on that encoding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195006 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsMSAInstrInfo.td | 2 +- test/MC/Mips/msa/test_cbranch.s | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/Mips/MipsMSAInstrInfo.td b/lib/Target/Mips/MipsMSAInstrInfo.td index c309fa4b4f7..82c51a6473d 100644 --- a/lib/Target/Mips/MipsMSAInstrInfo.td +++ b/lib/Target/Mips/MipsMSAInstrInfo.td @@ -536,7 +536,7 @@ class BNZ_H_ENC : MSA_CBRANCH_FMT<0b111, 0b01>; 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>; diff --git a/test/MC/Mips/msa/test_cbranch.s b/test/MC/Mips/msa/test_cbranch.s index 84e732e5dc0..2fc65afc1c9 100644 --- a/test/MC/Mips/msa/test_cbranch.s +++ b/test/MC/Mips/msa/test_cbranch.s @@ -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]