xref: /llvm-project/llvm/test/MC/Hexagon/directive-attribute-err.s (revision 31f4b329c8234fab9afa59494d7f8bdaeaefeaad)
1/// attribute parsing error cases.
2
3// RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 \
4// RUN:   | FileCheck %s
5
6  .attribute Tag_unknown_name, 0
7// CHECK: [[#@LINE-1]]:14: error: attribute name not recognized: Tag_unknown_name
8// CHECK-NEXT:   .attribute Tag_unknown_name
9
10  .attribute [non_constant_expression], 0
11// CHECK: [[#@LINE-1]]:14: error: expected numeric constant
12// CHECK-NEXT:   .attribute [non_constant_expression], 0
13
14  .attribute 42, "forty two"
15// CHECK: [[#@LINE-1]]:18: error: expected numeric constant
16// CHECK-NEXT:   .attribute 42, "forty two"
17
18  .attribute Tag_arch, "v75"
19// CHECK: [[#@LINE-1]]:24: error: expected numeric constant
20// CHECK-NEXT:   .attribute Tag_arch, "v75"
21
22  .attribute 0
23// CHECK: :[[#@LINE-1]]:15: error: expected comma
24// CHECK-NEXT:   .attribute 0
25