1 ; Test that the -mcpu= option sets the correct ELF build attributes.
3 ; RUN: llc -mtriple=msp430 -filetype=obj < %s \
4 ; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430,SMALL
5 ; RUN: llc -mtriple=msp430 -mcpu=generic -filetype=obj < %s \
6 ; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430,SMALL
7 ; RUN: llc -mtriple=msp430 -mcpu=msp430 -filetype=obj < %s \
8 ; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430,SMALL
9 ; RUN: llc -mtriple=msp430 -mcpu=msp430x -filetype=obj < %s \
10 ; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430X,SMALL
12 ; COMMON: BuildAttributes {
13 ; COMMON: FormatVersion: 0x41
14 ; COMMON: SectionLength: 22
15 ; COMMON: Vendor: mspabi
16 ; COMMON: Tag: Tag_File (0x1)
20 ; MSP430-NEXT: Value: 1
21 ; MSP430-NEXT: TagName: ISA
22 ; MSP430-NEXT: Description: MSP430
25 ; MSP430X-NEXT: Value: 2
26 ; MSP430X-NEXT: TagName: ISA
27 ; MSP430X-NEXT: Description: MSP430X
30 ; SMALL-NEXT: Value: 1
31 ; SMALL-NEXT: TagName: Code_Model
32 ; SMALL-NEXT: Description: Small
35 ; SMALL-NEXT: Value: 1
36 ; SMALL-NEXT: TagName: Data_Model
37 ; SMALL-NEXT: Description: Small