Skip to content

Fix extended API xerbla tests - #1343

Merged
langou merged 3 commits into
Reference-LAPACK:masterfrom
ACSimon33:extended_api_xerbla_tests
Jul 30, 2026
Merged

langou merged 3 commits into
Reference-LAPACK:masterfrom
ACSimon33:extended_api_xerbla_tests

Conversation

@ACSimon33

Copy link
Copy Markdown
Collaborator

Description

Fixes the xerbla error-exit tests in extended API (_64) builds, where the library reports a suffixed routine name (CGEMV_64, cblas_cgemv_64) that the testers were not prepared for.

  1. cblat2.f, zblat2.f — their private XERBLA still declared CHARACTER*6 SRNAME and compared it exactly, so 'CGEMV_64 ' truncated to 'CGEMV_' and never matched. They now use the assumed-length dummy and LEN_TRIM prefix compare that the other six testers already got in 4c637b8 and a0e44d7 — those two were simply missed, since no complex Level 2 name exceeds 6 characters.

  2. All eight Level 2/3 testers — the mismatch diagnostic printed the reported name through a fixed-width A6/A7/A10/A11 descriptor, which truncates it. Only that one descriptor becomes A; the expected name keeps its width, which already matches its declaration exactly.

  3. c_xerbla.c — the CBLAS testers spell cblas_rout without the suffix, so every _64 error-exit test reported a name mismatch. The expected name now goes through the same normalisation as the reported one.

Copilot AI review requested due to automatic review settings July 30, 2026 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@langou
langou merged commit cf47d31 into Reference-LAPACK:master Jul 30, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants