diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-14 12:38:17 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2013-10-14 12:38:17 +0000 |
commit | 01436ba3066b99547c1138edf5c36ef2ad467e71 (patch) | |
tree | afb5d9ced08a0039e9e5605b19e53972987d0ec0 /test/MC | |
parent | 29adbe8464f74f17a7cf977ce21ef88d88d28b14 (diff) | |
download | external_llvm-01436ba3066b99547c1138edf5c36ef2ad467e71.zip external_llvm-01436ba3066b99547c1138edf5c36ef2ad467e71.tar.gz external_llvm-01436ba3066b99547c1138edf5c36ef2ad467e71.tar.bz2 |
[mips][msa] Direct Object Emission of INSVE.{b,h,w,d}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Mips/msa/test_elm_insve.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/test_elm_insve.s b/test/MC/Mips/msa/test_elm_insve.s new file mode 100644 index 0000000..d63d687 --- /dev/null +++ b/test/MC/Mips/msa/test_elm_insve.s @@ -0,0 +1,18 @@ +# 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: insve.b $w25[3], $w9[0] # encoding: [0x79,0x43,0x4e,0x59] +# CHECK: insve.h $w24[2], $w2[0] # encoding: [0x79,0x62,0x16,0x19] +# CHECK: insve.w $w0[2], $w13[0] # encoding: [0x79,0x72,0x68,0x19] +# CHECK: insve.d $w3[0], $w18[0] # encoding: [0x79,0x78,0x90,0xd9] + +# CHECKOBJDUMP: insve.b $w25[3], $w9[0] +# CHECKOBJDUMP: insve.h $w24[2], $w2[0] +# CHECKOBJDUMP: insve.w $w0[2], $w13[0] +# CHECKOBJDUMP: insve.d $w3[0], $w18[0] + + insve.b $w25[3], $w9[0] + insve.h $w24[2], $w2[0] + insve.w $w0[2], $w13[0] + insve.d $w3[0], $w18[0] |