Avoid requirement that number of values to fill must be known as assembler time.
Fixes PR33586.
Differential D46703
[MC] Relax .fill size requirements niravd on May 10 2018, 9:37 AM. Authored by
Details Avoid requirement that number of values to fill must be known as assembler time. Fixes PR33586.
Diff Detail
Event Timeline
Comment Actions Thanks for the update. I've left some minor comments but I'm overall happy with the change.
Comment Actions Thanks for the update, typo aside they look fine to me. If it helps here is a program that should show relaxation on a big endian arm system: // RUN: llvm-mc --triple=thumbv7eb-linux-gnueabihf %s -filetype=obj -o %t // RUN: llvm-objdump -triple=thumbv7eb-linux-gnueabihf -d %t .syntax unified .text .thumb .L1: beq Label .L2: .word 0 .fill (.L2 - .L1)/4, 4, 0x12345678 .space 1024 Label: llvm-objdump doesn't seem to be able to disassemble the instructions properly, but by using .word to force a .data mapping symbol it will disassemble the .fill. Big endian on an Armv7 is strange in that the object files have big-endian instructions but are reversed at link time to little-endian so I'm not surprised it doesn't handle this well.
|
Typo: verctor -> vector