X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Fshiftdi.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Fshiftdi.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=44f0dfc2bced899019a90efa3088740dca8c44f5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/shiftdi.c b/gcc/testsuite/gcc.c-torture/execute/shiftdi.c deleted file mode 100644 index 44f0dfc2..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/shiftdi.c +++ /dev/null @@ -1,20 +0,0 @@ -/* Failed on sparc with -mv8plus because sparc.c:set_extends() thought - erroneously that SImode ASHIFT chops the upper bits, it does not. */ - -typedef unsigned long long uint64; - -void g(uint64 x, int y, int z, uint64 *p) -{ - unsigned w = ((x >> y) & 0xffffffffULL) << (z & 0x1f); - *p |= (w & 0xffffffffULL) << z; -} - -int main(void) -{ - uint64 a = 0; - g(0xdeadbeef01234567ULL, 0, 0, &a); - return (a == 0x01234567) ? 0 : 1; -} - - -