[llvm-bugs] [Bug 32654] New: Clang hangs compiling ARM inline assembly, with instruction on unsupported target
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 13 11:24:04 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32654
Bug ID: 32654
Summary: Clang hangs compiling ARM inline assembly, with
instruction on unsupported target
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: kongy.dev at gmail.com
CC: llvm-bugs at lists.llvm.org
$ cat test.cc
float sqrtf(float x) {
__asm__("vsqrt.f32 %0, %1"
: "=t"(x)
: "t"(x));
return x;
}
$ ~/llvm/build/bin/clang --target=armv5-linux-gnueabi test.c -S -o -
.text
.syntax unified
.eabi_attribute 67, "2.09" @ Tag_conformance
.cpu arm10tdmi
.eabi_attribute 6, 3 @ Tag_CPU_arch
.eabi_attribute 8, 1 @ Tag_ARM_ISA_use
.eabi_attribute 17, 1 @ Tag_ABI_PCS_GOT_use
.eabi_attribute 20, 1 @ Tag_ABI_FP_denormal
.eabi_attribute 21, 1 @ Tag_ABI_FP_exceptions
.eabi_attribute 23, 3 @ Tag_ABI_FP_number_model
.eabi_attribute 34, 0 @ Tag_CPU_unaligned_access
.eabi_attribute 24, 1 @ Tag_ABI_align_needed
.eabi_attribute 25, 1 @ Tag_ABI_align_preserved
.eabi_attribute 38, 1 @ Tag_ABI_FP_16bit_format
.eabi_attribute 18, 4 @ Tag_ABI_PCS_wchar_t
.eabi_attribute 26, 2 @ Tag_ABI_enum_size
.eabi_attribute 14, 0 @ Tag_ABI_PCS_R9_use
.file "test3.c"
clang-5.0:
/usr/local/google/home/yikong/llvm/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:392:
void getCopyToParts(llvm::SelectionDAG &, const llvm::SDLoc &, llvm::SDValue,
llvm::SDValue *, unsigned int, llvm::MVT, const llvm::Value *, ISD::NodeType):
Assertion `DAG.getTargetLoweringInfo().isTypeLegal(PartVT) && "Copying to an
illegal type!"' failed.
(hangs)
vsqrt instruction does not exist for armv5, this should throw an error instead
of compiler internal assertion failure and hanging.
--
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/20170413/ec641666/attachment-0001.html>
More information about the llvm-bugs
mailing list