bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/11818] MOVD (mov doubleword) into 64-bit register with zero ext


From: hjl dot tools at gmail dot com
Subject: [Bug gas/11818] MOVD (mov doubleword) into 64-bit register with zero extension incorrectly changed to load quadword
Date: 14 Jul 2010 14:48:54 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2010-07-14 
14:48 -------
Try:

---
#include <stdint.h>

typedef uint32_t u32x4_t __attribute__ ((vector_size (16)));

void decode_and_jump(u32x4_t instructions) {
  void *ptr;
  asm("movd %[from], %k[to]\n" : [to] "=r" (ptr) : [from] "x" (instructions));
  goto *ptr;
}
---

Assembler will either accept "movd %xmm0,%rax" which is specified
by AMD or accept it as "movq %xmm0,%rax".



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=11818

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

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