[LLVMbugs] [Bug 21184] New: x86 code generation miscompilation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 7 06:11:32 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21184
Bug ID: 21184
Summary: x86 code generation miscompilation
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: karl.tarbe at cyber.ee
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13158
--> http://llvm.org/bugs/attachment.cgi?id=13158&action=edit
Program, that misbehaves under x86_64.
I have a input file, which is a small program, that prints out some data.
When running on x86_64, without optimizations it produces wrong output.
[karl at funbox bugpoint]$ clang -O0 write.ll -o test && ./test
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff 00 00 00
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff 1f 00 00 00
When using the interpreter it produces correct output.
[karl at funbox bugpoint]$ lli -force-interpreter write.ll
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff 0f 00 00 00
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff 1f 00 00 00
When run on a arm, it also produces correct output.
So I believe that the problem lies in x86 code generation.
Note that bugpoint does manage to reduce somewhat, but I believe the original
code is a better starting point for tracking down this issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141007/78e15bdc/attachment.html>
More information about the llvm-bugs
mailing list