Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codegen: Fix missing parameter c and types in mul_add for fma #297

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

MarijnS95
Copy link
Contributor

Running into a bunch of:

error[E0425]: cannot find value `c` in this scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/glam-0.21.0/src/f32/sse2/vec3a.rs:626:35
    |
626 |             _mm_fmadd_ps(self, b, c)
    |                                   ^ help: a local variable with a similar name exists: `a`

And:

error[E0308]: mismatched types
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/glam-0.21.0/src/f32/sse2/vec3a.rs:626:26
    |
626 |             _mm_fmadd_ps(self, b, c)
    |                          ^^^^ expected struct `std::arch::x86_64::__m128`, found struct `f32::sse2::vec3a::Vec3A`

On the new 0.21 release when building for a CPU with FMA, introduced by the new codegen in #294. These are trivially fixable by updating the template.

Running into a bunch of:

    error[E0425]: cannot find value `c` in this scope
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/glam-0.21.0/src/f32/sse2/vec3a.rs:626:35
        |
    626 |             _mm_fmadd_ps(self, b, c)
        |                                   ^ help: a local variable with a similar name exists: `a`

And:

    error[E0308]: mismatched types
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/glam-0.21.0/src/f32/sse2/vec3a.rs:626:26
        |
    626 |             _mm_fmadd_ps(self, b, c)
        |                          ^^^^ expected struct `std::arch::x86_64::__m128`, found struct `f32::sse2::vec3a::Vec3A`

On the new 0.21 release when building for a CPU with FMA, introduced by
the new codegen in bitshifter#294.  These are trivially fixable by updating the
template.
@bitshifter
Copy link
Owner

Ah I missed that. FMA doesn't get built by CI :/

Thanks!

@bitshifter bitshifter merged commit 92d9414 into bitshifter:main Jun 22, 2022
@MarijnS95 MarijnS95 deleted the fma branch June 22, 2022 11:01
@MarijnS95
Copy link
Contributor Author

MarijnS95 commented Jun 22, 2022

Yeah I assumed as much, it's sad but nothing too bad :)

Perhaps a custom GH runner can be hosted somewhere? Cross-compilation?

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.

2 participants