diff --git a/test/Regression/Transforms/InstCombine/shl-trunc.ll b/test/Regression/Transforms/InstCombine/shl-trunc.ll new file mode 100644 index 00000000000..fae0ce3d42c --- /dev/null +++ b/test/Regression/Transforms/InstCombine/shl-trunc.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl + +bool %test(int %X, ubyte %A) { + %B = lshr int %X, ubyte %A + %D = trunc int %B to bool + ret bool %D +}