This patch is to permit a negative offset usage for a non frame access.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Igor,
I've just added the llvm-commits mailing list as a subscriber here. That's where all reviews take place in LLVM (even if we use this to help out).
I think the patch looks mostly fine, but the test is a bit odd: only the first 4 lines of the function actually seem to be tested, so we should either remove the rest or add CHECK lines for them.
Cheers.
Tim.
test/CodeGen/ARM/negative-offset.ll | ||
---|---|---|
8 | better to CHECK for the whole instruction, and to use regular expressions, and maybe add an extra CHECK-NOT on sub, to be explicit about the reason of this test. ;CHECK-LABEL: sum: ;CHECK-NOT: sub ;CHECK: ldr r{{.*}}, [r0, #-16] ;CHECK: ldr r{{.*}}, [r0, #-8] | |
14 | returning this add should be more than enough. |
Comment Actions
Thanks Igor, LGTM.
Also, I ran the test-suite on ARM and all goes well.
Do you need help committing?
cheers,
--renato
better to CHECK for the whole instruction, and to use regular expressions, and maybe add an extra CHECK-NOT on sub, to be explicit about the reason of this test.