1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-win32 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Previously we would forget to align to stack slot alignment after placing a 4*9880d681SAndroid Build Coastguard Worker; byval argument. Subsequent arguments would align themselves, but if it was 5*9880d681SAndroid Build Coastguard Worker; the last argument, the argument size would not be a multiple of stack slot 6*9880d681SAndroid Build Coastguard Worker; size. This resulted in retl $6 in callee-cleanup functions, as well as subtle 7*9880d681SAndroid Build Coastguard Worker; varargs bugs. 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker%struct.Six = type { [6 x i8] } 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerdefine x86_stdcallcc void @f(%struct.Six* byval %a) { 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker} 14*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: _f@8: 15*9880d681SAndroid Build Coastguard Worker; CHECK: retl $8 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdefine x86_thiscallcc void @g(i8* %this, %struct.Six* byval %a) { 18*9880d681SAndroid Build Coastguard Worker ret void 19*9880d681SAndroid Build Coastguard Worker} 20*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: _g: 21*9880d681SAndroid Build Coastguard Worker; CHECK: retl $8 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerdefine x86_fastcallcc void @h(i32 inreg %x, i32 inreg %y, %struct.Six* byval %a) { 24*9880d681SAndroid Build Coastguard Worker ret void 25*9880d681SAndroid Build Coastguard Worker} 26*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @h@16: 27*9880d681SAndroid Build Coastguard Worker; CHECK: retl $8 28