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