public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "postjb at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/63557] New: builtin __udivti3
Date: Thu, 16 Oct 2014 10:42:00 -0000	[thread overview]
Message-ID: <bug-63557-4@http.gcc.gnu.org/bugzilla/> (raw)

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);


             reply	other threads:[~2014-10-16 10:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16 10:42 postjb at gmx dot net [this message]
2014-10-16 10:46 ` [Bug c/63557] " rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-63557-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).