aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/msa/test_lsa.s
blob: 6d1d868fc8617f07abf55adc1b9619915724a016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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:        lsa        $8, $9, $10, 1              # encoding: [0x01,0x2a,0x40,0x05]
# CHECK:        lsa        $8, $9, $10, 2              # encoding: [0x01,0x2a,0x40,0x45]
# CHECK:        lsa        $8, $9, $10, 3              # encoding: [0x01,0x2a,0x40,0x85]
# CHECK:        lsa        $8, $9, $10, 4              # encoding: [0x01,0x2a,0x40,0xc5]

# CHECKOBJDUMP: lsa        $8, $9, $10, 1
# CHECKOBJDUMP: lsa        $8, $9, $10, 2
# CHECKOBJDUMP: lsa        $8, $9, $10, 3
# CHECKOBJDUMP: lsa        $8, $9, $10, 4

                lsa        $8, $9, $10, 1
                lsa        $8, $9, $10, 2
                lsa        $8, $9, $10, 3
                lsa        $8, $9, $10, 4