llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.13k stars 12.01k forks source link

Crash trying to EmitRawText msync via the object streamer #18889

Closed llvmbot closed 10 years ago

llvmbot commented 10 years ago
Bugzilla Link 18515
Resolution FIXED
Resolved on Jan 22, 2014 14:37
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @hfinkel

Extended Description

llc -march=ppc32 -mcpu=440 -filetype=obj -o test.o

crashes on

define void @​f() { fence acquire ret void }

The PowerPC backend has a pretty complete MC support, so the fix should be trivial, but it is probably better if someone familiar with the ISA looks at it.

My guess from the existing code is that is most cpus msync is as alias for "sync 0", but on "book E" versions there is not "sync 0" and msync is a proper instruction.

llvmbot commented 10 years ago

Fixed in r199832