X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FExecutionEngine%2F2003-01-09-SARTest.ll;h=ed58e118437769e014f56fb18189c26171336ee7;hb=e26874556b04c86bc7faee342ce69b3ec496460b;hp=00899ec2431cdc2fd0a4ccc787d08496d5ddf9ed;hpb=e9789ef994ba9761af87baf6e6b5953adba3968b;p=oota-llvm.git diff --git a/test/ExecutionEngine/2003-01-09-SARTest.ll b/test/ExecutionEngine/2003-01-09-SARTest.ll index 00899ec2431..ed58e118437 100644 --- a/test/ExecutionEngine/2003-01-09-SARTest.ll +++ b/test/ExecutionEngine/2003-01-09-SARTest.ll @@ -1,11 +1,11 @@ -; RUN: llvm-as -f %s -o %t.bc -; RUN: lli %t.bc > /dev/null +; 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 } +