mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
6cc2e1a132
Summary: These directives are used to toggle whether the assembler accepts MSA-specific instructions or not. Patch by Matheus Almeida and Toma Tabacu. Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D4783 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215099 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
656 B
ArmAsm
23 lines
656 B
ArmAsm
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 | FileCheck %s
|
|
|
|
# CHECK: .set msa
|
|
# CHECK: addvi.b $w14, $w12, 14
|
|
# CHECK: addvi.h $w26, $w17, 4
|
|
# CHECK: addvi.w $w19, $w13, 11
|
|
# CHECK: addvi.d $w16, $w19, 7
|
|
# CHECK: subvi.b $w14, $w12, 14
|
|
# CHECK: subvi.h $w26, $w17, 4
|
|
# CHECK: subvi.w $w19, $w13, 11
|
|
# CHECK: subvi.d $w16, $w19, 7
|
|
|
|
.set msa
|
|
addvi.b $w14, $w12, 14
|
|
addvi.h $w26, $w17, 4
|
|
addvi.w $w19, $w13, 11
|
|
addvi.d $w16, $w19, 7
|
|
|
|
subvi.b $w14, $w12, 14
|
|
subvi.h $w26, $w17, 4
|
|
subvi.w $w19, $w13, 11
|
|
subvi.d $w16, $w19, 7
|