[Bug c/63557] New: builtin __udivti3

postjb at gmx dot net gcc-bugzilla@gcc.gnu.org
Thu Oct 16 10:42:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63557

            Bug ID: 63557
           Summary: builtin __udivti3
           Product: gcc
           Version: 4.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: postjb at gmx dot net

Created attachment 33732
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33732&action=edit
test-source

__udivti3 doesn't work.
Any simple testcase fails.

build:###########
$ gcc tst.c -o tst -lm

file:###########
./tst: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux
2.6.4,                                       dynamically linked (uses shared
libs), not stripped

version:###########
$ gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/                                      usr/share/man
--libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c             
                        ++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-di                                
     r=/usr/include/c++/4.3 --enable-ssp --disable-libssp
--with-bugurl=http://bugs.o                                      pensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudfla            
                         p --with-slibdir=/lib64 --with-system-zlib
--enable-__cxa_atexit --enable-libstd                                     
cxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs                                      
--program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cp
                                     u=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)

run:################
$ ./tst
1310749
140734356054592

source:##############
unsigned long long a,b;
a = __udivti3(1000ULL,10ULL,&b);
printf("%llu\n",a);
printf("%llu\n",b);



More information about the Gcc-bugs mailing list