diff --git a/clang/test/CodeGen/stack-protector-guard.c b/clang/test/CodeGen/stack-protector-guard.c --- a/clang/test/CodeGen/stack-protector-guard.c +++ b/clang/test/CodeGen/stack-protector-guard.c @@ -1,8 +1,28 @@ -// RUN: %clang_cc1 -mstack-protector-guard=sysreg \ -// RUN: -mstack-protector-guard-reg=sp_el0 \ -// RUN: -mstack-protector-guard-offset=1024 \ -// RUN: -emit-llvm %s -o - | FileCheck %s -// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck --check-prefix=CHECK-NONE %s +// RUN: %clang_cc1 -mstack-protector-guard=sysreg -triple x86_64-unknown-unknown \ +// RUN: -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1024 \ +// RUN: -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -mstack-protector-guard=sysreg -triple powerpc64le-linux-gnu \ +// RUN: -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1024 \ +// RUN: -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -mstack-protector-guard=sysreg -triple arm-eabi-c \ +// RUN: -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1024 \ +// RUN: -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -mstack-protector-guard=sysreg -triple thumbv7-eabi-c \ +// RUN: -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1024 \ +// RUN: -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -mstack-protector-guard=sysreg -triple aarch64-linux-gnu \ +// RUN: -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1024 \ +// RUN: -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -emit-llvm %s -triple x86_64-unknown-unknown -o - \ +// RUN: | FileCheck --check-prefix=CHECK-NONE %s +// RUN: %clang_cc1 -emit-llvm %s -triple powerpc64le-linux-gnu -o - \ +// RUN: | FileCheck --check-prefix=CHECK-NONE %s +// RUN: %clang_cc1 -emit-llvm %s -triple arm-eabi-c -o - \ +// RUN: | FileCheck --check-prefix=CHECK-NONE %s +// RUN: %clang_cc1 -emit-llvm %s -triple thumbv7-eabi-c -o - \ +// RUN: | FileCheck --check-prefix=CHECK-NONE %s +// RUN: %clang_cc1 -emit-llvm %s -triple aarch64-linux-gnu -o - \ +// RUN: | FileCheck --check-prefix=CHECK-NONE %s void foo(int*); void bar(int x) { int baz[x];