[LLVMbugs] [Bug 21500] New: Incorrect assembly in .macro

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 6 05:13:01 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21500

            Bug ID: 21500
           Summary: Incorrect assembly in .macro
           Product: new-bugs
           Version: 3.4
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rth at twiddle.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat z.S
#define FOO    15
.macro    bar
    andl    $FOO, %eax
.endm
    bar
$ cc -c z.S
$ objdump -d z.o

z.o:     file format elf64-x86-64-freebsd


Disassembly of section .text:

0000000000000000 <.text>:
   0:    23 04 25 05 00 00 00     and    0x5,%eax


Note "0x5" not the expected "0xf".

$ cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix
Selected GCC installation:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141106/39e5b7be/attachment.html>


More information about the llvm-bugs mailing list