xref: /aosp_15_r20/external/llvm/test/MC/Sparc/sparc-directives.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1! RUN: llvm-mc %s -arch=sparc   -show-encoding | FileCheck %s --check-prefix=SPARC32
2! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s --check-prefix=SPARC64
3
4        ! '.proc' is documented to do nothing in the binutils assembler.
5        ! so it should do nothing for clang either, i.e. not be an error.
6        .proc 1
7
8        ! SPARC32: .byte 24
9        ! SPARC64: .byte 24
10        .byte 24
11
12        ! SPARC32: .half 1024
13        ! SPARC64: .half 1024
14        .half 1024
15
16        ! SPARC32: .word 65536
17        ! SPARC64: .word 65536
18        .word 65536
19
20        ! SPARC32: .word 65536
21        ! SPARC64: .xword 65536
22        .nword 65536
23
24