1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/AsmParser/directive_dc.s
Petr Hosek 46d79cf83a [MC] Support .dc directives in assembler parser
While these directives are mostly aliases for the existing integer
and float value directives, some of them like .dc.a have no direct
equivalents and are sometimes being used for convenience.

Differential Revision: https://reviews.llvm.org/D23810

llvm-svn: 279577
2016-08-23 21:34:53 +00:00

42 lines
703 B
ArmAsm

# RUN: not llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
# RUN: not llvm-mc -triple i386-unknown-unknown %s 2>&1 > /dev/null| FileCheck %s --check-prefix=CHECK-ERROR
# CHECK: TEST0:
# CHECK: .byte 0
TEST0:
.dc.b 0
# CHECK: TEST1:
# CHECK: .short 3
TEST1:
.dc 3
# CHECK: TEST2:
# CHECK: .short 3
TEST2:
.dc.w 3
# CHECK: TEST3:
# CHECK: .long 8
TEST3:
.dc.l 8
# CHECK: TEST4:
# CHECK: .long 8
TEST4:
.dc.a 8
# CHECK: TEST5
# CHECK: .long 1067412619
TEST5:
.dc.s 1.2455
# CHECK: TEST6
# CHECK: .quad 4597526701198935065
TEST6:
.dc.d .232
# CHECK-ERROR: error: .dc.x not currently supported for this target
TEST7:
.dc.x 1.2e3