X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Funsorted%2Fbf.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Funsorted%2Fbf.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=821623df09c02b73422e0f46817f206137d9ec3e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/unsorted/bf.c b/gcc/testsuite/gcc.c-torture/unsorted/bf.c deleted file mode 100644 index 821623df..00000000 --- a/gcc/testsuite/gcc.c-torture/unsorted/bf.c +++ /dev/null @@ -1,31 +0,0 @@ -typedef unsigned long uint32; -typedef signed long sint32; - -uint32 -ext (sint32 src, unsigned o5, unsigned w5) -{ - return (w5 == 0) ? src >> o5 : (src << (( - o5 - w5) & 31)) >> (32 - w5); -} - -uint32 -extu (uint32 src, unsigned o5, unsigned w5) -{ - return (w5 == 0) ? src >> o5 : (src << (( - o5 - w5) & 31)) >> (32 - w5); -} - -uint32 -mak (uint32 src, unsigned o5, unsigned w5) -{ - return (w5 == 0) ? src << o5 : (src << (32 - w5)) >> (( - o5 - w5) & 31); -} - -uint32 -rot (uint32 src, unsigned o5) -{ - return (src >> o5) | (src << (( - o5) & 31)); -} - -main (int argc, char **argv) -{ - printf ("%x\n", clr (0xffffffff, atoi (argv[2]), atoi (argv[1]))); -}