ARM-software / acle

Arm C Language Extensions (ACLE)
Other
90 stars 59 forks source link

Add clarification for FMV behaviour. #361

Closed AlfieRichardsArm closed 1 week ago

AlfieRichardsArm commented 2 weeks ago

This clarifies cases like:

__attribute__((target_version("default")))
int foo(int (* x)[12]){
    return (*x)[11];
}

__attribute__((target_version("sve")))
int foo(int (* x)[10]){
    return (*x)[7];
}

int bar()
{
    int y[10];
    return foo(&y);
}
int __attribute__((target_version("default"))) fn (int x) {
    return 1;
}

void bar () {
    int __attribute__((target_version("sve2"))) fn (int);
    fn(1);
}

name: Pull request about: Technical issues, document format problems, bugs in scripts or feature proposal.


Thank you for submitting a pull request!

If this PR is about a bugfix:

Please use the bugfix label and make sure to go through the checklist below.

If this PR is about a proposal:

We are looking forward to evaluate your proposal, and if possible to make it part of the Arm C Language Extension (ACLE) specifications.

We would like to encourage you reading through the contribution guidelines, in particular the section on submitting a proposal.

Please use the proposal label.

As for any pull request, please make sure to go through the below checklist.

Checklist: (mark with X those which apply)