1; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
2
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+12
8
9define void @foo1(i32 %x) #1 {
10entry:
11  %cc = icmp eq i32 %x, 0
12  store volatile i1 %cc, i1* undef
13  ret void
14}
15
16define amdgpu_kernel void @kernel1(float %x) #0 {
17entry:
18  call void bitcast (void (i32)* @foo1 to void (float)*)(float %x)
19  ret void
20}
21
22attributes #0 = { nounwind "target-features"="+wavefrontsize32" }
23attributes #1 = { noinline nounwind "target-features"="+wavefrontsize64" }
24