This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[arm-gun]inline asm problem


hi,

iam facing this problem in latest croosstool-ng1.7.1

/root/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc test.c
test.c: In function 'main':
test.c:13: error: can't find a register in class 'GENERAL_REGS' while
reloading 'asm'
test.c:13: error: 'asm' operand has impossible constraints

int main(void)
{
        unsigned int u32PosFrac;
        int s32PosInt;

        int s16CoeffOrg[100][100];
        unsigned int u32In3[(1024>>2)+4];
        unsigned int* pu8In4;  //pu8In4 = (UInt8*)u32In3;
        unsigned char*  u8Out;
        unsigned int u32Step;
        unsigned int u32TgtWidth;

        asm volatile (
                "\n\t"
                                :

//                              : "r" (pu8In4), "r" (s32PosInt), "r"
(s16CoeffOrg), "r" (u32PosFrac), "r" (u8Out), "r" (u32Step), "r"
(u32TgtWidth)
                                : "r" (pu8In4), "r" (s32PosInt), "r"
(s16CoeffOrg), "r" (u32PosFrac), "r" (u8Out), "r" (u32Step),"r"
(u32TgtWidth)
                                : "r2", "r3", "r4", "r5", "r6", "r7" , "r8"
                                );
        return 1;
}


 /root/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-unknown-linux-gnueabi
Configured with:
/data1/swapnil/BDPlayer/crosstool-ng-1.7.1/new/bin/targets/src/gcc-4.4.1/configure
--build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu
--target=arm-unknown-linux-gnueabi
--prefix=/root/x-tools/arm-unknown-linux-gnueabi
--with-sysroot=/root/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root
--enable-languages=c --disable-multilib
--with-pkgversion=crosstool-NG-1.7.1 --enable-__cxa_atexit
--with-gmp=/data1/swapnil/BDPlayer/crosstool-ng-1.7.1/new/bin/targets/arm-unknown-linux-gnueabi/build/static
--with-mpfr=/data1/swapnil/BDPlayer/crosstool-ng-1.7.1/new/bin/targets/arm-unknown-linux-gnueabi/build/static
--with-ppl=/data1/swapnil/BDPlayer/crosstool-ng-1.7.1/new/bin/targets/arm-unknown-linux-gnueabi/build/static
--with-cloog=/data1/swapnil/BDPlayer/crosstool-ng-1.7.1/new/bin/targets/arm-unknown-linux-gnueabi/build/static
--with-mpc=/data1/swapnil/BDPlayer/crosstool-ng-1.7.1/new/bin/targets/arm-unknown-linux-gnueabi/build/static
--enable-threads=posix
--with-local-prefix=/root/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root
--disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
--enable-target-optspace
Thread model: posix
gcc version 4.4.1 (crosstool-NG-1.7.1)

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]