27 lines · plain
1; RUN: llc -verify-machineinstrs <%s | FileCheck %s2target datalayout = "e-m:e-i64:64-n32:64"3target triple = "powerpc64le-unknown-linux-gnu"4 5; PR27390 crasher6 7%typ = type { i32, i32 }8 9; On release builds, it doesn't crash, spewing nonsense instead.10; To make sure it works, check that rldicl is still alive.11; CHECK: rldicl12; Also, in release, it emits a COPY from a 32-bit register to13; a 64-bit register, which happens to be emitted as cror [!]14; by the confused CodeGen. Just to be sure, check there isn't one.15; CHECK-NOT: cror16; Function Attrs: uwtable17define signext i32 @_Z8access_pP1Tc(ptr %p, i8 zeroext %type) {18 %b = getelementptr inbounds %typ, ptr %p, i64 0, i32 119 %1 = load i32, ptr %b, align 420 %2 = ptrtoint ptr %b to i6421 %3 = and i64 %2, -3518437208883322 %4 = inttoptr i64 %3 to ptr23 %_msld = load i32, ptr %4, align 424 %zzz = add i32 %1, %_msld25 ret i32 %zzz26}27