1 # RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa | \
3 # .set push creates a copy of the current environment.
4 # .set pop restores the previous environment.
5 # FIXME: Also test resetting of .set macro/nomacro option.
8 # The first environment on the stack (with initial values).
11 addvi.
b $w15
, $w13
, 18
13 # Create a new environment.
15 .set at=$ra # Test the ATReg option.
17 .set noreorder # Test the Reorder option.
19 .set nomsa # Test the Features option (ASE).
20 .set mips32r6 # Test the Features option (ISA).
23 # Switch back to the first environment.
27 addvi.
b $w15
, $w13
, 18
30 # CHECK: addu $1, $1, $1
34 # CHECK: addvi.b $w15, $w13, 18
38 # CHECK: addu $ra, $ra, $1
39 # CHECK: lw $1, 0($ra)
40 # CHECK: .set noreorder
44 # CHECK: .set mips32r6
45 # CHECK: mod $2, $4, $6
49 # CHECK: addu $1, $1, $1
53 # CHECK: addvi.b $w15, $w13, 18
63 # CHECK-NOT: :[[@LINE-1]]:5: error: instruction requires a CPU feature not currently enabled
69 # CHECK-NOT: :[[@LINE-1]]:5: error: instruction requires a CPU feature not currently enabled