http://llvm.org/bugs/show_bug.cgi?id=3501
Summary: clang x86-64 ABI bug with bit-fields
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
unsigned a(struct {int a : 5, b : 5;} x) { return x.a; }
gcc asm:
sall $3, %edi
sarb $3, %dil
movsbl %dil,%eax
ret
clang asm:
movl 8(%rsp), %eax
shll $27, %eax
sarl $27, %eax
ret
I know this stuff is very much in flux, but it's a relatively tricky case, so I
figured it was worth filing so it doesn't get lost.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs