Skip to content

Conversation

@kraj
Copy link

@kraj kraj commented Jan 29, 2019

These are useful only with stabs debug format, which is not used on
linux systems, gas ignores them silently, but clang assembler does not
and rightly so.

Signed-off-by: Khem Raj raj.khem@gmail.com

These are useful only with stabs debug format, which is not used on
linux systems, gas ignores them silently, but clang assembler does not
and rightly so.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
@kraj
Copy link
Author

kraj commented Jan 29, 2019

should fix #20 as well

@letrout
Copy link

letrout commented May 1, 2019

I tried this fix but it didn't work for me (I only tried x86). It looks like the .set of SRC, DST, and SIZE are still not working in the macro?

root@5b56ff072652:/usr/src/app# clang-8 --version
clang version 8.0.1-svn358947-1exp120190423033313.62 (branches/release_80)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
root@5b56ff072652:/usr/src/app# clang-8 -o /tmp/x86-sse2 x86-sse2.S
/tmp/x86-sse2-532c88.s:88:9: error: ambiguous operand size for instruction 'add'
add SRC, 64
^~~
/tmp/x86-sse2-532c88.s:89:9: error: ambiguous operand size for instruction 'add'
add DST, 64
^~~
/tmp/x86-sse2-532c88.s:90:9: error: ambiguous operand size for instruction 'sub'
sub SIZE, 64
^~~~
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants