Home | History | Annotate | Download | only in Thumb2
      1 ; RUN: llc < %s -mtriple=thumbv7-none-linux-gnueabi | FileCheck %s
      2 ; PR4659
      3 ; PR4682
      4 
      5 define hidden i32 @__gcov_execlp(i8* %path, i8* %arg, ...) nounwind {
      6 entry:
      7 ; CHECK: __gcov_execlp:
      8 ; CHECK: sub sp, #8
      9 ; CHECK: push
     10 ; CHECK: add r7, sp, #4
     11 ; CHECK: sub.w r4, r7, #4
     12 ; CHECK: mov sp, r4
     13 ; CHECK-NOT: mov sp, r7
     14 ; CHECK: add sp, #8
     15 	call void @__gcov_flush() nounwind
     16 	br i1 undef, label %bb5, label %bb
     17 
     18 bb:		; preds = %bb, %entry
     19 	br i1 undef, label %bb5, label %bb
     20 
     21 bb5:		; preds = %bb, %entry
     22 	%0 = alloca i8*, i32 undef, align 4		; <i8**> [#uses=1]
     23 	%1 = call i32 @execvp(i8* %path, i8** %0) nounwind		; <i32> [#uses=1]
     24 	ret i32 %1
     25 }
     26 
     27 declare hidden void @__gcov_flush()
     28 
     29 declare i32 @execvp(i8*, i8**) nounwind
     30