bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/20318] x86 Intel mode accepts invalid instructions


From: hjl.tools at gmail dot com
Subject: [Bug gas/20318] x86 Intel mode accepts invalid instructions
Date: Thu, 30 Jun 2016 11:49:11 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20318

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
----
        .text
        phadddb %xmm0, %xmm1
        phadddd %xmm0, %xmm1
        phadddl %xmm0, %xmm1
        phadddld %xmm0, %xmm1
        phadddq %xmm0, %xmm1
        phaddds %xmm0, %xmm1
        phadddw %xmm0, %xmm1
        .intel_syntax noprefix
        phadddb xmm0, xmm1
        phadddd xmm0, xmm1
        phadddl xmm0, xmm1
        phadddld xmm0, xmm1
        phadddq xmm0, xmm1
        phaddds xmm0, xmm1
        phadddw xmm0, xmm1
----

I got

y.s: Assembler messages:
y.s:2: Error: invalid instruction suffix for `phaddd'
y.s:3: Error: no such instruction: `phadddd %xmm0,%xmm1'
y.s:4: Error: invalid instruction suffix for `phaddd'
y.s:5: Error: no such instruction: `phadddld %xmm0,%xmm1'
y.s:6: Error: invalid instruction suffix for `phaddd'
y.s:7: Error: invalid instruction suffix for `phaddd'
y.s:8: Error: invalid instruction suffix for `phaddd'
y.s:12: Error: no such instruction: `phadddl xmm0,xmm1'
y.s:13: Error: no such instruction: `phadddld xmm0,xmm1'
y.s:15: Error: no such instruction: `phaddds xmm0,xmm1'

They fail under AT&T syntax with different error messages.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]