xref: /llvm-project/llvm/test/MC/Sparc/sparc-directives.s (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1! RUN: llvm-mc %s -triple=sparc   -show-encoding | FileCheck %s --check-prefix=SPARC32
2! RUN: llvm-mc %s -triple=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 x (
7
8        ! '.register' is currently ignored.
9        .register 8-)
10
11        ! SPARC32: .byte 24
12        ! SPARC64: .byte 24
13        .byte 24
14
15        ! SPARC32: .half 1024
16        ! SPARC64: .half 1024
17        ! SPARC32: .half 1024
18        ! SPARC64: .half 1024
19        .half 1024
20        .uahalf 1024
21
22        ! SPARC32: .word 65536
23        ! SPARC64: .word 65536
24        ! SPARC32: .word 65536
25        ! SPARC64: .word 65536
26        .word 65536
27        .uaword 65536
28
29        ! SPARC32: .word 65536
30        ! SPARC64: .xword 65536
31        .nword 65536
32
33