brintos

brintos / llvm-project-archived public Read only

0
0
Text · 566 B · d94b4cb Raw
16 lines · plain
1;RUN: llc < %s -mtriple=r600 -mcpu=redwood | FileCheck %s2 3;CHECK: MAX * T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}4 5define amdgpu_ps void @test(<4 x float> inreg %reg0) {6   %r0 = extractelement <4 x float> %reg0, i32 07   %r1 = extractelement <4 x float> %reg0, i32 18   %r2 = fcmp oge float %r0, %r19   %r3 = select i1 %r2, float %r0, float %r110   %vec = insertelement <4 x float> poison, float %r3, i32 011   call void @llvm.r600.store.swizzle(<4 x float> %vec, i32 0, i32 0)12   ret void13}14 15declare void @llvm.r600.store.swizzle(<4 x float>, i32, i32)16