DCD v0.5.0 with ldc2 error <inline asm>:40:2 invalid operand for instruction

Arjan via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Feb 21 03:30:02 PST 2015


On Saturday, 21 February 2015 at 11:13:46 UTC, Kai Nacke wrote:
> On Friday, 20 February 2015 at 20:58:49 UTC, Brian Schott wrote:
>> On Friday, 20 February 2015 at 15:55:00 UTC, Arjan wrote:
>>> LDC - the LLVM D compiler (99c1b9):
>>> based on DMD v2.066.1 and LLVM 3.2
>>> Default target: amd64-portbld-freebsd9.1
>>> Host CPU: core-avx-i
>>>
>>> error:
>>> ldc2 libdparse/src/std/d/lexer.d -Icontainers/src 
>>> -Imsgpack-d/src -Ilibdparse/src -Isrc -J=. -O5 -release  
>>> -od=objs -op -c
>>> <inline asm>:40:2: error: invalid operand for instruction
>>>       pmovmskb %xmm7, %rax
>>>       ^
>>> LLVM ERROR: Error parsing inline asm
>>>
>>> Is this a ldc2 issue or DCD issue?
>>
>> I think it's actually an LLVM issue. I'm using a build of LDC 
>> that uses LLVM 3.4 and I don't see this issue. XMM7 and RAX 
>> are both valid operands for the PMOVMSKB instruction.
>
> I think the LLVM commit is 
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131007/190626.html 
> which was committed after 3.2. I did not check if this is 
> included in LLVM 3.3 but it is in LLVM 3.4.
>
> Regards,
> Kai

Thanx. I will install a more recent version of llvm alongside and 
try again.


More information about the digitalmars-d-ldc mailing list