brintos

brintos / llvm-project-archived public Read only

0
0
Text · 946 B · 09e0572 Raw
38 lines · plain
1; RUN: llc -mtriple=amdgcn < %s | FileCheck -check-prefix=GCN %s2 3; GCN-LABEL: {{^}}test_dont_clobber_scc:4 5; GCN: ; %entry6; GCN:      s_cmp_eq_u32    s0, 07; GCN:      s_cbranch_scc1  [[EXIT:.LBB[0-9_]+]]8 9; GCN: ; %blocka10; GCN:      s_cmp_eq_u32    s1, 011; GCN:      s_cbranch_scc1  [[PREEXIT:.LBB[0-9_]+]]12 13; GCN: [[PREEXIT]]:14; GCN: [[EXIT]]:15 16define amdgpu_vs float @test_dont_clobber_scc(i32 inreg %uni, i32 inreg %uni2) #0 {17entry:18  %cc.uni = icmp eq i32 %uni, 019  br i1 %cc.uni, label %exit, label %blocka20 21blocka:22  call void asm sideeffect "; dummy a", ""()23  %cc.uni2 = icmp eq i32 %uni2, 024  br i1 %cc.uni2, label %exit, label %blockb25 26blockb:27  call void asm sideeffect "; dummy b", ""()28  br label %exit29 30exit:31  %cc.phi = phi i1 [ true, %entry ], [ false, %blocka ], [ false, %blockb ]32  call void asm sideeffect "; dummy exit", ""()33  %r = select i1 %cc.phi, float 1.0, float 2.034  ret float %r35}36 37attributes #0 = { nounwind }38