Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AsmParser / directive_dcb.s
blob07b60e6b436ede57e8d43c9981d0c2be335490bc
1 # RUN: llvm-mc -triple=i386 %s | FileCheck %s
2 # RUN: not llvm-mc -triple=i386 --defsym ERR=1 %s 2>&1 > /dev/null | FileCheck %s --check-prefix=ERR
4 # CHECK: TEST0:
5 # CHECK: .byte 1
6 # CHECK: .byte 1
7 TEST0:
8 .dcb.b 2, 1
10 # CHECK: TEST1:
11 # CHECK: .short 3
12 TEST1:
13 .dcb 1, 3
15 # CHECK: TEST2:
16 # CHECK: .short 3
17 # CHECK: .short 3
18 TEST2:
19 .dcb.w 2, 3
21 # CHECK: TEST3:
22 # CHECK: .long 8
23 # CHECK: .long 8
24 # CHECK: .long 8
25 TEST3:
26 .dcb.l 3, 8
28 # CHECK: TEST5
29 # CHECK: .long 1067412619
30 # CHECK: .long 1067412619
31 # CHECK: .long 1067412619
32 # CHECK: .long 1067412619
33 TEST5:
34 .dcb.s 4, 1.2455
36 # CHECK: TEST6
37 # CHECK: .quad 4597526701198935065
38 # CHECK: .quad 4597526701198935065
39 # CHECK: .quad 4597526701198935065
40 # CHECK: .quad 4597526701198935065
41 # CHECK: .quad 4597526701198935065
42 TEST6:
43 .dcb.d 5, .232
45 .ifdef ERR
46 # ERR: :[[#@LINE+1]]:8: error: .dcb.x not currently supported for this target
47 .dcb.x 3, 1.2e3
49 # ERR: :[[#@LINE+1]]:6: warning: '.dcb' directive with negative repeat count has no effect
50 .dcb -1, 2
52 # ERR: :[[#@LINE+1]]:8: error: expected comma
53 .dcb 1 2
55 # ERR: :[[#@LINE+1]]:11: error: expected newline
56 .dcb 1, 2 3
57 .endif