xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/ve-basic.ll (revision 2cdf4225aab6976569127406ed917d4a0d826278)
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
11define hidden i32 @"_Z54bar$ompvariant$bar"() {
12entry:
13  ret i32 2
14}
15
16define dso_local i32 @dsolocal() {
17entry:
18  call void @ext()
19  ret i32 2
20}
21
22declare void @ext()
23
24define i32 @load() {
25entry:
26  %a = load i32, i32* @gv0
27  %b = load i32, i32* @gv1
28  %c = add i32 %a, %b
29  ret i32 %c
30}
31