https://bugs.llvm.org/show_bug.cgi?id=44111
Bug ID: 44111
Summary: error in backend: Cannot emit physreg copy
instruction, after _mm_hadd_pd
Product: clang
Version: 9.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Created attachment 22853
--> https://bugs.llvm.org/attachment.cgi?id=22853&action=edit
Complete code and diagnostics
The attached program containing the intrinsic function for horizontal addition,
_mm_hadd_pd, causes errors in Clang 9.0 (Windows/msys2 version).
Three situations are tested:
1: No bugs with -O1.
2: Wrong result with -O2 (or -O3).
3: The compiler crashes with -O2 when additional printf statements are added to
trace the error.
Disassembly of (2) shows that _mm_hadd_pd is implemented correctly, but the
value is somehow lost in the subsequent code. Both errors disappear when
_mm_hadd_pd is replaced by alternatives.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs