[llvm-bugs] [Bug 42114] New: Risc-V C compiler assert
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 3 08:16:53 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42114
Bug ID: 42114
Summary: Risc-V C compiler assert
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: grogers at micron.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 22066
--> https://bugs.llvm.org/attachment.cgi?id=22066&action=edit
source file
They compiler asserts when compiling this code fragment:
void
test(int n, complex double s[], complex double a[], complex double b)
{
int i;
for (i=0;i<n;i++)
s[i] = a[i] + b;
}
Here is the assert backtrace:
fatal error: error in backend: Cannot select: 0x560625bd9208: f64 = bitcast
0x560625bd9750
0x560625bd9750: i64,ch = CopyFromReg 0x560625bd8f98:1, Register:i64 %18
0x560625bd8f30: i64 = Register %18
In function: test
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 8.0.0
Target: riscv64-unknown-unknown-elf
Thread model: posix
InstalledDir:
/nethome/grogers/scratch/emd/emd/../llvm-riscv-tools/riscv-build/riscv/bin
Here is the compile line:
ripsaw: grogers: bugs $ cat dcmplx3-b0fbc4.sh
# Crash reproducer for clang version 8.0.0
# Driver args: "-O2" "-I" "/nethome/grogers/scratch/emd/emd/simlib/include"
"dcmplx3.r5.c" "-L/nethome/grogers/scratch/emd/emd/emd-clang/simlib/lib"
"-Wl,-static" "-lhtp_runtime" "-o" "dcmplx3.r5.exe"
# Original command: "/work/grogers/llvm-project/riscv-build/riscv/bin/clang-8"
"-cc1" "-triple" "riscv64-unknown-unknown-elf" "-emit-obj" "-disable-free"
"-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
"dcmplx3.r5.c" "-mrelocation-model" "static" "-mthread-model" "posix"
"-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-nostdsysteminc"
"-fuse-init-array" "-target-abi" "lp64" "-dwarf-column-info"
"-debugger-tuning=gdb" "-momit-leaf-frame-pointer" "-resource-dir"
"/work/grogers/llvm-project/riscv-build/riscv/lib/clang/8.0.0" "-I"
"/nethome/grogers/scratch/emd/emd/simlib/include" "-isysroot"
"/nethome/grogers/scratch/emd/llvm-riscv-tools/riscv-build/riscv/riscv64-unknown-elf"
"-internal-isystem"
"/nethome/grogers/scratch/emd/llvm-riscv-tools/riscv-build/riscv/riscv64-unknown-elf/include"
"-O2" "-fdebug-compilation-dir"
"/nethome/grogers/scratch/emd/emd/htp-tests/apps/complex" "-ferror-limit" "19"
"-fmessage-length" "80" "-fno-signed-char" "-fobjc-runtime=gcc"
"-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops"
"-vectorize-slp" "-o" "/tmp/dcmplx3-8b042e.o" "-x" "c" "dcmplx3.r5.c"
"-faddrsig"
"/work/grogers/llvm-project/riscv-build/riscv/bin/clang-8" "-cc1" "-triple"
"riscv64-unknown-unknown-elf" "-emit-obj" "-disable-free"
"-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
"dcmplx3.r5.c" "-mrelocation-model" "static" "-mthread-model" "posix"
"-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-nostdsysteminc"
"-fuse-init-array" "-target-abi" "lp64" "-dwarf-column-info"
"-debugger-tuning=gdb" "-momit-leaf-frame-pointer" "-O2" "-ferror-limit" "19"
"-fmessage-length" "80" "-fno-signed-char" "-fobjc-runtime=gcc"
"-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops"
"-vectorize-slp" "-x" "c" "dcmplx3-b0fbc4.c" "-faddrsig"
--
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/20190603/8c71f3ef/attachment.html>
More information about the llvm-bugs
mailing list