Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] Problem with Linux PPC64 assembly output."
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
Hi Michael,
Overall patch looks good. I do have a few comments below. My main
comment is please try to make the style match that used in the
MCMachOStreamer more closely. I intend to refactor more functionality
into the base MCObjectStreamer class, and having them use consistent
idioms makes this easier; specific instances are included in the
comments:
--
> diff --git
2016 Aug 05
2
XRay: Demo on x86_64/Linux almost done; some questions.
Hi Dean,
I have a question for 32-bit platforms. I see in the code that you used the
following in compiler-rt/trunk/lib/xray/xray_interface_internal.h :
struct XRaySledEntry {
uint64_t Address;
uint64_t Function;
unsigned char Kind;
unsigned char AlwaysInstrument;
unsigned char Padding[14]; // Need 32 bytes
};
And the peer code in llvm/trunk/lib/Target/X86/X86MCInstLower.cpp :
void
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
Attached is a working patch set for llvm to be able to emit arm64
(currently as triple aarch64-apple-ios) mach-o object files, in case
someone is interested. I'm not sure if the llvm maintainers want the
patch given the previous message that there's going to be an official
patch set from apple to support this, but here is mine.
What works (tested on an iPhone 5S):
* objc strings,
2016 Jun 22
2
x86: How to Force 2-byte `jmp` instruction in lowering
I have a bit of a riddle:
In http://reviews.llvm.org/D19904 I'm trying to spell the following
assembly:
.palign 2, 0x90
jmp +0x9
nopw 512(%rax,%rax,1)
// rest of the code
I try the following snippet to accomplish this:
OutStreamer->EmitLabel(CurSled);
OutStreamer->EmitCodeAlignment(4);
auto Target = OutContext.createLinkerPrivateTempSymbol();
// Use a two-byte `jmp`.
2016 Aug 08
2
XRay: Demo on x86_64/Linux almost done; some questions.
I think that 32-bit systems (especially ARM) may be short on memory so
doubling the size of the table containing (potentially) all the functions
may give a tangible overhead. I would even align the entries to 4 bytes (so
12 bytes per entry) on 32-bit platforms and to 8 bytes (so 24-bytes per
entry) on 64-bit platforms, to improve CPU cache hits. What do you think?
Cheers,
Serge
On 8 August 2016
2011 Nov 17
0
[LLVMdev] Rephrased: How to get function virtual starting address from MCSymbolRefExpr?
I was mistaken as to needing the virtual address of the section , but really need to know the virtual address of the beginning of the function that contains the label whose symbol expression we have.
I have a case where I the expression (MCSymbolRefExpr) is the offset from the beginning of the function.
AsmPrinter::EmitJumpTableEntry() calls
2012 Mar 13
3
[LLVMdev] Your commit 103140
Hi Chris, your commit 103140 broke PR397 for llvm-gcc (in LLVM 2.9) and
dragonegg. In the PR, asm renaming creates two linkonce functions with
the same asm name (in the IR they are @"\01lstat64" and "@lstat64". What
used to happen is that they were both output to the assembler file, both
with the name lstat64, exactly like GCC does. The assembler and linker
are perfectly
2011 May 02
1
default context overrides context of peer
Hello,
I upgraded from asterisk 1.6.2.7 to asterisk 1.6.2.17.
I have context=defcontext set in sip.conf. For each peer I have
context=outcontext in the peer definition since I want outgoing calls
from registered SIP peers to go through context 'outcontext'. This
used to work in the older version (1.6.2.7), but after upgrading this
has stopped working. Now outgoing calls are going to
2013 Dec 03
0
[klibc:master] ppc64: Add ppc64le support
Commit-ID: 87ad992e1ae0036436646610a23feb4c2895593f
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=87ad992e1ae0036436646610a23feb4c2895593f
Author: Anton Blanchard <anton at samba.org>
AuthorDate: Tue, 3 Dec 2013 18:18:03 +1100
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Tue, 3 Dec 2013 10:53:19 -0800
[klibc] ppc64: Add ppc64le support
Add
2013 Dec 03
2
[PATCH 1/2] ppc64: Add ppc64le support
Add PowerPC 64bit little endian support.
Signed-off-by: Anton Blanchard <anton at samba.org>
---
Makefile | 7 +++++--
usr/klibc/arch/ppc64/MCONFIG | 4 ++--
usr/klibc/arch/ppc64/crt0.S | 34 ++++++++++++++++++++-----------
usr/klibc/arch/ppc64/setjmp.S | 40 ++++++++++++++++++++++++++----------
usr/klibc/arch/ppc64/sysstub.ph | 45
2017 Nov 23
2
question about xray tls data initialization
On Wed, Nov 22, 2017 at 10:37 AM, Dean Michael Berris
<dean.berris at gmail.com> wrote:
>
> On 22 Nov 2017, at 02:32, comic fans <comicfans44 at gmail.com> wrote:
>
> with some dirty hack , I've made xray runtime 'built' on windows ,
>
>
> \o/
with more test, I've found that trampoline didn't got built for windows :/
currently cmake didn't
2011 Oct 19
0
[LLVMdev] Question about MCExpr and subclasses
HI Akira,
Please include the mailing list on replies.
Using an MCExpr is the right way to build up things like symbol+offset. ARM has examples for that, as well, which may prove useful.
For printing, the target libraries can do that however they want, including using the generic print method for expressions (or not). Often, the generic printing is sufficient, but not always. You can register a
2016 Jun 22
3
x86: How to Force 2-byte `jmp` instruction in lowering
On Wed, Jun 22, 2016 at 6:05 AM Nirav Davé <niravd at google.com> wrote:
> This appears to work:
>
> auto Target = OutContext.createLinkerPrivateTempSymbol();
>
> with
>
> auto Target = OutContext.createTempSymbol();
>
> -Nirav
>
>
Thanks Nirav -- I tried this but I'm still getting a "jmpq <address>" with
this incantation when I load and
2012 Nov 27
1
[LLVMdev] Purpose of -debug-compile in NVPTX backend
Hi!
My general understanding of the debug symbol support is that:
- the backend defines in the XXXMCAsmInfo class if debug information is
supported (e.g. SupportsDebugInformation = true / false)
- if I don't want to output debug information then I can use the
(hidden) command line option -disable-debug-info-print (defined in
DwarfDebug.cpp).
However, in NVPTXMCAsmInfo.cpp I found:
- a
2016 Jun 22
0
x86: How to Force 2-byte `jmp` instruction in lowering
Hmm. Odd. I just rebuilt from scratch and it seems to work with
the test/CodeGen/X86/xray-attribute-instrumentation.ll test case outputing
straight to obj:
llc -filetype=obj -o ~/a.o -mtriple=x86_64-apple-macosx <
test/CodeGen/X86/xray-attribute-instrumentation.ll
What test case are you using?
In any case, the issue appears to be that llvm doesn't realize that the
target address is
2017 Nov 21
2
question about xray tls data initialization
with some dirty hack , I've made xray runtime 'built' on windows ,
but unfortunately I haven't enough knowledge about linker and the
runtime, and finally built executable didn't run. I'd like to share
my changes here , hopes somebody help me to make it run on windows.
in AsmPrinter, copy/paster xray for coff target
InstMap =
2006 Jun 26
0
[klibc 32/43] ppc64 support for klibc
The parts of klibc specific to the ppc64 architecture.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
commit 6db62c809bf46ac8a9f743513384d29fd339f877
tree e4850136d00d6b9fc1d5fb7eae9a329ac79947e1
parent a82c9b6e9b3428bae592241d1ac276054bc46fc5
author H. Peter Anvin <hpa at zytor.com> Sun, 25 Jun 2006 16:58:40 -0700
committer H. Peter Anvin <hpa at zytor.com> Sun, 25 Jun
2016 Jun 22
0
x86: How to Force 2-byte `jmp` instruction in lowering
Peter suggested just writing out '.byte 0xeb, 0x09' and that allowed the
jump instruction to bypass the relaxation, so that fixes my immediate
problem. The question still stands though whether it should be possible to
do through the instruction builder interface.
Cheers
On Wed, Jun 22, 2016 at 10:40 AM Dean Michael Berris <dberris at google.com>
wrote:
> Thanks Nirav,
>
>
2003 Dec 12
2
[PATCH] ppc64 support
Marcus Meissner did the ppc64 port, I did the update for crt0.S.
Now ash does not segfault, at least.
diff -p -purNx linux klibc-0.92.orig/Makefile klibc-0.92/Makefile
--- klibc-0.92.orig/Makefile 2003-12-01 18:50:24.000000000 +0000
+++ klibc-0.92/Makefile 2003-12-12 23:18:23.000000000 +0000
@@ -20,4 +20,4 @@ clean:
spotless:
@set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
- rm -f
2016 Jun 22
2
x86: How to Force 2-byte `jmp` instruction in lowering
Thanks Nirav,
I can confirm that this works when I do the compile with llc, but then when
linking to an executable with clang (patched with
http://reviews.llvm.org/D20352 and compiler-rt patched with
http://reviews.llvm.org/D21612) on Linux, I'm getting something different.
Here's a sample of the transcript, and what I'm seeing:
--->8 clang invocation 8<---
[16-06-23 3:33:42]