1 ; RUN: opt < %s -S -mtriple=amdgcn-unknown-amdhsa -passes=speculative-execution \
2 ; RUN: -spec-exec-max-speculation-cost 1 -spec-exec-max-not-hoisted 1 \
5 ; CHECK-LABEL: @ifThen_bitcast(
8 define void @ifThen_bitcast(i32 %y) {
9 br i1 true, label %a, label %b
12 %x = bitcast i32 %y to float
19 ; CHECK-LABEL: @ifThen_addrspacecast(
20 ; CHECK: addrspacecast
22 define void @ifThen_addrspacecast(ptr %y) {
23 br i1 true, label %a, label %b
25 %x = addrspacecast ptr %y to ptr addrspace(1)