phire/llvm

Load/stores with a displacement crash

phire opened this issue · 0 comments

phire@nirrit:~/projects/llvm/build$ echo "st r0, (r3+sp)" | bin/llvm-mc -arch=videocore  -show-encoding
    .text
llvm-mc: /home/phire/projects/llvm/llvm32/lib/Target/Videocore/MCTargetDesc/VideocoreMCCodeEmitter.cpp:134: unsigned int {anonymous}::VideocoreMCCodeEmitter::getMachineOpValue(const llvm::MCInst&, const llvm::MCOperand&, llvm::SmallVectorImpl<llvm::MCFixup>&) const: Assertion `Kind == MCExpr::SymbolRef' failed.
0  llvm-mc         0x000000000060c21d
1  llvm-mc         0x000000000060c49a
2  llvm-mc         0x000000000060bf13
3  libpthread.so.0 0x00007fd48e807870
4  libc.so.6       0x00007fd48da50369 gsignal + 57
5  libc.so.6       0x00007fd48da51768 abort + 328
6  libc.so.6       0x00007fd48da49456
7  libc.so.6       0x00007fd48da49502
8  llvm-mc         0x00000000004cb8a2
9  llvm-mc         0x00000000004cbe15
10 llvm-mc         0x00000000004cb661
11 llvm-mc         0x000000000055ebf4
12 llvm-mc         0x000000000055f77d
13 llvm-mc         0x0000000000421633
14 llvm-mc         0x00000000005129f7
15 llvm-mc         0x000000000050ea91
16 llvm-mc         0x000000000040c455
17 llvm-mc         0x000000000040d138
18 libc.so.6       0x00007fd48da3cb05 __libc_start_main + 245
19 llvm-mc         0x000000000040b6a9
Stack dump:
0.  Program arguments: bin/llvm-mc -arch=videocore -show-encoding 
Aborted