brintos

brintos / llvm-project-archived public Read only

0
0
Text · 742 B · 29c3031 Raw
23 lines · c
1// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - -mstack-alignment=64 %s | FileCheck %s2// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s --check-prefix=DEFAULT3 4// CHECK-LABEL: define{{.*}} void @other()5// CHECK: [[OTHER:#[0-9]+]]6// CHECK: {7void other(void) {}8 9// CHECK-LABEL: define{{.*}} i32 @main(10// CHECK: [[MAIN:#[0-9]+]]11// CHECK: {12int main(int argc, char **argv) {13  other();14  return 0;15}16 17// CHECK: attributes [[OTHER]] = { noinline nounwind optnone18// CHECK-NOT: "stackrealign"19// CHECK: }20// CHECK: attributes [[MAIN]] = { noinline nounwind optnone {{.*}}"stackrealign"{{.*}} }21// CHECK: !{i32 1, !"override-stack-alignment", i32 64}22// DEFAULT-NOT: "override-stack-alignment"23