[mips][microMIPS] Implement ADDIUS5 instruction
[oota-llvm.git] / test / MC / Mips / mips-noat.s
1 # RUN: not llvm-mc %s -triple=mips-unknown-linux 2>%t0 | FileCheck %s
2 # RUN: FileCheck -check-prefix=ERROR %s < %t0
3 # Check that using the assembler temporary when .set noat is in effect is an error.
4
5 # We start with the assembler temporary enabled
6 # CHECK-LABEL: test1:
7 # CHECK:  lui   $1, 1
8 # CHECK:  addu  $1, $1, $2
9 # CHECK:  lw    $2, 0($1)
10 test1:
11         lw      $2, 65536($2)
12
13 test2:
14         .set noat
15         lw      $2, 65536($2) # ERROR: mips-noat.s:[[@LINE]]:9: error: pseudo-instruction requires $at, which is not available
16
17
18 # Can we switch it back on successfully?
19 # CHECK-LABEL: test3:
20 # CHECK:  lui   $1, 1
21 # CHECK:  addu  $1, $1, $2
22 # CHECK:  lw    $2, 0($1)
23 test3:
24         .set at
25         lw      $2, 65536($2)
26
27 test4:
28         .set at=$0
29         lw      $2, 65536($2) # ERROR: mips-noat.s:[[@LINE]]:9: error: pseudo-instruction requires $at, which is not available