brintos

brintos / llvm-project-archived public Read only

0
0
Text · 572 B · b07bed8 Raw
17 lines · plain
1; RUN: llc < %s -mtriple=r600 -mcpu=redwood | FileCheck %s2 3; This test checks a bug in R600TargetLowering::LowerSELECT_CC where the4; chance to optimize the fcmp + select instructions to SET* was missed5; due to the fact that the operands to fcmp and select had different types6 7; CHECK: SET{{[A-Z]+}}_DX108 9define amdgpu_kernel void @test(ptr addrspace(1) %out, ptr addrspace(1) %in) {10entry:11  %0 = load float, ptr addrspace(1) %in12  %cmp = fcmp oeq float %0, 0.000000e+0013  %value = select i1 %cmp, i32 -1, i32 014  store i32 %value, ptr addrspace(1) %out15  ret void16}17