Mercurial > hg > CbC > CbC_llvm
view llvm/test/CodeGen/AMDGPU/vtx-fetch-branch.ll @ 206:f17a3b42b08b
Added tag before-12 for changeset b7591485f4cd
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Jun 2021 21:25:57 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line source
; RUN: llc -march=r600 -mcpu=redwood %s -o - | FileCheck %s ; This tests for a bug where vertex fetch clauses right before an ENDIF ; instruction where being emitted after the ENDIF. We were using ALU_POP_AFTER ; for the ALU clause before the vetex fetch instead of emitting a POP instruction ; after the fetch clause. ; CHECK-LABEL: {{^}}test: ; CHECK-NOT: ALU_POP_AFTER ; CHECK: TEX ; CHECK-NEXT: POP define amdgpu_kernel void @test(i32 addrspace(1)* %out, i32 addrspace(1)* %in, i32 %cond) { entry: %0 = icmp eq i32 %cond, 0 br i1 %0, label %endif, label %if if: %1 = load i32, i32 addrspace(1)* %in br label %endif endif: %x = phi i32 [ %1, %if], [ 0, %entry] store i32 %x, i32 addrspace(1)* %out br label %done done: ret void }