79 lines · plain
1; RUN: llc -mtriple=mipsel -mattr=mips16 -relocation-model=static -O3 < %s -mips-mixed-16-32 | FileCheck %s -check-prefix=162; RUN: llc -mtriple=mipsel -mcpu=mips32 -relocation-model=static -O3 < %s -mips-mixed-16-32 | FileCheck %s -check-prefix=323 4define void @foo() #0 {5entry:6 ret void7}8 9; 16: .set mips1610; 16: .ent foo11; 16: jrc $ra12; 16: .end foo13; 32: .set mips1614; 32: .ent foo15; 32: jrc $ra16; 32: .end foo17define void @nofoo() #1 {18entry:19 ret void20}21 22; 16: .set nomips1623; 16: .ent nofoo24; 16: .set noreorder25; 16: .set nomacro26; 16: .set noat27; 16: jr $ra28; 16: nop29; 16: .set at30; 16: .set macro31; 16: .set reorder32; 16: .end nofoo33; 32: .set nomips1634; 32: .ent nofoo35; 32: .set noreorder36; 32: .set nomacro37; 32: .set noat38; 32: jr $ra39; 32: nop40; 32: .set at41; 32: .set macro42; 32: .set reorder43; 32: .end nofoo44define i32 @main() #2 {45entry:46 ret i32 047}48 49; 16: .set nomips1650; 16: .ent main51; 16: .set noreorder52; 16: .set nomacro53; 16: .set noat54; 16: jr $ra55; 16: addiu $2, $zero, 056; 16: .set at57; 16: .set macro58; 16: .set reorder59; 16: .end main60 61; 32: .set nomips1662; 32: .ent main63; 32: .set noreorder64; 32: .set nomacro65; 32: .set noat66; 32: jr $ra67; 32: addiu $2, $zero, 068; 32: .set at69; 32: .set macro70; 32: .set reorder71; 32: .end main72 73 74 75 76attributes #0 = { nounwind "less-precise-fpmad"="false" "mips16" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }77attributes #1 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "nomips16" "use-soft-float"="false" }78attributes #2 = { nounwind "less-precise-fpmad"="false" "nomips16" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }79