42 lines · plain
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,SMALL5; RUN: llc -mtriple=msp430 -mcpu=generic -filetype=obj < %s \6; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430,SMALL7; RUN: llc -mtriple=msp430 -mcpu=msp430 -filetype=obj < %s \8; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430,SMALL9; RUN: llc -mtriple=msp430 -mcpu=msp430x -filetype=obj < %s \10; RUN: | llvm-readelf -A - | FileCheck %s --check-prefixes COMMON,MSP430X,SMALL11 12; COMMON: BuildAttributes {13; COMMON: FormatVersion: 0x4114; COMMON: SectionLength: 2215; COMMON: Vendor: mspabi16; COMMON: Tag: Tag_File (0x1)17; COMMON: Size: 1118 19; MSP430: Tag: 420; MSP430-NEXT: Value: 121; MSP430-NEXT: TagName: ISA22; MSP430-NEXT: Description: MSP43023 24; MSP430X: Tag: 425; MSP430X-NEXT: Value: 226; MSP430X-NEXT: TagName: ISA27; MSP430X-NEXT: Description: MSP430X28 29; SMALL: Tag: 630; SMALL-NEXT: Value: 131; SMALL-NEXT: TagName: Code_Model32; SMALL-NEXT: Description: Small33 34; SMALL: Tag: 835; SMALL-NEXT: Value: 136; SMALL-NEXT: TagName: Data_Model37; SMALL-NEXT: Description: Small38 39define void @foo() {40 ret void41}42