xref: /aosp_15_r20/external/llvm/test/MC/Mips/asciiz-directive.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple mips-unknown-linux %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker# .asciiz is exactly the same as .asciz, except it's MIPS-specific.
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workert1:
5*9880d681SAndroid Build Coastguard Worker  .asciiz
6*9880d681SAndroid Build Coastguard Worker# CHECK-LABEL: t1
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workert2:
9*9880d681SAndroid Build Coastguard Worker  .asciiz "a"
10*9880d681SAndroid Build Coastguard Worker# CHECK-LABEL: t2
11*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 97
12*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 0
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workert3:
15*9880d681SAndroid Build Coastguard Worker  .asciiz "a", "b", "c"
16*9880d681SAndroid Build Coastguard Worker# CHECK-LABEL: t3
17*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 97
18*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 0
19*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 98
20*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 0
21*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 99
22*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 0
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workert4:
25*9880d681SAndroid Build Coastguard Worker  .asciiz "abcdefghijklmnop"
26*9880d681SAndroid Build Coastguard Worker# CHECK-LABEL: t4
27*9880d681SAndroid Build Coastguard Worker# CHECK: .ascii "abcdefghijklmnop"
28*9880d681SAndroid Build Coastguard Worker# CHECK: .byte 0
29