Add scalarization of ABS node.
It is fix for pr41149.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Ok! What's the best way for test, unittest only for scalarization of vector ABS node or system test for code generation for every architecture?
Comment Actions
$ find -iname *iabs* ./AArch64/iabs.ll ./ARM/iabs.ll ./PowerPC/iabs.ll ./Thumb/iabs.ll ./X86/viabs.ll ./X86/iabs.ll
Only the X86 has vector test coverage here.
At least copy ./X86/viabs.ll to those other arches.
Comment Actions
PR41149 reduced to:
target triple = "wasm32-unknown--wasm" define void @mod() { entry: %tmp = load <4 x i8>, <4 x i8>* undef %tmp2 = icmp slt <4 x i8> %tmp, zeroinitializer %tmp3 = sub <4 x i8> zeroinitializer, %tmp %tmp4 = select <4 x i1> %tmp2, <4 x i8> %tmp3, <4 x i8> %tmp store <4 x i8> %tmp4, <4 x i8>* undef ret void }
llvm/test/CodeGen/WebAssembly/PR41149.ll | ||
---|---|---|
5 ↗ | (On Diff #191635) | We usually use "wasm32-unknown-unknown" |
llvm/test/CodeGen/WebAssembly/PR41149.ll | ||
---|---|---|
5 ↗ | (On Diff #191635) | Ok. |
llvm/test/CodeGen/WebAssembly/PR41149.ll | ||
---|---|---|
5 ↗ | (On Diff #191635) | Thanks, but no double dash between two unknowns |