https://bugs.llvm.org/show_bug.cgi?id=50943
Bug ID: 50943
Summary: Inline asm miscompile (test segfaults)
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedb...@nondot.org
Reporter: paul_robin...@playstation.sony.com
CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
llvm-...@redking.me.uk, pengfei.w...@intel.com,
spatel+l...@rotateright.com
Reduced from gdb test case gdb.arch/i386-avx.c
$ cat t1.c
typedef struct {
float f[8];
} v8sf_t;
v8sf_t data[] =
{
{ { 0.0, 0.125, 0.25, 0.375, 0.50, 0.625, 0.75, 0.875 } },
};
int main (int argc, char **argv) {
asm ("vmovaps 0(%0), %%ymm0\n\t"
: /* no output operands */
: "r" (data)
: "xmm0");
return 0;
}
$ gcc t1.c -o t1-gcc
$ ./t1-gcc
$ clang t1.c -o t1-clang
$ ./t1-clang
Segementation fault
$
using gcc 7.5.0 and clang 13 1f169a77
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs