1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; This test checks a bug in R600TargetLowering::LowerSELECT_CC where the 4*9880d681SAndroid Build Coastguard Worker; chance to optimize the fcmp + select instructions to SET* was missed 5*9880d681SAndroid Build Coastguard Worker; due to the fact that the operands to fcmp and select had different types 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; CHECK: SET{{[A-Z]+}}_DX10 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine void @test(i32 addrspace(1)* %out, float addrspace(1)* %in) { 10*9880d681SAndroid Build Coastguard Workerentry: 11*9880d681SAndroid Build Coastguard Worker %0 = load float, float addrspace(1)* %in 12*9880d681SAndroid Build Coastguard Worker %cmp = fcmp oeq float %0, 0.000000e+00 13*9880d681SAndroid Build Coastguard Worker %value = select i1 %cmp, i32 -1, i32 0 14*9880d681SAndroid Build Coastguard Worker store i32 %value, i32 addrspace(1)* %out 15*9880d681SAndroid Build Coastguard Worker ret void 16*9880d681SAndroid Build Coastguard Worker} 17