mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
b4543f0948
Implement .set dspr2 directive with appropriate feature bits. This directive is a counterpart of -mattr=dspr2 command line option with the exception that it does not influence elf header flags. Patch by Milos Stojanovic. Differential Revision: https://reviews.llvm.org/D38537 llvm-svn: 314994
22 lines
603 B
ArmAsm
22 lines
603 B
ArmAsm
# RUN: not llvm-mc %s -mcpu=mips32 -mattr=+dspr2 -triple mips-unknown-linux 2>%t1
|
|
# RUN: FileCheck %s < %t1
|
|
|
|
lbux $7, $10($11)
|
|
append $4, $10, 2
|
|
|
|
.set nodsp
|
|
lbux $6, $10($11)
|
|
# CHECK: error: instruction requires a CPU feature not currently enabled
|
|
|
|
.set dsp
|
|
lbux $5, $10($11)
|
|
# CHECK-NOT: error: instruction requires a CPU feature not currently enabled
|
|
|
|
.set nodsp
|
|
append $3, $10, 2
|
|
# CHECK: error: instruction requires a CPU feature not currently enabled
|
|
|
|
.set dspr2
|
|
append $2, $10, 2
|
|
# CHECK-NOT: error: instruction requires a CPU feature not currently enabled
|