Last change for mips16 prolog/epilog cleanup and optimization.

Some tiny cosmetic code changes to follow. Because of the wide
ranging nature of the patch a full 24 test cycle was needed to
check against regression. This was the smallest patch I could
make to progress from the earlier ones in the series. 



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reed Kotler
2013-12-15 20:49:30 +00:00
parent 08e647a771
commit 3589b7b808
21 changed files with 153 additions and 237 deletions

View File

@@ -1,7 +1,7 @@
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=NEG
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=NEG
@f = common global float 0.000000e+00, align 4
; Function Attrs: nounwind
@@ -14,8 +14,8 @@ entry:
call void @x(i8* %arraydecay1)
ret void
; CHECK: .ent foo1
; CHECK: save $ra, $16, $17, [[FS:[0-9]+]] # 16 bit inst
; CHECK: restore $ra, $16, $17, [[FS]]
; CHECK: save $16, $17, $ra, [[FS:[0-9]+]] # 16 bit inst
; CHECK: restore $16, $17, $ra, [[FS]] # 16 bit inst
; CHECK: .end foo1
}
@@ -31,13 +31,9 @@ entry:
call void @x(i8* %arraydecay1)
ret void
; CHECK: .ent foo2
; CHECK: save $ra, $16, $17, [[FS:[0-9]+]]
; CHECK: restore $ra, $16, $17, [[FS]]
; CHECK: save $16, $17, $ra, [[FS:[0-9]+]]
; CHECK: restore $16, $17, $ra, [[FS]]
; CHECK: .end foo2
; NEG: .ent foo2
; NEG-NOT: save $ra, $16, $17, [[FS:[0-9]+]] # 16 bit inst
; NEG-NOT: restore $ra, $16, $17, [[FS]] # 16 bit inst
; NEG: .end foo2
}
; Function Attrs: nounwind
@@ -47,12 +43,12 @@ entry:
store float %call, float* @f, align 4
ret void
; CHECK: .ent foo3
; CHECK: save $ra, $16, $17, [[FS:[0-9]+]], $18
; CHECK: restore $ra, $16, $17, [[FS]], $18
; CHECK: save $16, $17, $ra, $18, [[FS:[0-9]+]]
; CHECK: restore $16, $17, $ra, $18, [[FS]]
; CHECK: .end foo3
; NEG: .ent foo3
; NEG-NOT: save $ra, $16, $17, [[FS:[0-9]+]], $18 # 16 bit inst
; NEG-NOT: restore $ra, $16, $17, [[FS]], $18 # 16 bit inst
; NEG-NOT: save $16, $17, $ra, $18, [[FS:[0-9]+]] # 16 bit inst
; NEG-NOT: restore $16, $17, $ra, $18, [[FS]] # 16 bit inst
; NEG: .end foo3
}