1 ; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=static -O3 < %s -mips-mixed-16-32 | FileCheck %s -check-prefix=16 2 3 define void @foo() #0 { 4 entry: 5 ret void 6 } 7 ; 16: .set nomips16 8 ; 16: .ent foo 9 ; 16: .set noreorder 10 ; 16: .set nomacro 11 ; 16: .set noat 12 ; 16: jr $ra 13 ; 16: nop 14 ; 16: .set at 15 ; 16: .set macro 16 ; 16: .set reorder 17 ; 16: .end foo 18 19 define void @nofoo() #1 { 20 entry: 21 ret void 22 } 23 24 ; 16: .set mips16 25 ; 16: .ent nofoo 26 27 ; 16: jrc $ra 28 ; 16: .end nofoo 29 30 define i32 @main() #2 { 31 entry: 32 ret i32 0 33 } 34 35 ; 16: .set nomips16 36 ; 16: .ent main 37 ; 16: .set noreorder 38 ; 16: .set nomacro 39 ; 16: .set noat 40 ; 16: jr $ra 41 ; 16: .set at 42 ; 16: .set macro 43 ; 16: .set reorder 44 ; 16: .end main 45 46 47 48 49 50 51 52 53 54 55 56 attributes #0 = { nounwind "less-precise-fpmad"="false" "nomips16" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } 57 attributes #1 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } 58 attributes #2 = { nounwind "less-precise-fpmad"="false" "nomips16" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } 59