Martin Storsjö
1581183d59
Revert "[llvm-ml] Fix RIP-relative addressing for ptr operands (#107618)"
This reverts commit 7543d09b852695187d08aa5d56d50016fea8f706.
This change caused failed asserts when building the openmp assembly
sources, reproducible with:
$ llvm-ml -m64 -D_M_AMD64 -c -Fo out.obj openmp/runtime/src/z_Windows_NT-586_asm.asm
llvm-ml: ../lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp:624: void {anonymous}::X86MCCodeEmitter::emitMemModRMByte(const llvm::MCInst&, unsigned int, unsigned int, uint64_t, {anonymous}::PrefixKind, uint64_t, llvm::SmallVectorImpl<char>&, llvm::SmallVectorImpl<llvm::MCFixup>&, const llvm::MCSubtargetInfo&, bool) const: Assertion `IndexReg.getReg() == 0 && !ForceSIB && "Invalid rip-relative address"' failed.
The assert can also be triggered with one lone instruction:
lea rdx, QWORD PTR [rax*8+16]
2024-09-10 10:35:09 +03:00
..
2024-08-21 07:29:02 +01:00
2024-08-29 10:02:45 -07:00
2024-08-27 13:53:25 -04:00
2024-09-04 17:37:34 +08:00
2024-06-13 20:20:27 +01:00
2024-08-21 12:21:43 -07:00
2024-07-04 21:55:37 -04:00
2024-06-17 21:30:50 +02:00
2024-07-25 16:29:08 -04:00
2024-08-28 08:14:41 +01:00
2024-03-18 05:08:42 +00:00
2024-07-22 14:13:21 +02:00
2024-05-21 12:51:58 -05:00
2024-08-13 22:17:49 -07:00
2024-07-09 17:18:35 +01:00
2024-06-28 15:16:54 +02:00
2024-05-29 11:28:00 +03:00
2024-08-07 14:34:20 -07:00
2024-07-03 14:24:08 +02:00
2024-03-27 11:41:02 +01:00
2024-08-27 13:53:25 -04:00
2024-01-25 16:05:54 +08:00
2024-08-27 16:32:29 +01:00
2024-09-10 10:35:09 +03:00
2024-08-05 10:05:54 -07:00
2024-08-19 21:52:17 -07:00
2024-09-03 07:15:18 -07:00
2024-05-03 09:57:49 -07:00
2024-08-28 20:33:54 -04:00
2024-08-02 21:16:48 +08:00
2024-04-05 09:24:13 -07:00
2024-06-12 16:55:38 +01:00
2024-08-19 12:53:43 +03:00
2024-02-03 09:45:02 -08:00
2024-08-20 14:34:41 +04:00
2024-09-09 09:06:34 +02:00
2024-08-05 17:29:26 -04:00
2024-08-18 15:37:56 -07:00
2024-07-01 07:47:53 +02:00
2024-08-12 14:35:19 -07:00
2024-06-06 20:50:46 +01:00
2024-08-21 13:09:01 +02:00
2024-08-12 11:08:38 +02:00