Debian Codegraph @

llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll

raw
1 ;; Check that we accept functions with '$' in the name.
2 ; RUN: llc -mtriple=x86_64 < %s | FileCheck %s
3
4 ;; Check that we accept .Ldsolocal$local: below the function label.
5 ; RUN: llc -mtriple=x86_64 -relocation-model=pic < %s | FileCheck %s --check-prefix=PIC
6
7 ;; Check that we accept .seh_proc below the function label.
8 ; RUN: llc -mtriple=x86_64-windows -relocation-model=pic < %s | FileCheck %s --check-prefix=WIN
9
10 @gv0 = dso_local global i32 0, align 4
11 @gv1 = dso_preemptable global i32 0, align 4
12
13 define hidden i32 @"_Z54bar$ompvariant$bar"() {
14 entry:
15 ret i32 2
16 }
17
18 define dso_local i32 @dsolocal() {
19 entry:
20 call void @ext()
21 ret i32 2
22 }
23
24 declare void @ext()
25
26 define i32 @load() {
27 entry:
28 %a = load i32, i32* @gv0
29 %b = load i32, i32* @gv1
30 %c = add i32 %a, %b
31 ret i32 %c
32 }
33
34 declare i32 @pers(...)
35
36 define i32 @eh() personality ptr @pers {
37 ret i32 0
38 }