similar to: [LLVMdev] bug in llvm-gcc implementation of long long

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] bug in llvm-gcc implementation of long long"

2006 Sep 04
0
[LLVMdev] bug in llvm-gcc implementation of long long
On Mon, 4 Sep 2006, [UTF-8] Rafael Esp?ndola wrote: > Compiling the following C code > ------------------------------------------ > long %f4() { > entry: > ret long -2147483648 > } > ------------------------------------------ I get this: long %f4() { entry: ret long 2147483648 } What does the preprocessed output of that function look like? -Chris --
2006 Sep 04
2
[LLVMdev] bug in llvm-gcc implementation of long long
> What does the preprocessed output of that function look like? long long f4(void) { return (long long)2147483647 + 1; } Using 2147483648LL directly causes the same problem. > -Chris Best Regards, Rafael
2006 Sep 04
0
[LLVMdev] bug in llvm-gcc implementation of long long
On Mon, 4 Sep 2006, [UTF-8] Rafael Esp?ndola wrote: >> What does the preprocessed output of that function look like? > long long f4(void) { > return (long long)2147483647 + 1; > } > > Using 2147483648LL directly causes the same problem. What target triple? -Chris -- http://nondot.org/sabre/ http://llvm.org/
2006 Sep 05
0
[LLVMdev] bug in llvm-gcc implementation of long long
Rafael EspĂ­ndola wrote: > return (long long)INT_MAX + 1; does it work in ordinary gcc? I recall I had a problem with this in an earlier version of gcc, maybe they still haven't fixed it. m.
2006 Sep 04
2
[LLVMdev] bug in llvm-gcc implementation of long long
> What target triple? i486-linux-gnu > -Chris Rafael
2006 Sep 05
2
[LLVMdev] bug in llvm-gcc implementation of long long
> does it work in ordinary gcc? I recall I had a problem with this in an earlier version of gcc, maybe they still haven't > fixed it. I have just compiled revision 102 without --enable-llvm and the resulting code correctly sets edx to 0. Time to try gdb. Rafael
2019 Sep 21
2
[PATCH nbdkit] server: public: Add nbdkit_parse_* functions for safely parsing integers.
sscanf is sadly not safe (because it doesn't handle integer overflow correctly), and strto*l functions are a pain to use correctly. Therefore add some functions to hide the pain of parsing integers from the command line. The simpler uses of sscanf and strto*l are replaced. There are still a few where we are using advanced features of sscanf. --- docs/nbdkit-plugin.pod | 48
2006 Sep 05
0
[LLVMdev] bug in llvm-gcc implementation of long long
> Time to try gdb. The problem was a cast of a 32 bits signed number to a 64 unsigned number. A patch is attached. I am currently trying a bootstrap to make sure this doesn't brake anything. Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: gcc-long-long.patch Type: application/octet-stream Size: 1090 bytes Desc: not available URL:
2019 Sep 23
2
Re: [PATCH nbdkit] server: public: Add nbdkit_parse_* functions for safely parsing integers.
On Mon, Sep 23, 2019 at 12:05:11PM -0500, Eric Blake wrote: > > + int nbdkit_parse_long (const char *what, const char *str, long *r); > > + int nbdkit_parse_unsigned_long (const char *what, > > + const char *str, unsigned long *r); > > Do we really want to encourage the use of parse_long and > parse_unsigned_long? Those differ between
2012 Aug 06
4
[LLVMdev] Casting from float to unsigned char - incorrect output?
I am compiling the following code for the MIPS architecture: unsigned char trunc(float f) { return (unsigned char) f; } and it produces the following assembly (directives removed for convenience: trunc: trunc.w.s $f0, $f12 mfc1 $2, $f0 jr $ra nop However, this does not seem to produce the correct output for negative numbers. When I run the following code, I get
2012 Dec 17
3
getdents spinning on 0x7fffffff
I was flipping through the code recently and noticed that we still have the double whammy of allocating dir entry positions with parent_dir->counter++ and that weird setting of f_pos to 2^31-1. So after enough creates (and deletes :)) in a directory we end up with an entry item whose key is past that value. f_pos gets rewound instead of being set to that magical EOF. readdir() gets stuck
2007 Jun 21
3
[LLVMdev] hacked up llvm-gcc bootstraps on linux-x86_64
Bugs 1519 and 1521 currently prevent a clean bootstrap on Linux x86_64. I was able to hack it to work :-) The attached patch includes two parts. One is a tentative fix bug 1519: just set LastFieldStartsAtNonByteBoundry in allFieldsAreNotBitFields. The other one is a plain hack. llvm-gcc and gcc disagree on how to pass some structures, so stage2 gcc fails to use the libcpp compiled by gcc. So I
2011 Nov 22
1
Problem compiling dovecot 2.1 Beta1 under Solaris 10 on SPARC
Hello, compiling dovecot 2.1 Beta1 under Solaris 10 on SPARC with Sun Studio 11 stops with the following error: Making all in lib-imap-client gmake[3]: Entering directory `/net/fileserv/export/sunsrc/src/dovecot-2.1.beta1/src/lib-imap-client' source='imapc-client.c' object='imapc-client.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
2006 Sep 04
0
[LLVMdev] bug in llvm-gcc implementation of long long
On Mon, 4 Sep 2006, [UTF-8] Rafael Esp?ndola wrote: >> What target triple? > i486-linux-gnu Okay, that is very very strange. This sounds like a failure in the GCC part of the compiler somehow, as constant+constant is folded before we get to it. Can you try to track this down a bit to see what is going wrong? -Chris -- http://nondot.org/sabre/ http://llvm.org/
2015 Feb 08
2
[LLVMdev] RFC: Proposal to Remove Poison
On Sun, Feb 8, 2015 at 8:38 AM, Hal Finkel <hfinkel at anl.gov> wrote: > > Currently, we might replace: > %cmp = icmp sgt i32 undef, INT_MAX -> i1 false > > According to this proposal, we could replace: > %cmp = icmp sgt i32 undef, INT_MAX -> i1 undef > > While replacing it with false is still allowed, so is replacing it with > true. I'm not sure this
2015 Jan 30
0
[LLVMdev] RFC: Proposal for Poison Semantics
But (Poison > INT_MAX) <=> poison contradicts (X > INT_MAX) <=> false and I don't think you want to abandon the second rule just because x might be poison. - Matthias > On Jan 29, 2015, at 9:43 PM, Sanjoy Das <sanjoy at playingwithpointers.com> wrote: > > One way around this is to say that there are some special > instructions, icmp, sext and zext which
2012 Jul 11
2
[LLVMdev] [NVPTX] llc -march=nvptx64 -mcpu=sm_20 generates invalid zero align for device function params
Hello, FYI, this is a bug http://llvm.org/bugs/show_bug.cgi?id=13324 When compiling the following code for sm_20, func params are by some reason given with .align 0, which is invalid. Problem does not occur if compiled for sm_10. > cat test.ll ; ModuleID = '__kernelgen_main_module' target datalayout = "e-p:64:64-i64:64:64-f64:64:64-n1:8:16:32:64" target triple =
2015 Jan 30
2
[LLVMdev] RFC: Proposal for Poison Semantics
On Thu, Jan 29, 2015 at 10:01 PM, Matthias Braun <matze at braunis.de> wrote: > But > (Poison > INT_MAX) <=> poison > contradicts > (X > INT_MAX) <=> false > > and I don't think you want to abandon the second rule just because x might be poison. Maybe we could define poison in such a way that it is safe to pretend it "is" false, as per our
2016 Sep 27
4
Inferring nsw/nuw flags for increment/decrement based on relational comparisons
On 2016-09-27 02:28, Philip Reames wrote: > On 09/20/2016 12:05 PM, Matti Niemenmaa via llvm-dev wrote: >> I posted some questions related to implementing inference of nsw/nuw >> flags based on known icmp results to Bug 30428 ( >> https://llvm.org/bugs/show_bug.cgi?id=30428 ) and it was recommended >> that I engage a wider audience by coming here. The minimal context is
2018 Sep 07
1
[PATCH net-next 11/11] vhost_net: batch submitting XDP buffers to underlayer sockets
On Fri, Sep 07, 2018 at 03:41:52PM +0800, Jason Wang wrote: > > > @@ -556,10 +667,14 @@ static void handle_tx_copy(struct vhost_net *net, struct socket *sock) > > > size_t len, total_len = 0; > > > int err; > > > int sent_pkts = 0; > > > + bool bulking = (sock->sk->sk_sndbuf == INT_MAX); > > What does bulking mean? > > The