• 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: .byte 1
6# CHECK: .byte 1
7TEST0:
8        .dcb.b 2, 1
9
10# CHECK: TEST1:
11# CHECK: .short 3
12TEST1:
13        .dcb 1, 3
14
15# CHECK: TEST2:
16# CHECK: .short 3
17# CHECK: .short 3
18TEST2:
19        .dcb.w 2, 3
20
21# CHECK: TEST3:
22# CHECK: .long 8
23# CHECK: .long 8
24# CHECK: .long 8
25TEST3:
26        .dcb.l 3, 8
27
28# CHECK: TEST5
29# CHECK: .long	1067412619
30# CHECK: .long	1067412619
31# CHECK: .long	1067412619
32# CHECK: .long	1067412619
33TEST5:
34        .dcb.s 4, 1.2455
35
36# CHECK: TEST6
37# CHECK: .quad	4597526701198935065
38# CHECK: .quad	4597526701198935065
39# CHECK: .quad	4597526701198935065
40# CHECK: .quad	4597526701198935065
41# CHECK: .quad	4597526701198935065
42TEST6:
43        .dcb.d 5, .232
44
45# CHECK-ERROR: error: .dcb.x not currently supported for this target
46TEST7:
47        .dcb.x 3, 1.2e3
48
49# CHECK-ERROR: warning: '.dcb' directive with negative repeat count has no effect
50TEST8:
51       .dcb -1, 2
52
53# CHECK-ERROR: error: unexpected token in '.dcb' directive
54TEST9:
55       .dcb 1 2
56
57# CHECK-ERROR: error: unexpected token in '.dcb' directive
58TEST10:
59       .dcb 1, 2 3
60