2013-12-18 11:06:13 +00:00
|
|
|
# RUN: llvm-mc %s -show-encoding -mcpu=mips32r2 -mattr=+msa -arch=mips | FileCheck %s
|
2013-10-23 13:20:07 +00:00
|
|
|
#
|
2013-12-18 11:06:13 +00:00
|
|
|
# RUN: llvm-mc %s -mcpu=mips32r2 -mattr=+msa -arch=mips -filetype=obj -o - | llvm-objdump -d -mattr=+msa -arch=mips - | FileCheck %s -check-prefix=CHECKOBJDUMP
|
2013-10-23 13:20:07 +00:00
|
|
|
#
|
2013-11-18 12:32:49 +00:00
|
|
|
# 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]
|
2013-10-23 13:20:07 +00:00
|
|
|
|
2013-11-18 12:32:49 +00:00
|
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 1
|
2013-10-23 13:20:07 +00:00
|
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 2
|
2013-11-18 12:32:49 +00:00
|
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 3
|
|
|
|
# CHECKOBJDUMP: lsa $8, $9, $10, 4
|
2013-10-23 13:20:07 +00:00
|
|
|
|
2013-11-18 12:32:49 +00:00
|
|
|
lsa $8, $9, $10, 1
|
2013-10-23 13:20:07 +00:00
|
|
|
lsa $8, $9, $10, 2
|
2013-11-18 12:32:49 +00:00
|
|
|
lsa $8, $9, $10, 3
|
|
|
|
lsa $8, $9, $10, 4
|