2013-12-18 17:31:21 +00:00
|
|
|
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
|
2013-10-14 11:49:30 +00:00
|
|
|
#
|
2013-12-18 17:31:21 +00:00
|
|
|
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -filetype=obj -o - | \
|
|
|
|
# RUN: llvm-objdump -d -arch=mips -mattr=+msa - | \
|
|
|
|
# RUN: FileCheck %s -check-prefix=CHECKOBJDUMP
|
2013-10-14 11:49:30 +00:00
|
|
|
#
|
|
|
|
# CHECK: insert.b $w23[3], $sp # encoding: [0x79,0x03,0xed,0xd9]
|
|
|
|
# CHECK: insert.h $w20[2], $5 # encoding: [0x79,0x22,0x2d,0x19]
|
|
|
|
# CHECK: insert.w $w8[2], $15 # encoding: [0x79,0x32,0x7a,0x19]
|
|
|
|
|
|
|
|
# CHECKOBJDUMP: insert.b $w23[3], $sp
|
|
|
|
# CHECKOBJDUMP: insert.h $w20[2], $5
|
|
|
|
# CHECKOBJDUMP: insert.w $w8[2], $15
|
|
|
|
|
|
|
|
insert.b $w23[3], $sp
|
|
|
|
insert.h $w20[2], $5
|
|
|
|
insert.w $w8[2], $15
|