HomePhabricator

[X86][SSE] Add extra (sra (sra x, c1), c2) -> (sra x, (add c1, c2)) test case

Authored by RKSimon on Jul 21 2017, 3:22 AM.

Description

[X86][SSE] Add extra (sra (sra x, c1), c2) -> (sra x, (add c1, c2)) test case

We should be able to handle the case where some c1+c2 elements exceed max shift and some don't by performing a clamp after the sum

llvm-svn: 308724

Details

Committed
RKSimonJul 21 2017, 3:22 AM
Parents
rG32c377a1cfb0: [X86][SSE] Add pre-AVX2 support for (i32 bitcast(v32i1)) -> 2xMOVMSK
Branches
Unknown
Tags
Unknown