Displaying 20 results from an estimated 167 matches for "int32_max".
Did you mean:
uint32_max
2012 Mar 16
2
[PATCH v3] use INT64_MAX as max expiration
Change from v2:
Correct the logic when calculating icount.
Change from v1:
According to Jan and Stefano''s comments, drop the previous logic which setting the value in an arbitrary way and use Stefano''s suggestion instead.
Currently, the max expiration time is 2147483647ns(INT32_MAX ns). This is enough when guest is busy, but when guest is idle, the next timer will be later than INT32_MAX ns. And those meaningless alarm will harm the pkg C-state.
PS: Since the overflow will not happen with the expression((delta / 1000) + (delta % 1000 > 0 ? 1 : 0)), so i also removed the c...
2015 May 19
3
[LLVMdev] Sporadic "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN" failures with MCJIT on Windows
Hi,
We are seeing sporadic crashes since we migrated to MCJIT on Win64. The
same tests pass without issues on Mac64 and Linux64. The issue is this
assertion failure in RuntimeDyldELF.c:
RealOffset <= INT32_MAX && RealOffset >= INT32_MIN
I haven't managed to successfully catch the failure in Visual to try and
debug it. Any tips on how to make progress?
Oh, and we're on LLVM 3.5.
Thanks.
Ram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://li...
2015 May 22
2
[LLVMdev] Sporadic "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN" failures with MCJIT on Windows
...gmail.com>
> wrote:
>
>> Hi,
>>
>> We are seeing sporadic crashes since we migrated to MCJIT on Win64. The
>> same tests pass without issues on Mac64 and Linux64. The issue is this
>> assertion failure in RuntimeDyldELF.c:
>>
>> RealOffset <= INT32_MAX && RealOffset >= INT32_MIN
>>
>> I haven't managed to successfully catch the failure in Visual to try and
>> debug it. Any tips on how to make progress?
>>
>> Oh, and we're on LLVM 3.5.
>>
>> Thanks.
>>
>> Ram
>>
>>...
2015 May 22
2
[LLVMdev] Sporadic "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN" failures with MCJIT on Windows
...;>>>
>>>> We are seeing sporadic crashes since we migrated to MCJIT on Win64. The
>>>> same tests pass without issues on Mac64 and Linux64. The issue is this
>>>> assertion failure in RuntimeDyldELF.c:
>>>>
>>>> RealOffset <= INT32_MAX && RealOffset >= INT32_MIN
>>>>
>>>> I haven't managed to successfully catch the failure in Visual to try
>>>> and debug it. Any tips on how to make progress?
>>>>
>>>> Oh, and we're on LLVM 3.5.
>>>>
>>...
2015 May 23
2
[LLVMdev] Sporadic "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN" failures with MCJIT on Windows
...Dale
>
>
> ------------------------------
> *From:* Lang Hames <lhames at gmail.com>
> *Sent:* Friday, May 22, 2015 7:55 PM
> *To:* Keno Fischer
> *Cc:* Ramkumar Ramachandra; Peng Cheng; LLVMdev; Dale Martin
> *Subject:* Re: [LLVMdev] Sporadic "RealOffset <= INT32_MAX && RealOffset
> >= INT32_MIN" failures with MCJIT on Windows
>
>
> On Fri, May 22, 2015 at 4:14 PM, Keno Fischer <
> kfischer at college.harvard.edu> wrote:
>
>> This might be related to GOT relocations. I rewrote that part of
>> RuntimeDyldELFbe...
2011 Dec 06
1
[LLVMdev] The nsw story
...ecause there's no 32-bit value
>> the undef could take which sign-extends into that 64-bit value.
>>
>
> But since the add nsw returns undef, then isn't c "sext i32 undef to
> i64"
Yes.
> and thus also undef?
No: it's some value between INT32_MIN and INT32_MAX. Think of undef
as a read from an arbitrary register: you can't predict what it will
contain, but you know it contains some representable value.
-Eli
2015 Jan 09
3
[RESEND/PATCH] nv50/ir: Handle OP_CVT when folding constant expressions
...i->setSrc(0, bld.mkImm(res.data.u16));
+ break;
+ case TYPE_U32:
+ switch (i->sType) {
+ case TYPE_F32:
+ if (i->saturate)
+ res.data.u32 = util_iround(CLAMP(imm0.reg.data.f32, 0,
+ UINT32_MAX));
+ else
+ res.data.u32 = util_iround(imm0.reg.data.f32);
+ break;
+ case TYPE_F64:
+ if (i->saturate)
+ res.data.u32 = util_iround(CLAMP(imm0.reg.data.f64, 0,
+ UINT32_MAX));
+...
2014 Jul 05
1
[PATCH v4] nv50/ir: Handle OP_CVT when folding constant expressions
...se TYPE_U32:
+ switch (i->sType) {
+ case TYPE_F32:
+ if (i->saturate) {
+ int32_t conv = util_iround(imm0.reg.data.f32);
+ res.data.u32 = (conv < 0) ? 0 : CLAMP((uint32_t)conv, 0,
+ UINT32_MAX);
+ }
+ else res.data.u32 = util_iround(imm0.reg.data.f32);
+ break;
+ case TYPE_F64:
+ if (i->saturate) {
+ int32_t conv = util_iround(imm0.reg.data.f64);
+ res.data.u32 = (conv < 0) ? 0 : CLAMP((uint32_t)conv, 0...
2013 Jan 29
3
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...elocation:
uint64_t FinalAddress = Section.LoadAddress + Offset;
int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress;
fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n",
*Placeholder, Value, Addend, FinalAddress, RealOffset);
assert(RealOffset <= INT32_MAX && RealOffset >= INT32_MIN);
This is what I get for system malloc:
0 + 7fec9867a000 + 0 - 7fec9867a040 = ffffffffffffffc0
This is what I get for ASan allocator (which results in assert failure):
0 + 600c0000a8a0 + 0 - 6018000090a0 = fffffff400001800
--
Alexey Samsonov, MSK
--------...
2014 Jul 22
2
[LLVMdev] [LLVMDev][3.5]: assertion failed in RuntimeDyldELF.cpp
...***********
Script:
--
/cygdrive/z/dev/llvm/x64/static/Release+Asserts/bin/lli -use-mcjit
-mtriple=x86_64-unknown-cygwin-elf
/cygdrive/z/dev/llvm/x64/llvm/test/ExecutionEngine/MCJIT/test-setcond-fp.ll
> /dev/null
--
Exit Code: 134
Command Output (stderr):
--
assertion "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN" failed:
file
"/cygdrive/z/dev/llvm/x64/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp",
line 308, function: void
llvm::RuntimeDyldELF::resolveX86_64Relocation(const llvm::SectionEntry&,
uint64_t, uint64_t, uint32_t, int64_t, ui...
2013 Jul 24
1
QCONST16 cross compile inconsistency
...(opus_val16)( 0.5 + (double)(x) * (double)((opus_val32)(1)<<(bits))) )
+
+/** Compile-time conversion of float constant to 32-bit value */
+#define QCONST32(x,bits) (opus_val32)( \
+ (( 0.5 + (double)(x) * ((opus_val32)(1)<<(bits)) ) >= (double)(INT32_MAX) ) ? \
+ (opus_val32)(INT32_MAX) : \
+ (opus_val32)( 0.5 + (double)(x) * (double)((opus_val32)(1)<<(bits))) )
+
#ifdef FIXED_DEBUG
#include "fixed_debug.h"
#else
diff --git a/celt/fixed_debug.h b/celt/fixed_debug.h
index f11d890..a4...
2015 Jan 10
0
[RESEND/PATCH] nv50/ir: Handle OP_CVT when folding constant expressions
...s.data.u16));
> + break;
> + case TYPE_U32:
> + switch (i->sType) {
> + case TYPE_F32:
> + if (i->saturate)
> + res.data.u32 = util_iround(CLAMP(imm0.reg.data.f32, 0,
> + UINT32_MAX));
> + else
> + res.data.u32 = util_iround(imm0.reg.data.f32);
> + break;
> + case TYPE_F64:
> + if (i->saturate)
> + res.data.u32 = util_iround(CLAMP(imm0.reg.data.f64, 0,
> +...
2004 Jul 14
1
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared (first use this function)
...for
each function it appears in.)
Constants.cpp:368: error: `INT8_MIN' undeclared (first use this function)
Constants.cpp:370: error: `INT16_MAX' undeclared (first use this function)
Constants.cpp:370: error: `INT16_MIN' undeclared (first use this function)
Constants.cpp:372: error: `INT32_MAX' undeclared (first use this function)
Constants.cpp:372: error: `INT32_MIN' undeclared (first use this function)
Constants.cpp: In static member function `static bool
llvm::ConstantUInt::isValueValidForType(const llvm::Type*, long long
unsigned int)':
Constants.cpp:387: error: `UI...
2014 Jul 06
0
[PATCH v5] nv50/ir: Handle OP_CVT when folding constant expressions
...i->setSrc(0, bld.mkImm(res.data.u16));
+ break;
+ case TYPE_U32:
+ switch (i->sType) {
+ case TYPE_F32:
+ if (i->saturate)
+ res.data.u32 = util_iround(CLAMP(imm0.reg.data.f32, 0,
+ UINT32_MAX));
+ else
+ res.data.u32 = util_iround(imm0.reg.data.f32);
+ break;
+ case TYPE_F64:
+ if (i->saturate)
+ res.data.u32 = util_iround(CLAMP(imm0.reg.data.f64, 0,
+ UINT32_MAX));
+...
2015 Jan 10
2
[PATCH v2] nv50/ir: Handle OP_CVT when folding constant expressions
...i->setSrc(0, bld.mkImm(res.data.u16));
+ break;
+ case TYPE_U32:
+ switch (i->sType) {
+ case TYPE_F32:
+ if (i->saturate)
+ res.data.u32 = util_iround(CLAMP(imm0.reg.data.f32, 0,
+ UINT32_MAX));
+ else
+ res.data.u32 = util_iround(imm0.reg.data.f32);
+ break;
+ default:
+ return;
+ }
+ i->setSrc(0, bld.mkImm(res.data.u32));
+ break;
+ case TYPE_S16:
+ switch (i->sType) {
+ case TYPE...
2014 Jul 25
2
[LLVMdev] [LLVMDev][3.5]: assertion failed in RuntimeDyldELF.cpp
...in/lli -use-mcjit
> -mtriple=x86_64-unknown-cygwin-elf
> /cygdrive/z/dev/llvm/x64/llvm/test/ExecutionEngine/MCJIT/test-setcond-fp.ll
> > /dev/null
> --
> Exit Code: 134
>
> Command Output (stderr):
> --
> assertion "RealOffset <= INT32_MAX && RealOffset >= INT32_MIN"
> failed: file
> "/cygdrive/z/dev/llvm/x64/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp",
> line 308, function: void
> llvm::RuntimeDyldELF::resolveX86_64Relocation(const
> llvm::SectionEntry&, u...
2017 Sep 28
2
Clang/LLVM JIT - When to use "registerEHFrames()"
...e original function, but my exception won't be caught! It's an
exception raised inside the JITTED code and should also catched there.
I tried loading the "msvcrt.lib" as a archive. That was... a bad idea! I
get a Exception while loading:
Assertion failed: ((int64_t)Result <= INT32_MAX) && "Relocation overflow",
file \lib\executionengine\runtimedyld\Targets/RuntimeDyldCOFFX86_64.h,
line 81
Research didn't helped me! My code was compiled with /MD, but it didn't
changed. So I'm still stupid D:
The JITTED code must be loaded to shared memory later -...
2013 Jan 30
2
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...ress + Offset;****
>
> int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress;****
>
> fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n",****
>
> *Placeholder, Value, Addend, FinalAddress, RealOffset);****
>
> assert(RealOffset <= INT32_MAX && RealOffset >= INT32_MIN);****
>
> ** **
>
> ** **
>
> This is what I get for system malloc:****
>
> ** **
>
> 0 + 7fec9867a000 + 0 - 7fec9867a040 = ffffffffffffffc0****
>
> This is what I get for ASan allocator (which results in assert failure):**
&...
2017 Sep 28
0
Clang/LLVM JIT - When to use "registerEHFrames()"
> I tried loading the "msvcrt.lib" as a archive. That was... a bad idea!
> I get a Exception while loading:
> Assertion failed: ((int64_t)Result <= INT32_MAX) && "Relocation
> overflow", file
> \lib\executionengine\runtimedyld\Targets/RuntimeDyldCOFFX86_64.h, line 81
It's a limitation of the COFF/PE format and unrelated to exceptions.
This patch explains it and shows a workaround:
https://github.com/weliveindetail/pj-llvm/com...
2013 Jan 29
0
[LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
...elocation:
uint64_t FinalAddress = Section.LoadAddress + Offset;
int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress;
fprintf(stderr, "%x + %lx + %lx - %lx = %lx\n",
*Placeholder, Value, Addend, FinalAddress, RealOffset);
assert(RealOffset <= INT32_MAX && RealOffset >= INT32_MIN);
This is what I get for system malloc:
0 + 7fec9867a000 + 0 - 7fec9867a040 = ffffffffffffffc0
This is what I get for ASan allocator (which results in assert failure):
0 + 600c0000a8a0 + 0 - 6018000090a0 = fffffff400001800
--
Alexey Samsonov, MSK
---...