[LLVMbugs] [Bug 12946] New: "Wrong MachineOperand accessor" assertion hit when compiling NEON intrinsics code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 25 04:58:15 PDT 2012


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

             Bug #: 12946
           Summary: "Wrong MachineOperand accessor" assertion hit when
                    compiling NEON intrinsics code
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: simon.hosie at arm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8641
  --> http://llvm.org/bugs/attachment.cgi?id=8641
testcase source

% clang --version
clang version 3.2 (trunk 157465)
Target: x86_64-unknown-linux-gnu
Thread model: posix

% llc --version
LLVM (http://llvm.org/):
  LLVM version 3.2svn
  Optimized build with assertions.
  Built May 25 2012 (12:07:32).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: penryn
[...]

% clang -ccc-host-triple armv7-none-linux-gnueabi -O3 -mcpu=cortex-a9
-mfpu=neon -marm -emit-llvm -c neon_fir.c

% llc neon_fir.o
llc: /home/sh1/llvm/llvm/include/llvm/CodeGen/MachineOperand.h:390: int64_t
llvm::MachineOperand::getImm() const: Assertion `isImm() && "Wrong
MachineOperand accessor"' failed.
0  llc             0x0000000000df48ff
1  llc             0x0000000000df4e14
2  libpthread.so.0 0x00007f5399402060
3  libc.so.6       0x00007f53986e43a5 gsignal + 53
4  libc.so.6       0x00007f53986e7b0b abort + 379
5  libc.so.6       0x00007f53986dcd4d __assert_fail + 221
6  llc             0x000000000068433a
7  llc             0x000000000068e9a5
llvm::ARMBaseInstrInfo::getOutputLatency(llvm::InstrItineraryData const*,
llvm::MachineInstr const*, unsigned int, llvm::MachineInstr const*) const + 117
8  llc             0x0000000000b061b3
llvm::ScheduleDAGInstrs::addPhysRegDeps(llvm::SUnit*, unsigned int) + 531
9  llc             0x0000000000b07048
llvm::ScheduleDAGInstrs::buildSchedGraph(llvm::AliasAnalysis*,
llvm::RegPressureTracker*) + 1368
10 llc             0x0000000000ac44d2
11 llc             0x0000000000ac3798
12 llc             0x0000000000a9f344
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 116
13 llc             0x0000000000d97d8b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 443
14 llc             0x0000000000d97feb
llvm::FPPassManager::runOnModule(llvm::Module&) + 155
15 llc             0x0000000000d98263
llvm::MPPassManager::runOnModule(llvm::Module&) + 419
16 llc             0x0000000000d987d8 llvm::PassManagerImpl::run(llvm::Module&)
+ 408
17 llc             0x0000000000d9893a llvm::PassManager::run(llvm::Module&) +
10
18 llc             0x00000000005048a0 main + 5216
19 libc.so.6       0x00007f53986cf30d __libc_start_main + 237
20 llc             0x0000000000503381
Stack dump:
0.    Program arguments: llc neon_fir.o 
1.    Running pass 'Function Pass Manager' on module 'neon_fir.o'.
2.    Running pass 'Post RA top-down list latency scheduler' on function
'@fir_nxn_unrolled'

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list