annotate llvm/test/CodeGen/AMDGPU/propagate-attributes-single-set.ll @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -O1 < %s | FileCheck -check-prefix=OPT %s
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 ; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes='default<O1>' < %s | FileCheck -check-prefix=OPT %s
150
anatofuz
parents:
diff changeset
3 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -verify-machineinstrs < %s | FileCheck -check-prefix=LLC %s
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 ; OPT: declare void @foo4() local_unnamed_addr #0
anatofuz
parents:
diff changeset
6 ; OPT: define void @foo3() local_unnamed_addr #1
anatofuz
parents:
diff changeset
7 ; OPT: define void @foo2() local_unnamed_addr #1
anatofuz
parents:
diff changeset
8 ; OPT: define void @foo1() local_unnamed_addr #1
anatofuz
parents:
diff changeset
9 ; OPT: define amdgpu_kernel void @kernel1() local_unnamed_addr #2
anatofuz
parents:
diff changeset
10 ; OPT: define amdgpu_kernel void @kernel2() local_unnamed_addr #2
anatofuz
parents:
diff changeset
11 ; OPT: attributes #0 = { {{.*}} "target-features"="+wavefrontsize64" }
anatofuz
parents:
diff changeset
12 ; OPT: attributes #1 = { {{.*}} "target-features"="{{.*}},-wavefrontsize16,+wavefrontsize32,-wavefrontsize64
anatofuz
parents:
diff changeset
13 ; OPT: attributes #2 = { {{.*}} "target-features"="+wavefrontsize32
anatofuz
parents:
diff changeset
14 ; OPT: attributes #3 = { nounwind }
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 ; LLC: foo3:
anatofuz
parents:
diff changeset
17 ; LLC: sample asm
anatofuz
parents:
diff changeset
18 ; LLC: foo2:
anatofuz
parents:
diff changeset
19 ; LLC: sample asm
anatofuz
parents:
diff changeset
20 ; LLC: foo1:
anatofuz
parents:
diff changeset
21 ; LLC: foo4@gotpcrel32@lo+4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
22 ; LLC: foo4@gotpcrel32@hi+12
150
anatofuz
parents:
diff changeset
23 ; LLC: foo3@gotpcrel32@lo+4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
24 ; LLC: foo3@gotpcrel32@hi+12
150
anatofuz
parents:
diff changeset
25 ; LLC: foo2@gotpcrel32@lo+4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
26 ; LLC: foo2@gotpcrel32@hi+12
150
anatofuz
parents:
diff changeset
27 ; LLC: foo1@gotpcrel32@lo+4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
28 ; LLC: foo1@gotpcrel32@hi+12
150
anatofuz
parents:
diff changeset
29 ; LLC: kernel1:
anatofuz
parents:
diff changeset
30 ; LLC: foo1@gotpcrel32@lo+4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
31 ; LLC: foo1@gotpcrel32@hi+12
150
anatofuz
parents:
diff changeset
32 ; LLC: kernel2:
anatofuz
parents:
diff changeset
33 ; LLC: foo2@gotpcrel32@lo+4
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
34 ; LLC: foo2@gotpcrel32@hi+12
150
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 declare void @foo4() #1
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 define void @foo3() #1 {
anatofuz
parents:
diff changeset
39 entry:
anatofuz
parents:
diff changeset
40 call void asm sideeffect "; sample asm", ""()
anatofuz
parents:
diff changeset
41 ret void
anatofuz
parents:
diff changeset
42 }
anatofuz
parents:
diff changeset
43
anatofuz
parents:
diff changeset
44 define void @foo2() #1 {
anatofuz
parents:
diff changeset
45 entry:
anatofuz
parents:
diff changeset
46 call void asm sideeffect "; sample asm", ""()
anatofuz
parents:
diff changeset
47 ret void
anatofuz
parents:
diff changeset
48 }
anatofuz
parents:
diff changeset
49
anatofuz
parents:
diff changeset
50 define void @foo1() #1 {
anatofuz
parents:
diff changeset
51 entry:
anatofuz
parents:
diff changeset
52 tail call void @foo4()
anatofuz
parents:
diff changeset
53 tail call void @foo3()
anatofuz
parents:
diff changeset
54 tail call void @foo2()
anatofuz
parents:
diff changeset
55 tail call void @foo2()
anatofuz
parents:
diff changeset
56 tail call void @foo1()
anatofuz
parents:
diff changeset
57 ret void
anatofuz
parents:
diff changeset
58 }
anatofuz
parents:
diff changeset
59
anatofuz
parents:
diff changeset
60 define amdgpu_kernel void @kernel1() #0 {
anatofuz
parents:
diff changeset
61 entry:
anatofuz
parents:
diff changeset
62 tail call void @foo1()
anatofuz
parents:
diff changeset
63 ret void
anatofuz
parents:
diff changeset
64 }
anatofuz
parents:
diff changeset
65
anatofuz
parents:
diff changeset
66 define amdgpu_kernel void @kernel2() #0 {
anatofuz
parents:
diff changeset
67 entry:
anatofuz
parents:
diff changeset
68 tail call void @foo2()
anatofuz
parents:
diff changeset
69 ret void
anatofuz
parents:
diff changeset
70 }
anatofuz
parents:
diff changeset
71
anatofuz
parents:
diff changeset
72 attributes #0 = { nounwind "target-features"="+wavefrontsize32" }
anatofuz
parents:
diff changeset
73 attributes #1 = { noinline nounwind "target-features"="+wavefrontsize64" }