This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add tests for default value of Tag_ABI_FP_rounding.
ClosedPublic

Authored by • chatur01 on Dec 2 2014, 9:16 AM.

Details

Reviewers
t.p.northover
Summary

This patch adds tests to check that for each CPU / architecture currently tested in test/CodeGen/ARM/build-attributes.ll, the Tag_ABI_FP_rounding attribute is "correctly" emitted. Since we appear to shooting for GCC compatibility, that's the justification for this default: GCC does it. This default is an ABI compliant choice.

There's not functional change in this patch, just adding tests for the current behaviour.

Diff Detail

Event Timeline

• chatur01 retitled this revision from to [ARM] Add tests for default value of Tag_ABI_FP_rounding..
• chatur01 updated this object.
• chatur01 edited the test plan for this revision. (Show Details)
• chatur01 set the repository for this revision to rL LLVM.
• chatur01 added a subscriber: Unknown Object (MLST).

Hi Charlie,

I'm not sure these tests are actually testing what you think they are. the "CHECK-XYZ-NOT" test only applies to the text before the first part that actually is matched. For example

CHECK-NOT: foo
CHECK: bar

would match:

bar
foo

We probably just need a separate file (though not with every CPU, in my opinion, that's quite a few extra processes).

Hi Tim,

I'm not sure these tests are actually testing what you think they are. the "CHECK-XYZ-NOT" test only applies to the text before the first part that actually is matched.

Build attributes are sorted by their tag number when serialized, so if I say

CHECK-NOT: .eabi_attribute 19, 1
CHECK: .eabi_attribute 20, 0

I know in advance that the file won't contain attributes ordered like

.eabi_attribute 20, 0
.eabi_attribute 19, 1

Have I understood your concern?

Thanks for looking!
Charlie.

t.p.northover accepted this revision.Dec 2 2014, 9:42 AM
t.p.northover added a reviewer: t.p.northover.

Ah, fair enough. Didn't know that. This looks fine then.

Tim.

This revision is now accepted and ready to land.Dec 2 2014, 9:42 AM

Cheers Tim, committed as r223217.