xref: /llvm-project/llvm/test/Transforms/Internalize/stackguard.ll (revision a11faeed446882a81e79d780125d93e7199df645)
1cee313d2SEric Christopher; __stack_chk_guard and __stack_chk_fail should not be internalized.
2cee313d2SEric Christopher; RUN: opt < %s -passes=internalize -S | FileCheck %s
3*b2581196SJinsong Ji; RUN: opt -mtriple=powerpc64-ibm-aix-xcoff < %s -passes=internalize -S | FileCheck %s --check-prefix=AIX
4cee313d2SEric Christopher
5cee313d2SEric Christopher; CHECK: @__stack_chk_guard = hidden global [8 x i64] zeroinitializer, align 16
6*b2581196SJinsong Ji; AIX: @__stack_chk_guard = internal global [8 x i64] zeroinitializer, align 16
7cee313d2SEric Christopher@__stack_chk_guard = hidden global [8 x i64] zeroinitializer, align 16
8cee313d2SEric Christopher
9cee313d2SEric Christopher; CHECK: @__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
10*b2581196SJinsong Ji; AIX: @__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
11cee313d2SEric Christopher@__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
12*b2581196SJinsong Ji
13*b2581196SJinsong Ji; AIX: @__ssp_canary_word = hidden global [8 x i64] zeroinitializer, align 16
14*b2581196SJinsong Ji@__ssp_canary_word = hidden global [8 x i64] zeroinitializer, align 16
15