File: execute-only-section.ll

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,245,028 kB
  • sloc: cpp: 7,619,726; ansic: 1,434,018; asm: 1,058,748; python: 252,740; f90: 94,671; objc: 70,685; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,675; awk: 3,523; javascript: 2,409; xml: 892; fortran: 770
file content (39 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
; RUN: llc -mtriple=aarch64 -mattr=+execute-only %s -o - | FileCheck %s

$test_comdat = comdat any

; CHECK:     .section .text,"axy",@progbits,unique,0
; CHECK-NOT: .section
; CHECK-NOT: .text
; CHECK:     .globl test_section_for_global
; CHECK:     .type test_section_for_global,@function
define void @test_section_for_global() {
entry:
  ret void
}

; CHECK:     .section .text.test_comdat,"axGy",@progbits,test_comdat,comdat,unique,0
; CHECK-NOT: .section
; CHECK-NOT: .text
; CHECK:     .weak test_comdat
; CHECK:     .type test_comdat,@function
define linkonce_odr void @test_comdat() comdat {
entry:
  ret void
}

; CHECK:     .section .test,"axy",@progbits
; CHECK-NOT: .section
; CHECK-NOT: .text
; CHECK:     .globl test_explicit_section_for_global
; CHECK:     .type test_explicit_section_for_global,@function
define void @test_explicit_section_for_global() section ".test" {
entry:
  ret void
}

; CHECK:     .rodata,"a",@progbits
; CHECK-NOT: .section
; CHECK-NOT: .text
; CHECK:     .globl test_rodata
@test_rodata = constant i32 0, align 4