diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-09-30 17:52:33 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-09-30 17:52:33 +0000 |
commit | 70f556140fca702ef6062b0c46b032908b9ae2a5 (patch) | |
tree | 9f26aac4d6815c277f04b149ab580ab049810e6c /test/MC/Mips | |
parent | 2641f5e412ba84255d8b97f5098e3f57bf990ff1 (diff) | |
download | external_llvm-70f556140fca702ef6062b0c46b032908b9ae2a5.zip external_llvm-70f556140fca702ef6062b0c46b032908b9ae2a5.tar.gz external_llvm-70f556140fca702ef6062b0c46b032908b9ae2a5.tar.bz2 |
[mips][msa] Direct Object Emission for 2R instructions.
This patch adds Direct Object Emission support for 2R instructions: nloc.{b,h,w}, nlzc.{b,h,w}, pcnt.{b,w,d}.
Patch by Matheus Almeida
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-rw-r--r-- | test/MC/Mips/msa/test_2r.s | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/test_2r.s b/test/MC/Mips/msa/test_2r.s index 5bdaf90..67a2b6f 100644 --- a/test/MC/Mips/msa/test_2r.s +++ b/test/MC/Mips/msa/test_2r.s @@ -5,11 +5,47 @@ # CHECK: fill.b $w30, $9 # encoding: [0x7b,0x00,0x4f,0x9e] # CHECK: fill.h $w31, $23 # encoding: [0x7b,0x01,0xbf,0xde] # CHECK: fill.w $w16, $24 # encoding: [0x7b,0x02,0xc4,0x1e] +# CHECK: nloc.b $w21, $w0 # encoding: [0x7b,0x08,0x05,0x5e] +# CHECK: nloc.h $w18, $w31 # encoding: [0x7b,0x09,0xfc,0x9e] +# CHECK: nloc.w $w2, $w23 # encoding: [0x7b,0x0a,0xb8,0x9e] +# CHECK: nloc.d $w4, $w10 # encoding: [0x7b,0x0b,0x51,0x1e] +# CHECK: nlzc.b $w31, $w2 # encoding: [0x7b,0x0c,0x17,0xde] +# CHECK: nlzc.h $w27, $w22 # encoding: [0x7b,0x0d,0xb6,0xde] +# CHECK: nlzc.w $w10, $w29 # encoding: [0x7b,0x0e,0xea,0x9e] +# CHECK: nlzc.d $w25, $w9 # encoding: [0x7b,0x0f,0x4e,0x5e] +# CHECK: pcnt.b $w20, $w18 # encoding: [0x7b,0x04,0x95,0x1e] +# CHECK: pcnt.h $w0, $w8 # encoding: [0x7b,0x05,0x40,0x1e] +# CHECK: pcnt.w $w23, $w9 # encoding: [0x7b,0x06,0x4d,0xde] +# CHECK: pcnt.d $w21, $w24 # encoding: [0x7b,0x07,0xc5,0x5e] # CHECKOBJDUMP: fill.b $w30, $9 # CHECKOBJDUMP: fill.h $w31, $23 # CHECKOBJDUMP: fill.w $w16, $24 +# CHECKOBJDUMP: nloc.b $w21, $w0 +# CHECKOBJDUMP: nloc.h $w18, $w31 +# CHECKOBJDUMP: nloc.w $w2, $w23 +# CHECKOBJDUMP: nloc.d $w4, $w10 +# CHECKOBJDUMP: nlzc.b $w31, $w2 +# CHECKOBJDUMP: nlzc.h $w27, $w22 +# CHECKOBJDUMP: nlzc.w $w10, $w29 +# CHECKOBJDUMP: nlzc.d $w25, $w9 +# CHECKOBJDUMP: pcnt.b $w20, $w18 +# CHECKOBJDUMP: pcnt.h $w0, $w8 +# CHECKOBJDUMP: pcnt.w $w23, $w9 +# CHECKOBJDUMP: pcnt.d $w21, $w24 fill.b $w30, $9 fill.h $w31, $23 fill.w $w16, $24 + nloc.b $w21, $w0 + nloc.h $w18, $w31 + nloc.w $w2, $w23 + nloc.d $w4, $w10 + nlzc.b $w31, $w2 + nlzc.h $w27, $w22 + nlzc.w $w10, $w29 + nlzc.d $w25, $w9 + pcnt.b $w20, $w18 + pcnt.h $w0, $w8 + pcnt.w $w23, $w9 + pcnt.d $w21, $w24 |