xref: /llvm-project/llvm/test/CodeGen/AArch64/note-gnu-property-gcs.ll (revision 40d5c2bcd41a534e6bab98fedf1a930d9bd165e7)
1; RUN: llc -mtriple=aarch64-linux %s               -o - | \
2; RUN:   FileCheck %s --check-prefix=ASM
3; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - | \
4; RUN:   llvm-readelf --notes - | FileCheck %s --check-prefix=OBJ
5
6define dso_local i32 @f() {
7entry:
8  ret i32 0
9}
10
11!llvm.module.flags = !{!0}
12
13!0 = !{i32 8, !"guarded-control-stack", i32 1}
14
15; GCS attribute present
16; ASM:	    .word	3221225472
17; ASM-NEXT:	.word	4
18; ASM-NEXT:	.word	4
19
20; OBJ: Properties: aarch64 feature: GCS
21