brintos

brintos / llvm-project-archived public Read only

0
0
Text · 628 B · fbeb4ab Raw
31 lines · plain
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 \3; RUN:   | FileCheck %s4 5; CHECK-LABEL: @ifThen_bitcast(6; CHECK: bitcast7; CHECK: br i1 true8define void @ifThen_bitcast(i32 %y) {9  br i1 true, label %a, label %b10 11a:12  %x = bitcast i32 %y to float13  br label %b14 15b:16  ret void17}18 19; CHECK-LABEL: @ifThen_addrspacecast(20; CHECK: addrspacecast21; CHECK: br i1 true22define void @ifThen_addrspacecast(ptr %y) {23  br i1 true, label %a, label %b24a:25  %x = addrspacecast ptr %y to ptr addrspace(1)26  br label %b27 28b:29  ret void30}31