diff options
author | Kirill Stoimenov <kstoimenov@google.com> | 2021-08-26 00:12:53 +0000 |
---|---|---|
committer | Kirill Stoimenov <kstoimenov@google.com> | 2021-08-26 20:30:25 +0000 |
commit | 2e83a0efb9065fdc526b92cfe0f89ca53ca547d7 (patch) | |
tree | d768ee6e571c2d7394c9cb35e5e9bd026ade7a70 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 90478251c736ce335fe8d45e46a09d9bec889583 (diff) | |
download | llvm-2e83a0efb9065fdc526b92cfe0f89ca53ca547d7.zip llvm-2e83a0efb9065fdc526b92cfe0f89ca53ca547d7.tar.gz llvm-2e83a0efb9065fdc526b92cfe0f89ca53ca547d7.tar.bz2 |
[asan] Fixed a runtime crash.
Looks like the NoRegister has some effect on the final code that is generated. My guess is that some optimization kicks in at the end?
When I use -S to dump the assembly I get the correct version with 'shrq $3, %r8':
movq %r9, %r8
shrq $3, %r8
movsbl 2147450880(%r8), %r8d
But, when I disassemble the final binary I get RAX in stead of R8:
mov %r9,%r8
shr $0x3,%rax
movsbl 0x7fff8000(%r8),%r8d
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D108745
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions