Skip to content

BitWidth == RHS.BitWidth && "Bit widths must be the same" #113067

@tschuett

Description

@tschuett
Assertion failed: (BitWidth == RHS.BitWidth && "Bit widths must be the same"), function operator+=, file APInt.cpp, line 199.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: llc -global-isel -mtriple=amdgcn-amd-amdpal -mcpu=tahiti
1.	Running pass 'CallGraph Pass Manager' on module '<stdin>'.
2.	Running pass 'AMDGPUPostLegalizerCombiner' on function '@s_sext_inreg_i65_33'
 #0 0x000000010fa92108 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (llvm-globalisel/llvm-project2/bin/llc+0x1025ab108)
 #1 0x000000010fa8f85b llvm::sys::RunSignalHandlers() (llvm-globalisel/llvm-project2/bin/llc+0x1025a885b)
 #2 0x000000010fa928d6 SignalHandler(int) (llvm-globalisel/llvm-project2/bin/llc+0x1025ab8d6)
 #3 0x00007ff800ec8e9d (/usr/lib/system/libsystem_platform.dylib+0x7ff80047fe9d)
 #4 0x0000000000000000
 #5 0x00007ff800db4b19 (/usr/lib/system/libsystem_c.dylib+0x7ff80036bb19)
 #6 0x00007ff800db3ddc (/usr/lib/system/libsystem_c.dylib+0x7ff80036addc)
 #7 0x000000010f9e8f09 computeForAddCarry(llvm::KnownBits const&, llvm::KnownBits const&, bool, bool) (llvm-globalisel/llvm-project2/bin/llc+0x102501f09)
 #8 0x000000010f9ea2d3 llvm::KnownBits::computeForAddSub(bool, bool, bool, llvm::KnownBits const&, llvm::KnownBits const&) (lvm-project2/bin/llc+0x1025032d3)
 #9 0x000000010ffb3743 llvm::GISelKnownBits::computeKnownBitsImpl(llvm::Register, llvm::KnownBits&, llvm::APInt const&, unsigned int) (llvm-globalisel/llvm-project2/bin/llc+0x102acc743)
#10 0x000000010ffb441d llvm::GISelKnownBits::computeKnownBitsImpl(llvm::Register, llvm::KnownBits&, llvm::APInt const&, unsigned int) (llvm-globalisel/llvm-project2/bin/llc+0x102acd41d)
#11 0x000000010ffb21b4 llvm::GISelKnownBits::getKnownBits(llvm::Register) (llvm-globalisel/llvm-project2/bin/llc+0x102acb1b4)
#12 0x000000010ffe19f4 llvm::CombinerHelper::matchRedundantOr(llvm::MachineInstr&, llvm::Register&) (lvm-globalisel/llvm-project2/bin/llc+0x102afa9f4)
#13 0x000000010db5f561 (anonymous namespace)::AMDGPUPostLegalizerCombinerImpl::runCustomAction(unsigned int, llvm::GIMatchTableExecutor::MatcherState const&, llvm::SmallVector<llvm::MachineInstrBuilder, 4u>&) const (llvm-globalisel/llvm-project2/bin/llc+0x100678561)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions