Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/CodeGen/AMDGPU/propagate-attributes-bitcast-function.ll @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
8 ; GCN: foo1@gotpcrel32@hi+12 | 8 ; GCN: foo1@gotpcrel32@hi+12 |
9 | 9 |
10 define void @foo1(i32 %x) #1 { | 10 define void @foo1(i32 %x) #1 { |
11 entry: | 11 entry: |
12 %cc = icmp eq i32 %x, 0 | 12 %cc = icmp eq i32 %x, 0 |
13 store volatile i1 %cc, i1* undef | 13 store volatile i1 %cc, ptr undef |
14 ret void | 14 ret void |
15 } | 15 } |
16 | 16 |
17 define amdgpu_kernel void @kernel1(float %x) #0 { | 17 define amdgpu_kernel void @kernel1(float %x) #0 { |
18 entry: | 18 entry: |
19 call void bitcast (void (i32)* @foo1 to void (float)*)(float %x) | 19 call void @foo1(float %x) |
20 ret void | 20 ret void |
21 } | 21 } |
22 | 22 |
23 attributes #0 = { nounwind "target-features"="+wavefrontsize32" } | 23 attributes #0 = { nounwind "target-features"="+wavefrontsize32" } |
24 attributes #1 = { noinline nounwind "target-features"="+wavefrontsize64" } | 24 attributes #1 = { noinline nounwind "target-features"="+wavefrontsize64" } |