Debian Codegraph @

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

raw
1 ;; Check that the function regex for VE works as expected.
2 ; RUN: llc -mtriple=ve -exception-model=sjlj -relocation-model=static < %s | FileCheck %s
3
4 ;; Check that we accept .Ldsolocal$local: below the function label.
5 ; RUN: llc -mtriple=ve -exception-model=sjlj -relocation-model=pic < %s | FileCheck %s --check-prefix=PIC
6
7
8 @gv0 = dso_local global i32 0, align 4
9 @gv1 = dso_preemptable global i32 0, align 4
10
11 define hidden i32 @"_Z54bar$ompvariant$bar"() {
12 entry:
13 ret i32 2
14 }
15
16 define dso_local i32 @dsolocal() {
17 entry:
18 call void @ext()
19 ret i32 2
20 }
21
22 declare void @ext()
23
24 define i32 @load() {
25 entry:
26 %a = load i32, i32* @gv0
27 %b = load i32, i32* @gv1
28 %c = add i32 %a, %b
29 ret i32 %c
30 }