1 // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - -mstack-alignment=64 %s | FileCheck %s
2 // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s --check-prefix=DEFAULT
4 // CHECK-LABEL: define{{.*}} void @other()
5 // CHECK: [[OTHER:#[0-9]+]]
9 // CHECK-LABEL: define{{.*}} i32 @main(
10 // CHECK: [[MAIN:#[0-9]+]]
12 int main(int argc
, char **argv
) {
17 // CHECK: attributes [[OTHER]] = { noinline nounwind optnone
18 // CHECK-NOT: "stackrealign"
20 // CHECK: attributes [[MAIN]] = { noinline nounwind optnone {{.*}}"stackrealign"{{.*}} }
21 // CHECK: !{i32 1, !"override-stack-alignment", i32 64}
22 // DEFAULT-NOT: "override-stack-alignment"