xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -S | grep "icmp ugt"
2*9880d681SAndroid Build Coastguard Worker; PR1107
3*9880d681SAndroid Build Coastguard Worker; PR1940
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine i1 @test(i8 %A, i8 %B) {
6*9880d681SAndroid Build Coastguard Worker	%a = zext i8 %A to i32
7*9880d681SAndroid Build Coastguard Worker	%b = zext i8 %B to i32
8*9880d681SAndroid Build Coastguard Worker	%c = icmp sgt i32 %a, %b
9*9880d681SAndroid Build Coastguard Worker	ret i1 %c
10*9880d681SAndroid Build Coastguard Worker}
11