http://llvm.org/bugs/show_bug.cgi?id=22560

            Bug ID: 22560
           Summary: fatal error: error in backend: Cannot select:
                    intrinsic %llvm.arm.mcr
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Issue: When the first argument to _MoveToCoProcessor instrinsic is passed via a
parent function argument, it results in a compile error.

Compilation error: fatal error: error in backend: Cannot select: intrinsic
%llvm.arm.mcr

Clang Version: 
clang version 3.5.0 (217039)
Target: armv7-none-linux-androideabi
Thread model: posix

Code (myfunc.cpp):

void MyFunc(const unsigned int x)
{
    _MoveToCoprocessor(x, 2, 3, 4, 5, 6); // this doesn't compile
}

Compilation command:
%PATH%\clang++.exe -c myfunc.cpp -o myfunc.o -target
armv7-none-linux-androideabi -fms-extensions

The following code doesn't give a compile error:

const unsigned int x = 0; // this compiles fine
void MyFunc()
{
    _MoveToCoprocessor(x, 2, 3, 4, 5, 6);
}

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to