Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect assembly in .macro #21874

Closed
llvmbot opened this issue Nov 6, 2014 · 1 comment
Closed

Incorrect assembly in .macro #21874

llvmbot opened this issue Nov 6, 2014 · 1 comment
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 6, 2014

Bugzilla Link 21500
Resolution FIXED
Resolved on Nov 07, 2014 19:43
Version 3.4
OS FreeBSD
Reporter LLVM Bugzilla Contributor
CC @DimitryAndric

Extended Description

$ 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:

@DimitryAndric
Copy link
Collaborator

This is fixed in trunk r201784, which is not in clang 3.4.1. Since the fix is fairly simple, I will import this revision into FreeBSD.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

2 participants