[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / directive-arch-armv4.s
blob78e97e7aee44aea3e18e334aa21f30fd42f2d225
1 @ Test the .arch directive for armv4
3 @ This test case will check the default .ARM.attributes value for the
4 @ armv4 architecture.
6 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
7 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
8 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
9 @ RUN: | llvm-readobj --arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
11 .syntax unified
12 .arch armv4
14 @ CHECK-ASM: .arch armv4
16 @ CHECK-ATTR: FileAttributes {
17 @ CHECK-ATTR: Attribute {
18 @ CHECK-ATTR: TagName: CPU_name
19 @ CHECK-ATTR: Value: 4
20 @ CHECK-ATTR: }
21 @ CHECK-ATTR: Attribute {
22 @ CHECK-ATTR: TagName: CPU_arch
23 @ CHECK-ATTR: Description: ARM v4
24 @ CHECK-ATTR: }
25 @ CHECK-ATTR: Attribute {
26 @ CHECK-ATTR: TagName: ARM_ISA_use
27 @ CHECK-ATTR: Description: Permitted
28 @ CHECK-ATTR: }
29 @ CHECK-ATTR: }
31 @ Check that multiplication is supported
32 mul r4, r5, r6
33 mla r4, r5, r6, r3
34 smull r4, r5, r6, r3
35 umull r4, r5, r6, r3
36 smlal r4, r5, r6, r3
37 umlal r4, r5, r6, r3