test_elm.s revision 62a69eee5ad951502de28871ef27bb64dbf5508f
1# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s
2#
3# 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
4#
5# CHECK:        copy_s.b        $13, $w8[2]             # encoding: [0x78,0x82,0x43,0x59]
6# CHECK:        copy_s.h        $1, $w25[0]             # encoding: [0x78,0xa0,0xc8,0x59]
7# CHECK:        copy_s.w        $22, $w5[1]             # encoding: [0x78,0xb1,0x2d,0x99]
8# CHECK:        copy_u.b        $22, $w20[4]            # encoding: [0x78,0xc4,0xa5,0x99]
9# CHECK:        copy_u.h        $20, $w4[0]             # encoding: [0x78,0xe0,0x25,0x19]
10# CHECK:        copy_u.w        $fp, $w13[2]            # encoding: [0x78,0xf2,0x6f,0x99]
11# CHECK:        sldi.b          $w0, $w29[4]            # encoding: [0x78,0x04,0xe8,0x19]
12# CHECK:        sldi.h          $w8, $w17[0]            # encoding: [0x78,0x20,0x8a,0x19]
13# CHECK:        sldi.w          $w20, $w27[2]           # encoding: [0x78,0x32,0xdd,0x19]
14# CHECK:        sldi.d          $w4, $w12[0]            # encoding: [0x78,0x38,0x61,0x19]
15# CHECK:        splati.b        $w25, $w3[2]            # encoding: [0x78,0x42,0x1e,0x59]
16# CHECK:        splati.h        $w24, $w28[1]           # encoding: [0x78,0x61,0xe6,0x19]
17# CHECK:        splati.w        $w13, $w18[0]           # encoding: [0x78,0x70,0x93,0x59]
18# CHECK:        splati.d        $w28, $w1[0]            # encoding: [0x78,0x78,0x0f,0x19]
19
20# CHECKOBJDUMP:        copy_s.b        $13, $w8[2]
21# CHECKOBJDUMP:        copy_s.h        $1, $w25[0]
22# CHECKOBJDUMP:        copy_s.w        $22, $w5[1]
23# CHECKOBJDUMP:        copy_u.b        $22, $w20[4]
24# CHECKOBJDUMP:        copy_u.h        $20, $w4[0]
25# CHECKOBJDUMP:        copy_u.w        $fp, $w13[2]
26# CHECKOBJDUMP:        sldi.b          $w0, $w29[4]
27# CHECKOBJDUMP:        sldi.h          $w8, $w17[0]
28# CHECKOBJDUMP:        sldi.w          $w20, $w27[2]
29# CHECKOBJDUMP:        sldi.d          $w4, $w12[0]
30# CHECKOBJDUMP:        splati.b        $w25, $w3[2]
31# CHECKOBJDUMP:        splati.h        $w24, $w28[1]
32# CHECKOBJDUMP:        splati.w        $w13, $w18[0]
33# CHECKOBJDUMP:        splati.d        $w28, $w1[0]
34
35                copy_s.b        $13, $w8[2]
36                copy_s.h        $1, $w25[0]
37                copy_s.w        $22, $w5[1]
38                copy_u.b        $22, $w20[4]
39                copy_u.h        $20, $w4[0]
40                copy_u.w        $30, $w13[2]
41                sldi.b          $w0, $w29[4]
42                sldi.h          $w8, $w17[0]
43                sldi.w          $w20, $w27[2]
44                sldi.d          $w4, $w12[0]
45                splati.b        $w25, $w3[2]
46                splati.h        $w24, $w28[1]
47                splati.w        $w13, $w18[0]
48                splati.d        $w28, $w1[0]
49