This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add missing Xsfvcp extension check in clang sema
ClosedPublic

Authored by 4vtomat on Aug 8 2023, 10:18 PM.

Diff Detail

Event Timeline

4vtomat created this revision.Aug 8 2023, 10:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 10:18 PM
4vtomat requested review of this revision.Aug 8 2023, 10:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 10:18 PM

Is it possible to test?

4vtomat updated this revision to Diff 548509.Aug 9 2023, 1:14 AM

Add test cases.

craig.topper added inline comments.Aug 9 2023, 10:35 AM
clang/test/Sema/rvv-required-features-invalid.c
17

This doesn't mention the xsfvcp extension. So it doesn't look like the diagnostic in the code is being hit.

4vtomat updated this revision to Diff 548843.Aug 9 2023, 6:24 PM

Rename the function in the test case.

4vtomat marked an inline comment as done.Aug 9 2023, 6:25 PM
4vtomat added inline comments.
clang/test/Sema/rvv-required-features-invalid.c
17

I guess it's just because __riscv_sf_vc_x_se_u64m1 is too similar to test_sf_vc_x_se_u64m1, I just changed the name of the function, and the diagnostic just disappeared.

This revision is now accepted and ready to land.Aug 12 2023, 10:48 AM
This revision was landed with ongoing or failed builds.Aug 13 2023, 10:34 PM
This revision was automatically updated to reflect the committed changes.
4vtomat marked an inline comment as done.