brintos

brintos / llvm-project-archived public Read only

0
0
Text · 303 B · 6e38dbc Raw
13 lines · plain
1; RUN: %lli -jit-kind=mcjit %s > /dev/null2; RUN: %lli %s > /dev/null3 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 %Z11}12 13