1; RUN: llc < %s -mtriple=thumbv7-none-linux-gnueabi -arm-atomic-cfg-tidy=0 | FileCheck %s 2; PR4659 3; PR4682 4 5define hidden i32 @__gcov_execlp(i8* %path, i8* %arg, ...) nounwind { 6entry: 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 19bb: ; preds = %bb, %entry 20 br i1 undef, label %bb5, label %bb 21 22bb5: ; 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 28declare hidden void @__gcov_flush() 29 30declare i32 @execvp(i8*, i8**) nounwind 31 32declare void @llvm.va_start(i8*) nounwind 33