[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AsmParser / directive_ds.s
blobba61fbaa387bf75664717ac2e646aabfd5a2208a
1 # RUN: not llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
2 # RUN: not llvm-mc -triple i386-unknown-unknown %s 2>&1 > /dev/null| FileCheck %s --check-prefix=CHECK-ERROR
4 # CHECK: TEST0:
5 # CHECK: .zero 1
6 TEST0:
7 .ds.b 1
9 # CHECK: TEST1:
10 # CHECK: .zero 2
11 # CHECK: .zero 2
12 # CHECK: .zero 2
13 TEST1:
14 .ds 3
16 # CHECK: TEST2:
17 TEST2:
18 .ds.w 0
20 # CHECK: TEST3:
21 # CHECK: .zero 4
22 # CHECK: .zero 4
23 TEST3:
24 .ds.l 2
26 # CHECK: TEST4:
27 # CHECK: .zero 8
28 # CHECK: .zero 8
29 # CHECK: .zero 8
30 # CHECK: .zero 8
31 TEST4:
32 .ds.d 4
34 # CHECK: TEST5:
35 # CHECK: .zero 12
36 # CHECK: .zero 12
37 TEST5:
38 .ds.p 2
40 # CHECK: TEST6:
41 # CHECK: .zero 4
42 # CHECK: .zero 4
43 # CHECK: .zero 4
44 TEST6:
45 .ds.s 3
47 # CHECK: TEST7:
48 # CHECK: .zero 12
49 TEST7:
50 .ds.x 1
52 # CHECK-ERROR: warning: '.ds' directive with negative repeat count has no effect
53 TEST8:
54 .ds -1
56 # CHECK-ERROR: error: unexpected token in '.ds' directive
57 TEST9:
58 .ds 1 2