1*9880d681SAndroid Build Coastguard Worker; NOTE: Assertions have been autogenerated by update_test_checks.py 2*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -S | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; PR1570 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine i32 @test2(float %X, float %Y) { 7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @test2( 8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: [[TMP3:%.*]] = fcmp ord float %X, %Y 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: [[TOBOOLNOT5:%.*]] = zext i1 [[TMP3]] to i32 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret i32 [[TOBOOLNOT5]] 11*9880d681SAndroid Build Coastguard Worker; 12*9880d681SAndroid Build Coastguard Worker %tmp3 = fcmp uno float %X, %Y 13*9880d681SAndroid Build Coastguard Worker %tmp34 = zext i1 %tmp3 to i8 14*9880d681SAndroid Build Coastguard Worker %tmp = xor i8 %tmp34, 1 15*9880d681SAndroid Build Coastguard Worker %toBoolnot5 = zext i8 %tmp to i32 16*9880d681SAndroid Build Coastguard Worker ret i32 %toBoolnot5 17*9880d681SAndroid Build Coastguard Worker} 18*9880d681SAndroid Build Coastguard Worker 19