[mips] Test that IAS for -mcpu=mips5 does not accept MIPS64 insns and -mcpu=mips...
[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 # FIXME: It would be better if the error pointed at the mnemonic instead of the newline
14 # ERROR: mips-noat.s:[[@LINE+4]]:1: error: Pseudo instruction requires $at, which is not available
15 test2:
16         .set noat
17         lw      $2, 65536($2)
18
19 # Can we switch it back on successfully?
20 # CHECK-LABEL: test3:
21 # CHECK:  lui   $1, 1
22 # CHECK:  addu  $1, $1, $2
23 # CHECK:  lw    $2, 0($1)
24 test3:
25         .set at
26         lw      $2, 65536($2)
27
28 # FIXME: It would be better if the error pointed at the mnemonic instead of the newline
29 # ERROR: mips-noat.s:[[@LINE+4]]:1: error: Pseudo instruction requires $at, which is not available
30 test4:
31         .set at=$0
32         lw      $2, 65536($2)
33
34 # ERROR-NOT: error