~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/ARM/directive-arch-armv7.s

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@ Test the .arch directive for armv7
 
2
 
 
3
@ This test case will check the default .ARM.attributes value for the
 
4
@ armv7 architecture.
 
5
 
 
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
 
10
 
 
11
        .syntax unified
 
12
        .arch   armv7
 
13
 
 
14
@ CHECK-ASM:    .arch   armv7
 
15
 
 
16
@ CHECK-ATTR: FileAttributes {
 
17
@ CHECK-ATTR:   Attribute {
 
18
@ CHECK-ATTR:     TagName: CPU_name
 
19
@ CHECK-ATTR:     Value: 7
 
20
@ CHECK-ATTR:   }
 
21
@ CHECK-ATTR:   Attribute {
 
22
@ CHECK-ATTR:     TagName: CPU_arch
 
23
@ CHECK-ATTR:     Description: ARM v7
 
24
@ CHECK-ATTR:   }
 
25
@ CHECK-ATTR:   Attribute {
 
26
@ CHECK-ATTR:     TagName: THUMB_ISA_use
 
27
@ CHECK-ATTR:     Description: Thumb-2
 
28
@ CHECK-ATTR:   }
 
29
@ CHECK-ATTR: }
 
30