xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/apint-mul1.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; This test makes sure that mul instructions are properly eliminated.
2*9880d681SAndroid Build Coastguard Worker; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
3*9880d681SAndroid Build Coastguard Worker;
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -S | not grep mul
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine i17 @test1(i17 %X) {
9*9880d681SAndroid Build Coastguard Worker    %Y = mul i17 %X, 1024
10*9880d681SAndroid Build Coastguard Worker    ret i17 %Y
11*9880d681SAndroid Build Coastguard Worker}
12