[LLVMdev] Roundtrip clang -> llc -> clang fails (original) (raw)
Michael Spencer bigcheesegs at gmail.com
Sat Jul 28 00:22:47 PDT 2012
- Previous message: [LLVMdev] Roundtrip clang -> llc -> clang fails
- Next message: [LLVMdev] Roundtrip clang -> llc -> clang fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Jul 27, 2012 at 3:36 PM, Kai <kai at redstar.de> wrote:
Hi!
I am not sure if this is a bug or not. I have the following non-sense C module excalloc.c: #include <windows.h> void *AllocMem() { HANDLE heap = GetProcessHeap(); void *p = HeapAlloc(heap, HEAPGENERATEEXCEPTIONS | HEAPZEROMEMORY, 1610241014*1024); return p; } If I execute the following commands clang -S -emit-llvm -o excalloc.ll excalloc.c llc -filetype=asm excalloc.ll clang -c excalloc.s then I get the error messages excalloc.s:11:31: error: invalid variant '0' callq *_impGetProcessHeap at 0(%rip) ^ excalloc.s:16:27: error: invalid variant '20' callq *_impHeapAlloc at 20(%rip)
Do I miss something here? Regards Kai
MC (the part of LLVM that does asm parsing) can't parse COFF asm yet. So yes it's a bug, but expected.
- Michael Spencer
- Previous message: [LLVMdev] Roundtrip clang -> llc -> clang fails
- Next message: [LLVMdev] Roundtrip clang -> llc -> clang fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]