• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple i686-pc-linux < %s | FileCheck %s --check-prefix=X86
2; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck %s --check-prefix=X86_64
3
4; This test checks that the compiler emits a .note.gnu.property section for
5; modules with "cf-protection" module flags.
6
7; X86:      .section        .note.gnu.property,"a",@note
8; X86-NEXT: .p2align 2
9; X86-NEXT: .long    4
10; X86-NEXT: .long    12
11; X86-NEXT: .long    5
12; X86-NEXT: .asciz   "GNU"
13; X86-NEXT: .long    3221225474
14; X86-NEXT: .long    4
15; X86-NEXT: .long    3
16; X86-NEXT: .p2align 2
17
18; X86_64:      .section        .note.gnu.property,"a",@note
19; X86_64-NEXT: .p2align 3
20; X86_64-NEXT: .long    4
21; X86_64-NEXT: .long    16
22; X86_64-NEXT: .long    5
23; X86_64-NEXT: .asciz   "GNU"
24; X86_64-NEXT: .long    3221225474
25; X86_64-NEXT: .long    8
26; X86_64-NEXT: .quad    3
27; X86_64-NEXT: .p2align 3
28
29!llvm.module.flags = !{!0, !1}
30
31!0 = !{i32 4, !"cf-protection-return", i32 1}
32!1 = !{i32 4, !"cf-protection-branch", i32 1}
33