reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  216
  217
  218
  219
  220
  221
  222
  223
  224
  225
  226
  227
  228
  229
  230
  231
  232
  233
  234
  235
  236
  237
  238
  239
  240
  241
  242
  243
  244
  245
  246
  247
  248
  249
  250
  251
  252
  253
  254
  255
  256
  257
  258
// RUN: not llvm-mc -triple aarch64-none-eabi %s 2>&1 | FileCheck %s
// RUN: not llvm-mc -triple aarch64-none-eabi %s 2>&1 | grep "error:" | count 60

	// CHECK: [[@LINE+1]]:19: error: unexpected token in '.equ' directive
	.equ   ident1, 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.equ   ident1, 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:19: error: unexpected token in '.equiv' directive
	.equiv ident2, 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.equiv ident2, 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:19: error: unexpected token in '.set' directive
	.set   ident3, 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.set   ident3, 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:20: error: unexpected token in '.ascii' directive
	.ascii  "string1" $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.ascii  "string1" // EOL COMMENT
	// CHECK: [[@LINE+1]]:20: error: unexpected token in '.asciz' directive
	.asciz  "string2" $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.asciz  "string2" // EOL COMMENT
	// CHECK: [[@LINE+1]]:20: error: unexpected token in '.string' directive
	.string "string3" $	
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.string "string3" // EOL COMMENT	
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.byte' directive
	.byte 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.byte 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.b' directive
	.dc.b 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.b 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:8: error: unexpected token in '.dc' directive
	.dc 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.b 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.w' directive
	.dc.w 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.w 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in '.short' directive
	.short 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.short 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in '.value' directive
	.value 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.value 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in '.2byte' directive
	.2byte 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.2byte 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.long' directive
	.long 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.long 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.int' directive
	.int  0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.int  0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in '.4byte' directive
	.4byte 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.4byte 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.l' directive
	.dc.l 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.l 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.quad' directive
	.quad 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.quad 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in '.8byte' directive
	.8byte 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.8byte 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.a' directive
	.dc.a 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.a 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.octa' directive
	.octa 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.octa 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:12: error: unexpected token in '.single' directive
	.single 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.single 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in '.float' directive
	.float 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.float 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.s' directive
	.dc.s 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.s 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:12: error: unexpected token in '.double' directive
	.double 0 $	
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.double 0 // EOL COMMENT	
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.dc.d' directive
	.dc.d 0 $		
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.dc.d 0 // EOL COMMENT		
	// CHECK: [[@LINE+1]]:13: error: unexpected token in '.fill' directive
	.fill 1, 1 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.fill 1, 1 // EOL COMMENT
	// CHECK: [[@LINE+1]]:17: error: unexpected token in '.fill' directive
	.fill 1, 1, 10 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.fill 1, 1, 10 // EOL COMMENT
	// CHECK: [[@LINE+1]]:16: error: unexpected token in '.org' directive
        .org 1 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
        .org 1 // EOL COMMENT
	// CHECK: [[@LINE+1]]:11: error: unexpected token in directive	
	.align 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.align 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:13: error: unexpected token in directive
	.align32 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.align32 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:12: error: unexpected token in directive
	.balign 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.balign 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:13: error: unexpected token in directive
	.balignw 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.balignw 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:13: error: unexpected token in directive
	.balignl 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.balignl 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:13: error: unexpected token in directive
	.p2align 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.p2align 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:14: error: unexpected token in directive
	.p2alignw 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.p2alignw 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:14: error: unexpected token in directive
	.p2alignl 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.p2alignl 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:8: error: unexpected token in '.line' directive
	.line $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.line // EOL COMMENT
	// CHECK: [[@LINE+1]]:10: error: unexpected token in '.line' directive
	.line 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.line 0 // EOL COMMENT

	.file 1 "hello"
	// CHECK: [[@LINE+1]]:16: error: unexpected token in '.loc' directive
        .loc 1 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
        .loc 1 // EOL COMMENT	

	// CHECK: [[@LINE+1]]:21: error: unexpected token in '.cv_file' directive
	.cv_file 1 "hello" $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.cv_file 1 "hello" // EOL COMMENT

	.cv_func_id 1
	// CHECK: [[@LINE+1]]:14: error: unexpected token in '.cv_loc' directive
	.cv_loc 1 1 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.cv_loc 1 1 // EOL COMMENT
	
	// CHECK: [[@LINE+1]]:28: error: unexpected token after '.bundle_lock' directive option
	.bundle_lock align_to_end $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.bundle_lock align_to_end // EOL COMMENT	
	
	// CHECK: [[@LINE+1]]:11: error: invalid token in expression in directive
	.sleb128 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.sleb128 // EOL COMMENT
	// CHECK: [[@LINE+1]]:13: error: unexpected token in directive
	.sleb128 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.sleb128 0 // EOL COMMENT

	// CHECK: [[@LINE+1]]:11: error: invalid token in expression in directive
	.uleb128 $	
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.uleb128 // EOL COMMENT
	// CHECK: [[@LINE+1]]:13: error: unexpected token in directive
	.uleb128 0 $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.uleb128 0 // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token
	.globl a1                    $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.globl a1                    // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.global a2                   $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.global a2                   // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.lazy_reference a3           $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.lazy_reference a3           // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.symbol_resolver a4          $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.symbol_resolver a4          // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.private_extern a5           $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.private_extern a5           // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.reference a6                $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.reference a6                // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.weak_definition a7          $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.weak_definition a7          // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.weak_reference a8           $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.weak_reference a8           // EOL COMMENT
	// CHECK: [[@LINE+1]]:31: error: unexpected token in directive
	.weak_def_can_be_hidden a9   $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.weak_def_can_be_hidden a9   // EOL COMMENT	
	// CHECK: [[@LINE+1]]:12: error: .warning argument must be a string
	.warning  $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.warning  // EOL COMMENT
	// CHECK: [[@LINE+1]]:21: error: expected end of statement in '.warning' directive
	.warning "warning" $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.warning "warning" // EOL COMMENT


	// CHECK: [[@LINE+1]]:17: error: unexpected token in '.cfi_startproc' directive
	.cfi_startproc $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.cfi_startproc // EOL COMMENT
	.cfi_endproc
	// CHECK: [[@LINE+1]]:24: error: unexpected token in '.cfi_startproc' directive
	.cfi_startproc simple $
	// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
	.cfi_startproc simple // EOL COMMENT
	.cfi_endproc

	
	// CHECK-NOT: error: