[ARM] More MVE compare vector splat combines for ANDs
[llvm-complete.git] / test / CodeGen / AMDGPU / propagate-attributes-bitcast-function.ll
blobc1d8009d08b1f129b46d301e86042fb18f492ef0
1 ; RUN: llc -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
3 ; GCN: foo1:
4 ; v_cndmask_b32_e64 v0, 0, 1, vcc_lo{{$}}
5 ; GCN: kernel1:
6 ; GCN: foo1@gotpcrel32@lo+4
7 ; GCN: foo1@gotpcrel32@hi+4
9 define void @foo1(i32 %x) #1 {
10 entry:
11   %cc = icmp eq i32 %x, 0
12   store volatile i1 %cc, i1* undef
13   ret void
16 define amdgpu_kernel void @kernel1(float %x) #0 {
17 entry:
18   call void bitcast (void (i32)* @foo1 to void (float)*)(float %x)
19   ret void
22 attributes #0 = { nounwind "target-features"="+wavefrontsize32" }
23 attributes #1 = { noinline nounwind "target-features"="+wavefrontsize64" }