Index: test/ExecutionEngine/MCJIT/big_shift.ll =================================================================== --- /dev/null +++ test/ExecutionEngine/MCJIT/big_shift.ll @@ -0,0 +1,16 @@ +; RUN: %lli %s > /dev/null + +define i32 @main() +{ + %b = call i256 @shift(i256 0) + + %ne = icmp ne i256 1, %b + %r = zext i1 %ne to i32 + ret i32 %r ; 0 means test passed +} + +define i256 @shift(i256 %c) +{ + %b = shl i256 1, %c ; %c must not be a constant + ret i256 %b +}