1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i386-pc-linux -mcpu=corei7 -relocation-model=static | FileCheck --check-prefix=X86 %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=corei7 -relocation-model=static | FileCheck --check-prefix=X64 %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker%Foo = type { [125 x i8] } 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdeclare i32 @llvm.eh.sjlj.setjmp(i8*) nounwind 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdeclare void @whatever(i64, %Foo*, i8**, i8*, i8*, i32) #0 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind uwtable "no-frame-pointer-elim"="true" } 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerdefine i32 @test1(i64 %n, %Foo* byval nocapture readnone align 8 %f) #0 { 15*9880d681SAndroid Build Coastguard Workerentry: 16*9880d681SAndroid Build Coastguard Worker %buf = alloca [5 x i8*], align 16 17*9880d681SAndroid Build Coastguard Worker %p = alloca i8*, align 8 18*9880d681SAndroid Build Coastguard Worker %q = alloca i8, align 64 19*9880d681SAndroid Build Coastguard Worker %r = bitcast [5 x i8*]* %buf to i8* 20*9880d681SAndroid Build Coastguard Worker %s = alloca i8, i64 %n, align 1 21*9880d681SAndroid Build Coastguard Worker store i8* %s, i8** %p, align 8 22*9880d681SAndroid Build Coastguard Worker %t = call i32 @llvm.eh.sjlj.setjmp(i8* %s) 23*9880d681SAndroid Build Coastguard Worker call void @whatever(i64 %n, %Foo* %f, i8** %p, i8* %q, i8* %s, i32 %t) #1 24*9880d681SAndroid Build Coastguard Worker ret i32 0 25*9880d681SAndroid Build Coastguard Worker; X86: movl %esp, %esi 26*9880d681SAndroid Build Coastguard Worker; X86: movl %esp, -16(%ebp) 27*9880d681SAndroid Build Coastguard Worker; X86: {{.LBB.*:}} 28*9880d681SAndroid Build Coastguard Worker; X86: movl -16(%ebp), %esi 29*9880d681SAndroid Build Coastguard Worker; X86: {{.LBB.*:}} 30*9880d681SAndroid Build Coastguard Worker; X64: movq %rsp, %rbx 31*9880d681SAndroid Build Coastguard Worker; X64: movq %rsp, -48(%rbp) 32*9880d681SAndroid Build Coastguard Worker; X64: {{.LBB.*:}} 33*9880d681SAndroid Build Coastguard Worker; X64: movq -48(%rbp), %rbx 34*9880d681SAndroid Build Coastguard Worker; X64: {{.LBB.*:}} 35*9880d681SAndroid Build Coastguard Worker} 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Worker 38