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
llvm.ppc.altivec.vcmpgtsb Do not know how to split the result of this operator #38235
Comments
Looks like related to -msoft-float for llvm.ppc.altivec.vcmpgtsb Reduced source and command line to reproduce: $ cat t.c $ clang -S t.c -msoft-float fatal error: error in backend: Do not know how to split the result of this operator! clang-7: error: clang frontend command failed with exit code 70 (use -v to see invocation) PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: $ clang -S t.c |
Further reduced: $ cat reduced.ll ; Function Attrs: noinline nounwind optnone ; Function Attrs: nounwind readnone attributes #0 = { noinline nounwind optnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="ppc64le" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+htm,+power8-vector,+vsx,-power9-vector,-qpx" "unsafe-fp-math"="false" } !llvm.ident = !{#0} !0 = !{!"clang version 8.0.0 "} LLVM ERROR: Do not know how to split the result of this operator! |
This is actually duplicate of #30525 , When we enabled soft-float for ppc64, we chose to disable altivec! http://llvm.org/viewvc/llvm-project?view=revision&revision=283060 This change enables soft-float for PowerPC64, and also makes soft-float disable |
Extended Description
Running clang trunk on ppc64le, building the ppc64le Linux kernel fails when attempting to build lib/raid6/altivec1.c
SplitVectorResult #0: t196: v16i8 = llvm.ppc.altivec.vcmpgtsb TargetConstant:i64<4823>, t146, t195
fatal error: error in backend: Do not know how to split the result of this operator!
clang-8: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 8.0.0 (trunk 341773)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /scratch/joel/llvm-build/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
The text was updated successfully, but these errors were encountered: