https://llvm.org/bugs/show_bug.cgi?id=26884
Bug ID: 26884 Summary: clang O3/O2 error for Linpack with NEON instructions Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Keywords: compile-fail Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: junaidsh...@siswa.um.edu.my CC: llvm-bugs@lists.llvm.org, renato.go...@linaro.org Classification: Unclassified Created attachment 16012 --> https://llvm.org/bugs/attachment.cgi?id=16012&action=edit source file I am using code Neonlinpack code from, http://www.roylongbottom.org.uk/Raspberry_Pi_Benchmarks.zip When I compile it with clang without any optimization flags, it runs OK. But when I use O3/O2 flags in command, clang -target armv7a-linux-gnueabihf -mfpu=neon -mfloat-abi=hard linpackneon.c cpuidc.c -O3 -o linpackneon I get the following errors In file included from cpuidc.c:13: In file included from /usr/include/math.h:426: /usr/include/bits/mathinline.h:756:25: error: invalid output constraint '=&q' in asm : "=t" (__value), "=&q" (__ignore), "=m" (__cwtmp), \ ^ /usr/include/bits/mathinline.h:756:25: error: invalid output constraint '=&q' in asm /usr/include/bits/mathinline.h:756:25: error: invalid output constraint '=&q' in asm /usr/include/bits/mathinline.h:774:25: error: invalid output constraint '=&q' in asm : "=t" (__value), "=&q" (__ignore), "=m" (__cwtmp), \ ^ /usr/include/bits/mathinline.h:774:25: error: invalid output constraint '=&q' in asm /usr/include/bits/mathinline.h:774:25: error: invalid output constraint '=&q' in asm /usr/include/bits/mathinline.h:881:3: error: unknown register name 'st' in asm __lrint_code; ^ /usr/include/bits/mathinline.h:876:40: note: expanded from macro '__lrint_code' : "=m" (__lrintres) : "t" (__x) : "st"); What is the reason behind these errors. I do not encounter such errors with GCC. The files can be downloaded from the above link and I am attaching cpuidc.c in the attachments. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs