1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/MC/Mips/msa/set-msa-directive-bad.s
Daniel Sanders 64c798332f [mips] Add assembler support for .set msa/nomsa directive.
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

llvm-svn: 215099
2014-08-07 12:03:36 +00:00

12 lines
369 B
ArmAsm

# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
# RUN: FileCheck %s < %t1
.set nomsa
addvi.b $w14, $w12, 14 # CHECK: error: instruction requires a CPU feature not currently enabled
.set msa
addvi.h $w26, $w17, 4
.set nomsa
addvi.w $w19, $w13, 11 # CHECK: error: instruction requires a CPU feature not currently enabled