• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-ERROR %s
2
3bar:
4        fred .req x5
5        fred .req x6
6// CHECK-ERROR: warning: ignoring redefinition of register alias 'fred'
7// CHECK-ERROR: fred .req x6
8// CHECK-ERROR: ^
9
10        ada  .req v2.8b
11// CHECK-ERROR: error: vector register without type specifier expected
12// CHECK-ERROR: ada  .req v2.8b
13// CHECK-ERROR:           ^
14
15        bob  .req lisa
16// CHECK-ERROR: error: register name or alias expected
17// CHECK-ERROR: bob  .req lisa
18// CHECK-ERROR:           ^
19
20        lisa .req x1, 23
21// CHECK-ERROR: error: unexpected input in .req directive
22// CHECK-ERROR: lisa .req x1, 23
23// CHECK-ERROR:             ^
24
25        mov  bob, fred
26// CHECK-ERROR: error: invalid operand for instruction
27// CHECK-ERROR: mov  bob, fred
28// CHECK-ERROR:      ^
29
30        .unreq 1
31// CHECK-ERROR: error: unexpected input in .unreq directive.
32// CHECK-ERROR: .unreq 1
33// CHECK-ERROR:        ^
34
35        mov  x1, fred
36// CHECK: mov x1, x5
37// CHECK-NOT: mov x1, x6
38