diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-21 12:56:20 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-21 12:56:20 +0000 |
commit | b14ad465492c472033e9ded65ab40e4a9c2c451a (patch) | |
tree | e1a1dd7e9404624971d969ad4fe040a21f0c9c45 /test | |
parent | f6d4cff9b1cf1e3b57592d6a0e40f0026813aa7c (diff) | |
download | external_llvm-b14ad465492c472033e9ded65ab40e4a9c2c451a.zip external_llvm-b14ad465492c472033e9ded65ab40e4a9c2c451a.tar.gz external_llvm-b14ad465492c472033e9ded65ab40e4a9c2c451a.tar.bz2 |
[mips][msa] Direct Object Emission support for LDI instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Mips/msa/test_i10.s | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/test_i10.s b/test/MC/Mips/msa/test_i10.s new file mode 100644 index 0000000..3d7dea3 --- /dev/null +++ b/test/MC/Mips/msa/test_i10.s @@ -0,0 +1,19 @@ +# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s +# +# 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] + +# CHECKOBJDUMP: ldi.b $w8, 198 +# CHECKOBJDUMP: ldi.h $w20, 313 +# CHECKOBJDUMP: ldi.w $w24, 492 +# CHECKOBJDUMP: ldi.d $w27, 844 + + ldi.b $w8, 198 + ldi.h $w20, 313 + ldi.w $w24, 492 + ldi.d $w27, -180 |