LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 699 - -enable-x86-dag-isel -enable-x86-fastcc crash
Summary: -enable-x86-dag-isel -enable-x86-fastcc crash
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: trunk
Hardware: PC FreeBSD
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: miscompilation
: 683 (view as bug list)
Depends on: 711
Blocks:
  Show dependency tree
 
Reported: 2006-01-20 15:40 PST by Alexander Friedman
Modified: 2010-02-22 12:47 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
bugpoint reduced file (353 bytes, application/octet-stream)
2006-01-20 15:43 PST, Alexander Friedman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Friedman 2006-01-20 15:40:57 PST
From the 'treeadd' benchmark in llvm-test

Crash occurs whether using the new isel or not.


llc -enable-x86-fastcc -f bugpoint.test.bc-NA6QC9 -o bugpoint.test.bc-NA6QC9.s

gcc ./bugpoint.safe.bc-LMANI1.cbe.c.so bugpoint.test.bc-NA6QC9.s -o
bugpoint.test.bc-NA6QC9.exe -Wl,-R.

bugpoint.test.bc-NA6QC9.exe 22

Adding -enable-x86-dag-isel has no effect
Comment 1 Alexander Friedman 2006-01-20 15:43:20 PST
Created attachment 309 [details]
bugpoint reduced file
Comment 2 Chris Lattner 2006-01-20 16:04:29 PST
Hey Evan,

When you get a chance, can you look into this? Apparently  -enable-x86-dag-isel -enable-x86-fastcc 
cause Olden/treeadd to miscompile.  Note that bugpoint won't help (because the C backend doesn't 
understand fastcc), but treeadd is small so it should be theoretically easy to fix still :)

-Chris
Comment 3 Alexander Friedman 2006-01-20 17:09:44 PST
Here is a list of programs that fail with llc-beta + --enable-x86-fastcc and do
not fail with llc.

Hopefully some of these are tiny and therefore easy to debug :)

2005-05-11-Popcount-ffs-fls   
Puzzle   
aha   
allroots   
bc   
bh   
bigfib   
bintr   
bisort   
burg   
cfrac   
city   
cjpeg   
deriv1   
deriv2   
employ   
encode   
espresso   
exptree   
fhourstones   
fourinarow   
gs   
hash   
hbd   
health   
kc   
ks   
lambda   
lists   
main   
make_dparser   
mpeg2decode   
mst   
mybison   
ofstream_ctor   
pcompress2   
perimeter   
pifft   
power   
random   
sgefa   
shapes   
sim   
smg2000   
spellcheck   
toast   
treeadd   
treecc   
tsp   
voronoi   
yacr2   
Comment 4 Alexander Friedman 2006-03-19 13:56:08 PST
*** Bug 683 has been marked as a duplicate of this bug. ***