xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/2003-01-09-SARTest.ll (revision c42c67ad60449fe19949f2664c2a5878b3f72b7e)
1; RUN: %lli -jit-kind=mcjit %s > /dev/null
2; RUN: %lli %s > /dev/null
3
4; We were accidentally inverting the signedness of right shifts.  Whoops.
5
6define i32 @main() {
7	%X = ashr i32 -1, 16		; <i32> [#uses=1]
8	%Y = ashr i32 %X, 16		; <i32> [#uses=1]
9	%Z = add i32 %Y, 1		; <i32> [#uses=1]
10	ret i32 %Z
11}
12
13