Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. // foo.d :
  2.  
  3. int main() {
  4. volatile int* foo = cast(int*)0x1234;
  5. *foo = 5;
  6. return 0;
  7. }
  8.  
  9. /*
  10.  
  11. compile with
  12. $ ldc -ofoo foo.d -mattr=-sse
  13.  
  14. gives:
  15.  
  16. copying RDX to ESI <-- I added this to llvm... it is doing a 64bit to 32bit register copy
  17. Cannot emit physreg copy instruction
  18. UNREACHABLE executed at /home/wilkie/build/llvm/lib/Target/X86/X86InstrInfo.cpp:2014!
  19. 0 ldc 0x0000000000f2beaf
  20. 1 ldc 0x0000000000f2c9ea
  21. 2 libpthread.so.0 0x00007fb193e861c0
  22. 3 libc.so.6 0x00007fb192f90595 gsignal + 53
  23. 4 libc.so.6 0x00007fb192f91a16 abort + 390
  24. 5 ldc 0x0000000000f178c4 llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) + 356
  25. 6 ldc 0x000000000076a337 llvm::X86InstrInfo::copyPhysReg(llvm::MachineBasicBlock&, llvm::ilist_iterator<llvm::MachineInstr>, llvm::DebugLoc, unsigned int, unsigned int, bool) const + 2263
  26. 7 ldc 0x000000000095f650
  27. 8 ldc 0x0000000000eb9c17 llvm::FPPassManager::runOnFunction(llvm::Function&) + 599
  28. 9 ldc 0x0000000000eb9dbb llvm::FunctionPassManagerImpl::run(llvm::Function&) + 155
  29. 10 ldc 0x0000000000eb9f4c llvm::FunctionPassManager::run(llvm::Function&) + 108
  30. 11 ldc 0x0000000000657561 write_asm_to_file(llvm::TargetMachine&, llvm::Module&, llvm::raw_fd_ostream&) + 577
  31. 12 ldc 0x000000000065c008 writeModule(llvm::Module*, std::string) + 552
  32. 13 ldc 0x00000000006a07c6 main + 6950
  33. 14 libc.so.6 0x00007fb192f7cc4d __libc_start_main + 253
  34. 15 ldc 0x0000000000586a79
  35. Stack dump:
  36. 0. Running pass 'Subregister lowering instruction pass' on function '@_Dmain'
  37. Aborted
  38.  
  39. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement