xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll (revision caf22ec64a03bb2f02fd2e42756eb7ef83d5ac25)
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
13define hidden i32 @"_Z54bar$ompvariant$bar"() {
14entry:
15  ret i32 2
16}
17
18define dso_local i32 @dsolocal() {
19entry:
20  call void @ext()
21  ret i32 2
22}
23
24declare void @ext()
25
26define i32 @load() {
27entry:
28  %a = load i32, i32* @gv0
29  %b = load i32, i32* @gv1
30  %c = add i32 %a, %b
31  ret i32 %c
32}
33
34declare i32 @pers(...)
35
36define i32 @eh() personality ptr @pers {
37  ret i32 0
38}
39