[llvm-bugs] [Bug 44018] New: clang on MIPS: Do not know how to split this operator's operand
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 15 15:04:24 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44018
Bug ID: 44018
Summary: clang on MIPS: Do not know how to split this
operator's operand
Product: clang
Version: 9.0
Hardware: Other
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: renat at idrisov.info
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Hi All,
I am getting fatal error when trying to compile intrinsic call when HW support
is not enabled.
$ clang -target mips64r6 -o bug2.o bug2.c
fatal error: error in backend: Do not know how to split this operator's
operand!
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.1-+2019110812332108004e858e4ac00-1~exp1~20191108215024.72
Target: mips64r6
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/bug2-db4001.c
clang: note: diagnostic msg: /tmp/bug2-db4001.sh
clang: note: diagnostic msg:
********************
$ cat /tmp/bug2-db4001.sh
# Crash reproducer for clang version
9.0.1-+2019110812332108004e858e4ac00-1~exp1~20191108215024.72
# Driver args: "--target=mips64r6" "-o" "bug2.o" "bug2.c"
# Original command: "/usr/lib/llvm-9/bin/clang" "-cc1" "-triple" "mips64r6"
"-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier"
"-discard-value-names" "-main-file-name" "bug2.c" "-mrelocation-model" "pic"
"-pic-level" "1" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno"
"-masm-verbose" "-mconstructor-aliases" "-target-cpu" "mips64r6"
"-target-feature" "-noabicalls" "-target-abi" "n64" "-mfloat-abi" "hard"
"-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir"
"/usr/lib/llvm-9/lib/clang/9.0.1" "-fdebug-compilation-dir"
"/home/vagrant/llvm-bugs" "-ferror-limit" "19" "-fmessage-length" "0"
"-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics"
"-faddrsig" "-o" "/tmp/bug2-fb989c.o" "-x" "c" "bug2.c"
"/usr/lib/llvm-9/bin/clang" "-cc1" "-triple" "mips64r6" "-emit-obj"
"-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "bug2.c" "-mrelocation-model" "pic" "-pic-level" "1"
"-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-target-cpu" "mips64r6" "-target-feature"
"-noabicalls" "-target-abi" "n64" "-mfloat-abi" "hard" "-dwarf-column-info"
"-debugger-tuning=gdb" "-ferror-limit" "19" "-fmessage-length" "0"
"-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics"
"-faddrsig" "-x" "c" "bug2-db4001.c"
$ cat /tmp/bug2-db4001.c
# 1 "<built-in>"
# 1 "bug2.c"
unsigned long long foo()
{
long long __attribute__((vector_size(16), aligned(16))) sum = {0};
return __builtin_msa_copy_u_d(sum, 0) + __builtin_msa_copy_u_d(sum, 1);
}
This can be resolved with CLI option `-mmsa`, but the way compiler fails to
process the source may be improved.
Thanks!
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191115/bd7c3651/attachment-0001.html>
More information about the llvm-bugs
mailing list