xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -S | not grep i41
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine i61 @test1(i61 %X) {
4*9880d681SAndroid Build Coastguard Worker        %Y = trunc i61 %X to i41 ;; Turn i61o an AND
5*9880d681SAndroid Build Coastguard Worker        %Z = zext i41 %Y to i61
6*9880d681SAndroid Build Coastguard Worker        ret i61 %Z
7*9880d681SAndroid Build Coastguard Worker}
8*9880d681SAndroid Build Coastguard Worker
9