Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ARM / ra-auth-code-errors.s
blob0c33f34a92091f8b466cb0ee1f8dbbf3cb1c5635
1 // RUN: not llvm-mc -triple=thumbv7 %s -o - 2>&1 | FileCheck %s --strict-whitespace
2 .text
3 .syntax unified
4 .code 16
5 .thumb_func
6 .global f
7 f:
8 .fnstart
9 .save {r11-ra_auth_code}
10 // CHECK: [[# @LINE - 1]]:16: error: pseudo-register not allowed
11 // CHECK-NEXT: .save {r11-ra_auth_code}
12 // CHECK-NEXT: ^
13 .save {r11, ra_auth_code, r12}
14 // CHECK: [[# @LINE - 1]]:31: warning: duplicated register (r12) in register list
15 // CHECK-NEXT: .save {r11, ra_auth_code, r12}
16 // CHECK-NEXT: ^
17 .save {ra_auth_code-r13}
18 // CHECK: [[# @LINE - 1]]:12: error: pseudo-register not allowed
19 // CHECK-NEXT: .save {ra_auth_code-r13}
20 // CHECK-NEXT: ^
21 push {ra_auth_code}
22 // CHECK: [[# @LINE - 1]]:11: error: pseudo-register not allowed
23 // CHECK-NEXT: push {ra_auth_code}
24 // CHECK-NEXT: ^
25 push {r11, ra_auth_code}
26 // CHECK: [[# @LINE - 1]]:16: error: pseudo-register not allowed
27 // CHECK-NEXT: push {r11, ra_auth_code}
28 // CHECK-NEXT: ^
29 push {ra_auth_code, r12}
30 // CHECK: [[# @LINE - 1]]:11: error: pseudo-register not allowed
31 // CHECK-NEXT: push {ra_auth_code, r12}
32 // CHECK-NEXT: ^
33 push {ra_auth_code, r13}
34 // CHECK: [[# @LINE - 1]]:11: error: pseudo-register not allowed
35 // CHECK-NEXT: push {ra_auth_code, r13}
36 // CHECK-NEXT: ^