Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AsmParser / directive_ascii.s
blobe34aa7a8a56183ddcb3da07a0e8703110f7ec9e8
1 # RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
3 .data
4 # CHECK: TEST0:
5 TEST0:
6 .ascii
8 # CHECK: TEST1:
9 TEST1:
10 .asciz
12 # CHECK: TEST2:
13 # CHECK: .byte 65
14 TEST2:
15 .ascii "A"
17 # CHECK: TEST3:
18 # CHECK: .byte 66
19 # CHECK: .byte 0
20 # CHECK: .byte 67
21 # CHECK: .byte 0
22 TEST3:
23 .asciz "B", "C"
25 # CHECK: TEST4:
26 # CHECK: .asciz "\001\001\007\0008\001\0001\200"
27 TEST4:
28 .ascii "\1\01\07\08\001\0001\200\0"
30 # CHECK: TEST5:
31 # CHECK: .ascii "\b\f\n\r\t\\\""
32 TEST5:
33 .ascii "\b\f\n\r\t\\\""
35 # CHECK: TEST6:
36 # CHECK: .byte 66
37 # CHECK: .byte 0
38 # CHECK: .byte 67
39 # CHECK: .byte 0
40 TEST6:
41 .string "B", "C"
43 # CHECK: TEST7:
44 # CHECK: .ascii "dk"
45 # 0xFACE & 0xFF == 0xCE == 0o316
46 # 0x0FE & 0xFF == 0xFE == 0o376
47 # CHECK: .ascii "\316\376"
48 TEST7:
49 .ascii "\x64\Xa6B"
50 .ascii "\xface\x0Fe"
52 # CHECK-LABEL: TEST8:
53 # CHECK-NEXT: .byte 65
54 # CHECK-NEXT: .byte 66
55 # CHECK-NEXT: .byte 67
56 # CHECK-NEXT: .byte 68
57 TEST8:
58 .ascii "A", "B" "C", "D"