X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FExecutionEngine%2F2003-01-09-SARTest.ll;h=560cd3eae9a2604a4adecfc84012304b81454ec5;hb=57c68f972cbc97c220989167bed6b5ef902c56df;hp=b19a93172fec285a9233bb9b5dd48d0f68e34152;hpb=4a8068f19a521f5b9d940e015985dadf9f7676cf;p=oota-llvm.git diff --git a/test/ExecutionEngine/2003-01-09-SARTest.ll b/test/ExecutionEngine/2003-01-09-SARTest.ll index b19a93172fe..560cd3eae9a 100644 --- a/test/ExecutionEngine/2003-01-09-SARTest.ll +++ b/test/ExecutionEngine/2003-01-09-SARTest.ll @@ -1,8 +1,11 @@ +; RUN: lli %s > /dev/null + ; We were accidentally inverting the signedness of right shifts. Whoops. -int %main() { - %X = shr int -1, ubyte 16 - %Y = shr int %X, ubyte 16 - %Z = add int %Y, 1 - ret int %Z +define i32 @main() { + %X = ashr i32 -1, 16 ; [#uses=1] + %Y = ashr i32 %X, 16 ; [#uses=1] + %Z = add i32 %Y, 1 ; [#uses=1] + ret i32 %Z } +