[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Sparc / sparc-directives.s
blob5c8cd004d5777db07553f5c52749f15f50114c84
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
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
8 ! SPARC32: .byte 24
9 ! SPARC64: .byte 24
10 .byte 24
12 ! SPARC32: .half 1024
13 ! SPARC64: .half 1024
14 ! SPARC32: .half 1024
15 ! SPARC64: .half 1024
16 .half 1024
17 .uahalf 1024
19 ! SPARC32: .word 65536
20 ! SPARC64: .word 65536
21 ! SPARC32: .word 65536
22 ! SPARC64: .word 65536
23 .word 65536
24 .uaword 65536
26 ! SPARC32: .word 65536
27 ! SPARC64: .xword 65536
28 .nword 65536