diff options
-rw-r--r-- | test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll b/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll new file mode 100644 index 0000000..f070338 --- /dev/null +++ b/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -instcombine -disable-output && +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep undef + +int %test(sbyte %A) { + %B = cast sbyte %A to int + %C = shr int %B, ubyte 8 + ret int %C +} + |