diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-11-18 13:09:54 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-11-18 13:09:54 +0000 |
commit | 26651c7a6602626cf13ff3cda13f3ec2401bf790 (patch) | |
tree | b0aa1f19ccfc19bb2fd3bb9b4309f7d22531f3b8 | |
parent | 95adf91f29980e374bf094e15bc3f2764ef9baf4 (diff) | |
download | external_llvm-26651c7a6602626cf13ff3cda13f3ec2401bf790.zip external_llvm-26651c7a6602626cf13ff3cda13f3ec2401bf790.tar.gz external_llvm-26651c7a6602626cf13ff3cda13f3ec2401bf790.tar.bz2 |
[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
-rw-r--r-- | lib/Target/Mips/MipsMSAInstrInfo.td | 2 | ||||
-rw-r--r-- | 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 c309fa4..82c51a6 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 84e732e..2fc65af 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] |