mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
203a9224ff
Summary: This directive is exactly the same as .asciz, except it's only used by MIPS. It is used to store null terminated strings in object files. Reviewers: rafael, dsanders, echristo Reviewed By: dsanders, echristo Subscribers: echristo, llvm-commits Differential Revision: http://reviews.llvm.org/D7530 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235382 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
489 B
ArmAsm
29 lines
489 B
ArmAsm
# RUN: llvm-mc -triple mips-unknown-linux %s | FileCheck %s
|
|
# .asciiz is exactly the same as .asciz, except it's MIPS-specific.
|
|
|
|
t1:
|
|
.asciiz
|
|
# CHECK-LABEL: t1
|
|
|
|
t2:
|
|
.asciiz "a"
|
|
# CHECK-LABEL: t2
|
|
# CHECK: .byte 97
|
|
# CHECK: .byte 0
|
|
|
|
t3:
|
|
.asciiz "a", "b", "c"
|
|
# CHECK-LABEL: t3
|
|
# CHECK: .byte 97
|
|
# CHECK: .byte 0
|
|
# CHECK: .byte 98
|
|
# CHECK: .byte 0
|
|
# CHECK: .byte 99
|
|
# CHECK: .byte 0
|
|
|
|
t4:
|
|
.asciiz "abcdefghijklmnop"
|
|
# CHECK-LABEL: t4
|
|
# CHECK: .ascii "abcdefghijklmnop"
|
|
# CHECK: .byte 0
|