llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.7k stars 11.87k forks source link

CodeGen/Generic/2010-11-04-BigByval.ll failing on AArch64 with LLVM_ENABLE_EXPENSIVE_CHECK #62731

Open madhur13490 opened 1 year ago

madhur13490 commented 1 year ago

CodeGen/Generic/2010-11-04-BigByval.ll is failing on AArch64 when LLVM is compiled with LLVM_ENABLE_EXPENSIVE_CHECK=ON, RELEASE and ASSERTIONS=ON

Backtrace:

: 'RUN: at line 1';   /home/work/llvm-project/build/bin/llc < /home/work/llvm-project/llvm/test/CodeGen/Generic/2010-11-04-BigByval.ll
--
Exit Code: 134 

Command Output (stderr):

# After Instruction Selection
# Machine code for function bar: IsSSA, TracksLiveness
Frame Objects:
  fi#-1: size=131072, align=16, fixed, at location [SP]

bb.0 (%ir-block.0):
  ADJCALLSTACKDOWN 131072, 0, implicit-def dead $sp, implicit $sp 
  ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp 
  %0:gpr64all = COPY $sp 
  %1:gpr32 = MOVi32imm 131072
  %2:gpr64all = SUBREG_TO_REG 0, killed %1:gpr32, %subreg.sub_32
  %3:gpr64sp = ADDXri %fixed-stack.0, 0, 0
  $x0 = COPY %0:gpr64all
  $x1 = COPY %3:gpr64sp
  $x2 = COPY %2:gpr64all
  BL &memcpy, <regmask $fp $lr $wzr $xzr $b8 $b9 $b10 $b11 $b12 $b13 $b14 $b15 $d8 $d9 $d10 $d11 $d12 $d13 $d14 $d15 $h8 $h9 $h10 $h11 $h12 $h13 $h14 $h15 $s8 $s9 $s10 $s11 $s12 and 55 more...>, implicit-def dead $lr, implicit $sp, implicit $x0, implicit $x1, implicit $x2, implicit-def $sp, implicit-def $x0
  ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp 
  %4:gpr64all = COPY $x0 
  BL @foo, <regmask $fp $lr $wzr $xzr $b8 $b9 $b10 $b11 $b12 $b13 $b14 $b15 $d8 $d9 $d10 $d11 $d12 $d13 $d14 $d15 $h8 $h9 $h10 $h11 $h12 $h13 $h14 $h15 $s8 $s9 $s10 $s11 $s12 and 55 more...>, implicit-def dead $lr, implicit $sp, implicit-def $sp 
  ADJCALLSTACKUP 131072, 0, implicit-def dead $sp, implicit $sp 
  RET_ReallyLR

# End machine code for function bar.

*** Bad machine code: FrameSetup is after another FrameSetup *** 
- function:    bar 
- basic block: %bb.0  (0xaaaaeca4df58)
- instruction: ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp 

*** Bad machine code: FrameDestroy <n> is after FrameSetup <m> *** 
- function:    bar 
- basic block: %bb.0  (0xaaaaeca4df58)
- instruction: ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp 
FrameDestroy <0> is after FrameSetup <131072>.

*** Bad machine code: FrameDestroy is not after a FrameSetup *** 
- function:    bar 
- basic block: %bb.0  (0xaaaaeca4df58)
- instruction: ADJCALLSTACKUP 131072, 0, implicit-def dead $sp, implicit $sp 
LLVM ERROR: Found 3 machine code errors.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.  Program arguments: /home/work/llvm-project/build/bin/llc
1.  Running pass 'Function Pass Manager' on module '<stdin>'.
2.  Running pass 'Verify generated machine code' on function '@bar'
 #0 0x0000aaaaade9de24 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/work/llvm-project/build/bin/llc+0x2dede24)
 #1 0x0000aaaaade9bd10 llvm::sys::RunSignalHandlers() (/home/work/llvm-project/build/bin/llc+0x2debd10)
 #2 0x0000aaaaade9e52c SignalHandler(int) Signals.cpp:0:0
 #3 0x0000ffffaf2e778c (linux-vdso.so.1+0x78c)
 #4 0x0000ffffaed46d78 raise /build/glibc-RIFKjK/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #5 0x0000ffffaed33aac abort /build/glibc-RIFKjK/glibc-2.31/stdlib/abort.c:81:7
 #6 0x0000aaaaade0744c llvm::report_fatal_error(llvm::Twine const&, bool) (/home/work/llvm-project/build/bin/llc+0x2d5744c)
 #7 0x0000aaaaad367a80 (anonymous namespace)::MachineVerifier::BBInfo::~BBInfo() MachineVerifier.cpp:0:0
 #8 0x0000aaaaad25fde0 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/work/llvm-project/build/bin/llc+0x21afde0)
 #9 0x0000aaaaad7d55a8 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/work/llvm-project/build/bin/llc+0x27255a8)
#10 0x0000aaaaad7dd714 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/work/llvm-project/build/bin/llc+0x272d714)
#11 0x0000aaaaad7d60ac llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/work/llvm-project/build/bin/llc+0x27260ac)
#12 0x0000aaaaab8dcf0c compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#13 0x0000aaaaab8dad88 main (/home/work/llvm-project/build/bin/llc+0x82ad88)
#14 0x0000ffffaed33e10 __libc_start_main /build/glibc-RIFKjK/glibc-2.31/csu/../csu/libc-start.c:342:3
#15 0x0000aaaaab8d7728 _start (/home/work/llvm-project/build/bin/llc+0x827728)
/home/work/llvm-project/build/test/CodeGen/Generic/Output/2010-11-04-BigByval.ll.script: line 1: 1969277 Aborted                 (core dumped) /home/work/llvm-project/build/bin/llc < /home/work/llvm-project/llvm/test/CodeGen/Generic/2010-11-04-BigByval.ll

--

********************
********************
Failed Tests (1):
  LLVM :: CodeGen/Generic/2010-11-04-BigByval.ll

Testing Time: 0.74s
  Failed: 1
llvmbot commented 1 year ago

@llvm/issue-subscribers-backend-aarch64