2009-07-18 06:38:58 +08:00
|
|
|
# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
2009-06-25 07:30:00 +08:00
|
|
|
|
2009-08-15 02:19:52 +08:00
|
|
|
.data
|
2009-07-09 04:40:54 +08:00
|
|
|
# CHECK: TEST0:
|
2009-06-25 07:30:00 +08:00
|
|
|
TEST0:
|
|
|
|
.ascii
|
|
|
|
|
2009-07-09 04:40:54 +08:00
|
|
|
# CHECK: TEST1:
|
2009-06-25 07:30:00 +08:00
|
|
|
TEST1:
|
|
|
|
.asciz
|
|
|
|
|
2009-07-09 04:40:54 +08:00
|
|
|
# CHECK: TEST2:
|
|
|
|
# CHECK: .byte 65
|
2009-06-25 07:30:00 +08:00
|
|
|
TEST2:
|
|
|
|
.ascii "A"
|
|
|
|
|
2009-07-09 04:40:54 +08:00
|
|
|
# CHECK: TEST3:
|
|
|
|
# CHECK: .byte 66
|
|
|
|
# CHECK: .byte 0
|
|
|
|
# CHECK: .byte 67
|
|
|
|
# CHECK: .byte 0
|
2009-06-25 07:30:00 +08:00
|
|
|
TEST3:
|
|
|
|
.asciz "B", "C"
|
2009-08-15 02:19:52 +08:00
|
|
|
|
|
|
|
# CHECK: TEST4:
|
2010-01-23 08:15:00 +08:00
|
|
|
# CHECK: .asciz "\001\001\007\0008\001\0001\200"
|
2009-08-15 02:19:52 +08:00
|
|
|
TEST4:
|
2009-08-15 03:59:24 +08:00
|
|
|
.ascii "\1\01\07\08\001\0001\200\0"
|
2009-08-15 02:19:52 +08:00
|
|
|
|
|
|
|
# CHECK: TEST5:
|
2010-01-23 08:15:00 +08:00
|
|
|
# CHECK: .ascii "\b\f\n\r\t\\\""
|
2009-08-15 02:19:52 +08:00
|
|
|
TEST5:
|
|
|
|
.ascii "\b\f\n\r\t\\\""
|
|
|
|
|
2010-10-29 04:02:27 +08:00
|
|
|
# CHECK: TEST6:
|
|
|
|
# CHECK: .byte 66
|
|
|
|
# CHECK: .byte 0
|
|
|
|
# CHECK: .byte 67
|
|
|
|
# CHECK: .byte 0
|
|
|
|
TEST6:
|
|
|
|
.string "B", "C"
|
2019-10-08 12:39:52 +08:00
|
|
|
|
|
|
|
# CHECK: TEST7:
|
|
|
|
# CHECK: .ascii "dk"
|
2019-10-09 06:06:09 +08:00
|
|
|
# 0xFACE & 0xFF == 0xCE == 0o316
|
|
|
|
# 0x0FE & 0xFF == 0xFE == 0o376
|
|
|
|
# CHECK: .ascii "\316\376"
|
2019-10-08 12:39:52 +08:00
|
|
|
TEST7:
|
|
|
|
.ascii "\x64\Xa6B"
|
2019-10-09 06:06:09 +08:00
|
|
|
.ascii "\xface\x0Fe"
|
2021-01-15 09:33:20 +08:00
|
|
|
|
|
|
|
# CHECK-LABEL: TEST8:
|
|
|
|
# CHECK-NEXT: .byte 65
|
|
|
|
# CHECK-NEXT: .byte 66
|
|
|
|
# CHECK-NEXT: .byte 67
|
|
|
|
# CHECK-NEXT: .byte 68
|
|
|
|
TEST8:
|
|
|
|
.ascii "A", "B" "C", "D"
|