1; Test that the -mcpu= option sets the correct ELF build attributes. 2 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 11 12; COMMON: BuildAttributes { 13; COMMON: FormatVersion: 0x41 14; COMMON: SectionLength: 22 15; COMMON: Vendor: mspabi 16; COMMON: Tag: Tag_File (0x1) 17; COMMON: Size: 11 18 19; MSP430: Tag: 4 20; MSP430-NEXT: Value: 1 21; MSP430-NEXT: TagName: ISA 22; MSP430-NEXT: Description: MSP430 23 24; MSP430X: Tag: 4 25; MSP430X-NEXT: Value: 2 26; MSP430X-NEXT: TagName: ISA 27; MSP430X-NEXT: Description: MSP430X 28 29; SMALL: Tag: 6 30; SMALL-NEXT: Value: 1 31; SMALL-NEXT: TagName: Code_Model 32; SMALL-NEXT: Description: Small 33 34; SMALL: Tag: 8 35; SMALL-NEXT: Value: 1 36; SMALL-NEXT: TagName: Data_Model 37; SMALL-NEXT: Description: Small 38 39define void @foo() { 40 ret void 41} 42