Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] sext..to instruction"
2008 Oct 06
3
[LLVMdev] sext..to instruction
Hi,
I have a question about the "sext..to" instruction. In the document, I found
two examples:
%x = sext i8 -1 to i16
It means:
i8 -1 = 1111 1111 --> 1111 1111 1111 1111 = i16
how can it determinate, that the i16 value %x positive is (65535)?
And the second example:
%y = sext i1 true to i32
1 --> 1111 1111 1111 1111 1111 1111 1111 1111
In this example, %y is -1
I'm not sure
2008 Oct 06
0
[LLVMdev] sext..to instruction
> I'm not sure about it, when sext to results a positve/negative value?
sext does signed-extension, zext does unsigned-extension.
This means that zext always extends by zero bits,
while with sext the additional bits are all copies of the
top bit of the original value. So with sext, if it was
negative in the original type when considered as a signed
value, then it will be negative in the
2008 Oct 07
0
[LLVMdev] sext..to instruction
Hi Le Anh,
> how can it determinate, that the i16 value %x positive is (65535)?
> And the second example:
I guess you should read up on the "two's complement" format, which is how a
signed value is stored in most architectures (and in these examples).
In short, a sext operation takes the highest bit of the original number (the
sign bit) and copies it into all the higher
2008 Jul 23
1
[LLVMdev] weird function
llvm-gcc is the C compiler, but you're trying to compile a C++ file.
"@_Znwj" looks like part of a C++ symbol.
Try llvm-g++ instead, that should help.
- Simon
2008/7/23 Le Anh Quang <anh_quang.le at mailbox.tu-dresden.de>:
> Hi,
> I have tried to compile a simple cpp file with llvm-gcc. I have attached
> the assemble file here.
> I see a weird thing there.
2013 Jun 21
0
[LLVMdev] Error in the example of sext instruction in reference manual
On Jun 20, 2013, at 4:39 PM, Bin Tzeng <bintzeng at gmail.com> wrote:
> Hi all,
>
> There might be a simple error in the LLVM reference manual. The example for sext instruction:
>
> %X = sext i8 -1 to i16 ; yields i16 :65535
>
> %X should yield i16: -1, as opposed to 65535.
> Here is the simple patch (also attached):
These are the same value.
-Chris
>
2013 Jun 20
2
[LLVMdev] Error in the example of sext instruction in reference manual
Hi all,
There might be a simple error in the LLVM reference manual. The example for
sext instruction:
%X = sext i8 -1 to i16 ; yields i16 :65535
%X should yield i16: -1, as opposed to 65535.
Here is the simple patch (also attached):
Index: docs/LangRef.rst
===================================================================
--- docs/LangRef.rst (revision 184496)
+++ docs/LangRef.rst
2013 Jun 21
2
[LLVMdev] Error in the example of sext instruction in reference manual
Thanks for the reply. Just for a little more clarity, is i16, i32...
signed, unsigned, or just a bit pattern?
On Thu, Jun 20, 2013 at 9:17 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Jun 20, 2013, at 4:39 PM, Bin Tzeng <bintzeng at gmail.com> wrote:
>
> > Hi all,
> >
> > There might be a simple error in the LLVM reference manual. The example
2008 Jul 01
2
[LLVMdev] build on windows
Hi,
but on some other project, they require "configure.lib". What is this one ?
Thanks
-----Ursprüngliche Nachricht-----
Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im
Auftrag von Jean-Daniel Dupas
Gesendet: Dienstag, 1. Juli 2008 17:58
An: LLVM Developers Mailing List
Betreff: Re: [LLVMdev] build on windows
AFAK, the Configuration project does not
2008 Jul 01
0
[LLVMdev] build on windows
AFAK, the Configuration project does not generate any output. It just
patch and generate some required header file.
Le 1 juil. 08 à 17:32, Le Anh Quang a écrit :
> Hi Jean-Daniel,
> thank for ur fast answer, i have fixed this error, another function
> was
> defined inside llvm source code.
> So, my only problem now is, I cannot create the file "configure.lib"
>
2013 Jun 21
0
[LLVMdev] Error in the example of sext instruction in reference manual
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Bin Tzeng
> Subject: Re: [LLVMdev] Error in the example of sext instruction in reference manual
> Just for a little more clarity, is i16, i32... signed, unsigned, or
> just a bit pattern?
It's just a bit pattern. The operations performed on it can treat it as signed, unsigned, or
2008 Jul 01
0
[LLVMdev] build on windows
Not this one, I have a different error here. One related to hasmap and
pair templates.
I will check this on my Windows machine later.
Le 1 juil. 08 à 16:44, Le Anh Quang a écrit :
> Hi Jean-Daniel,
> Thank
> I use VC++ 9 (express version). I have also an error in TableGen: The
> "strtoll" could not be found under win32. Have you fixed it ?
>
> Regards
> Quang
2008 Jul 01
2
[LLVMdev] build on windows
Hi Jean-Daniel,
thank for ur fast answer, i have fixed this error, another function was
defined inside llvm source code.
So, my only problem now is, I cannot create the file "configure.lib"
(belongs to project "Configure"). I can build this project without error,
but it didn't generate the lib data ?!
Can you build this file ? if yes, I will be very happy if you send it to
2008 Jul 13
1
[LLVMdev] instruction description
Hi Chris, Owen
Thank for your answers. I have read it before. I mean something different.
For example, I read a burst of bytes from a bitcode, which corresponds a
LOAD instruction: [0,3,0], it actually means something like "%tmp1 = load
i32* @x,align 4"
Is there a document, that describes how the information in instructions
decoded was ?
In the case of JVM, it was described detail,
2008 Jul 01
3
[LLVMdev] build on windows
Hi Jean-Daniel,
Thank
I use VC++ 9 (express version). I have also an error in TableGen: The
"strtoll" could not be found under win32. Have you fixed it ?
Regards
Quang
-----Ursprüngliche Nachricht-----
Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im
Auftrag von Jean-Daniel Dupas
Gesendet: Montag, 30. Juni 2008 22:00
An: LLVM Developers Mailing List
2008 Jul 01
2
[LLVMdev] build on windows
Hi Argiris,
It was for example the project TableGen, llvm-dis... I saw it under
Properties/Linker/Command Line
And the output is also:
Linking...
Starting pass 1
LINK : fatal error LNK1181: cannot open input file
'..\configure\configure\configure.lib'
Build log was saved at
"file://d:\Studium\Diplom\Download\llvm-2.3\win32\TableGen\Win32\Release\Bui
ldLog.htm"
TableGen - 1
2008 Jun 30
0
[LLVMdev] build on windows
Le 30 juin 08 à 21:28, Le Anh Quang a écrit :
> Hi,
> I have tried to compile LLVM with Visual C++. Some subprojects work
> now.
>
> Other subprojects require the file "configure.lib". So I tried to
> compile
> the project "Configure". It could be built successfully, but the file
> "configure.lib" is not generated. So, what is the problem
2008 Jun 30
1
[LLVMdev] build on windows
So far, I'm building largely clean too. I had to change which llvmAsmParser it was looking at since it needs to look at the generated file under the win32\AsmParser directory rather than ...\lib\AsmParser where no such file exists. After that, it compiles clean on debug. Working on release now and then I'll check that change in.
Quang, do you have flex and bison on your system and in
2008 Jul 13
0
[LLVMdev] instruction description
On Jul 13, 2008, at 1:32 PM, Le Anh Quang wrote:
> Hi,
> I need the description of LLVM instructions on bitcode file. I can't
> find it
> on any document. Reading the code costs much time. Does a
> description like
> this exist ? It should look like the JVM Instruction set on the link
> bellow:
>
2008 Jul 01
0
[LLVMdev] build on windows
Le Anh Quang wrote:
> Hi,
> but on some other project, they require "configure.lib". What is this one ?
> Thanks
Hi Le Anh,
What project are you talking about, and how did you determine that it
requires "configure.lib" ?
AFAIK, all LLVM projects have dependency on the configure project but
this is only so that some include files are created, no
2008 Jul 09
0
[LLVMdev] build on windows
Quang, you need to set Configure to Utility type. For some reason it
gets messed up in the conversion process to VS2008. Go to Configure
properties / General and put Utility in Configuration Type. It helped on me.
Also some h/cpp files might be dislocated, at least I needed to relocate
AsmParser files...
Then it should work just fine except some projects recompile excessively
for unknonwn