[llvm] r194255 - [mips][msa] Update encoding of LDI instruction.
Matheus Almeida
matheus.almeida at imgtec.com
Fri Nov 8 02:43:11 PST 2013
Author: matheusalmeida
Date: Fri Nov 8 04:43:11 2013
New Revision: 194255
URL: http://llvm.org/viewvc/llvm-project?rev=194255&view=rev
Log:
[mips][msa] Update encoding of LDI instruction.
The encoding was updated in MSA r1.07.
Modified:
llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td
llvm/trunk/test/MC/Mips/msa/test_i10.s
Modified: llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td?rev=194255&r1=194254&r2=194255&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/MipsMSAInstrInfo.td Fri Nov 8 04:43:11 2013
@@ -787,10 +787,10 @@ class LD_H_ENC : MSA_MI10_FMT<0b01, 0b
class LD_W_ENC : MSA_MI10_FMT<0b10, 0b1000>;
class LD_D_ENC : MSA_MI10_FMT<0b11, 0b1000>;
-class LDI_B_ENC : MSA_I10_FMT<0b010, 0b00, 0b001100>;
-class LDI_H_ENC : MSA_I10_FMT<0b010, 0b01, 0b001100>;
-class LDI_W_ENC : MSA_I10_FMT<0b010, 0b10, 0b001100>;
-class LDI_D_ENC : MSA_I10_FMT<0b010, 0b11, 0b001100>;
+class LDI_B_ENC : MSA_I10_FMT<0b110, 0b00, 0b000111>;
+class LDI_H_ENC : MSA_I10_FMT<0b110, 0b01, 0b000111>;
+class LDI_W_ENC : MSA_I10_FMT<0b110, 0b10, 0b000111>;
+class LDI_D_ENC : MSA_I10_FMT<0b110, 0b11, 0b000111>;
class LSA_ENC : SPECIAL_LSA_FMT<0b000101>;
Modified: llvm/trunk/test/MC/Mips/msa/test_i10.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/msa/test_i10.s?rev=194255&r1=194254&r2=194255&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/msa/test_i10.s (original)
+++ llvm/trunk/test/MC/Mips/msa/test_i10.s Fri Nov 8 04:43:11 2013
@@ -3,10 +3,10 @@
# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa -arch=mips -filetype=obj -o - | llvm-objdump -d -triple=mipsel-unknown-linux -mattr=+msa -arch=mips - | FileCheck %s -check-prefix=CHECKOBJDUMP
#
-# CHECK: ldi.b $w8, 198 # encoding: [0x79,0x06,0x32,0x0c]
-# CHECK: ldi.h $w20, 313 # encoding: [0x79,0x29,0xcd,0x0c]
-# CHECK: ldi.w $w24, 492 # encoding: [0x79,0x4f,0x66,0x0c]
-# CHECK: ldi.d $w27, -180 # encoding: [0x79,0x7a,0x66,0xcc]
+# CHECK: ldi.b $w8, 198 # encoding: [0x7b,0x06,0x32,0x07]
+# CHECK: ldi.h $w20, 313 # encoding: [0x7b,0x29,0xcd,0x07]
+# CHECK: ldi.w $w24, 492 # encoding: [0x7b,0x4f,0x66,0x07]
+# CHECK: ldi.d $w27, -180 # encoding: [0x7b,0x7a,0x66,0xc7]
# CHECKOBJDUMP: ldi.b $w8, 198
# CHECKOBJDUMP: ldi.h $w20, 313
More information about the llvm-commits
mailing list