Skip to content

Driver/hip-toolchain-rdc-static-lib.hip fails on Windows #254

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

Closed
tstellar opened this issue Dec 1, 2020 · 2 comments
Closed

Driver/hip-toolchain-rdc-static-lib.hip fails on Windows #254

tstellar opened this issue Dec 1, 2020 · 2 comments

Comments

@tstellar
Copy link
Owner

tstellar commented Dec 1, 2020

https://llvm.org/PR48289

@tstellar
Copy link
Owner Author

tstellar commented Dec 1, 2020

cherry-pick: f89e9c8201ea5a5b63f854c92ed26bc7ab4b8db

@github-actions
Copy link

github-actions bot commented Dec 1, 2020

Cherry pick of f89e9c8201ea5a5b63f854c92ed26bc7ab4b8db failed

tstellar pushed a commit that referenced this issue Apr 9, 2024
…ndling (llvm#76644)

Fold BICi if all destination bits are already known to be zeroes

```llvm
define <8 x i16> @haddu_known(<8 x i8> %a0, <8 x i8> %a1) {
  %x0 = zext <8 x i8> %a0 to <8 x i16>
  %x1 = zext <8 x i8> %a1 to <8 x i16>
  %hadd = call <8 x i16> @llvm.aarch64.neon.uhadd.v8i16(<8 x i16> %x0, <8 x i16> %x1)
  %res = and <8 x i16> %hadd, <i16 511, i16 511, i16 511, i16 511,i16 511, i16 511, i16 511, i16 511>
  ret <8 x i16> %res
}
declare <8 x i16> @llvm.aarch64.neon.uhadd.v8i16(<8 x i16>, <8 x i16>)
```

```
haddu_known:                            // @haddu_known
        ushll   v0.8h, v0.8b, #0
        ushll   v1.8h, v1.8b, #0
        uhadd   v0.8h, v0.8h, v1.8h
        bic     v0.8h, #254, lsl #8 <-- this one will be removed as we know high bits are zero extended
        ret
```

Fixes llvm#53881
Fixes llvm#53622
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

No branches or pull requests

1 participant