• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4# CHECK: TEST0:
5# CHECK: .zero 1
6TEST0:
7        .ds.b 1
8
9# CHECK: TEST1:
10# CHECK: .zero 2
11# CHECK: .zero 2
12# CHECK: .zero 2
13TEST1:
14        .ds 3
15
16# CHECK: TEST2:
17TEST2:
18        .ds.w 0
19
20# CHECK: TEST3:
21# CHECK: .zero 4
22# CHECK: .zero 4
23TEST3:
24        .ds.l 2
25
26# CHECK: TEST4:
27# CHECK: .zero 8
28# CHECK: .zero 8
29# CHECK: .zero 8
30# CHECK: .zero 8
31TEST4:
32        .ds.d 4
33
34# CHECK: TEST5:
35# CHECK: .zero 12
36# CHECK: .zero 12
37TEST5:
38        .ds.p 2
39
40# CHECK: TEST6:
41# CHECK: .zero 4
42# CHECK: .zero 4
43# CHECK: .zero 4
44TEST6:
45        .ds.s 3
46
47# CHECK: TEST7:
48# CHECK: .zero 12
49TEST7:
50        .ds.x 1
51
52# CHECK-ERROR: warning: '.ds' directive with negative repeat count has no effect
53TEST8:
54       .ds -1
55
56# CHECK-ERROR: error: unexpected token in '.ds' directive
57TEST9:
58       .ds 1 2
59