Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc  %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
      2 ; RUN:    llvm-readobj -s -sd | FileCheck  -check-prefix=BASIC %s 
      3 ; RUN: llc  %s -mtriple=armv7-linux-gnueabi -march=arm -mcpu=cortex-a8 \
      4 ; RUN:    -mattr=-neon,-vfp3,+vfp2 \
      5 ; RUN:    -arm-reserve-r9 -filetype=obj -o - | \
      6 ; RUN:    llvm-readobj -s -sd | FileCheck  -check-prefix=CORTEXA8 %s
      7 
      8 
      9 ; This tests that the extpected ARM attributes are emitted.
     10 ;
     11 ; BASIC:        Section {
     12 ; BASIC:          Name: .ARM.attributes
     13 ; BASIC-NEXT:     Type: SHT_ARM_ATTRIBUTES
     14 ; BASIC-NEXT:     Flags [ (0x0)
     15 ; BASIC-NEXT:     ]
     16 ; BASIC-NEXT:     Address: 0x0
     17 ; BASIC-NEXT:     Offset: 0x3C
     18 ; BASIC-NEXT:     Size: 28
     19 ; BASIC-NEXT:     Link: 0
     20 ; BASIC-NEXT:     Info: 0
     21 ; BASIC-NEXT:     AddressAlignment: 1
     22 ; BASIC-NEXT:     EntrySize: 0
     23 ; BASIC-NEXT:     SectionData (
     24 ; BASIC-NEXT:       0000: 411B0000 00616561 62690001 11000000
     25 ; BASIC-NEXT:       0010: 06011401 15011703 18011901
     26 ; BASIC-NEXT:     )
     27 
     28 ; CORTEXA8:        Name: .ARM.attributes
     29 ; CORTEXA8-NEXT:     Type: SHT_ARM_ATTRIBUTES
     30 ; CORTEXA8-NEXT:     Flags [ (0x0)
     31 ; CORTEXA8-NEXT:     ]
     32 ; CORTEXA8-NEXT:     Address: 0x0
     33 ; CORTEXA8-NEXT:     Offset: 0x3C
     34 ; CORTEXA8-NEXT:     Size: 47
     35 ; CORTEXA8-NEXT:     Link: 0
     36 ; CORTEXA8-NEXT:     Info: 0
     37 ; CORTEXA8-NEXT:     AddressAlignment: 1
     38 ; CORTEXA8-NEXT:     EntrySize: 0
     39 ; CORTEXA8-NEXT:     SectionData (
     40 ; CORTEXA8-NEXT:       0000: 412E0000 00616561 62690001 24000000
     41 ; CORTEXA8-NEXT:       0010: 05434F52 5445582D 41380006 0A074108
     42 ; CORTEXA8-NEXT:       0020: 0109020A 02140115 01170318 011901
     43 ; CORTEXA8-NEXT:     )
     44 
     45 define i32 @f(i64 %z) {
     46        ret i32 0
     47 }
     48