1; RUN: llc <%s | FileCheck %s 2target datalayout = "e-m:e-i64:64-n32:64" 3target triple = "powerpc64le-unknown-linux-gnu" 4 5; PR27390 crasher 6 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 and is still alive. 11; CHECK: and 12; Also, in release, it emits a COPY from a 32-bit register to 13; 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: cror 16; Function Attrs: uwtable 17define signext i32 @_Z8access_pP1Tc(%typ* %p, i8 zeroext %type) { 18 %b = getelementptr inbounds %typ, %typ* %p, i64 0, i32 1 19 %1 = load i32, i32* %b, align 4 20 %2 = ptrtoint i32* %b to i64 21 %3 = and i64 %2, -35184372088833 22 %4 = inttoptr i64 %3 to i32* 23 %_msld = load i32, i32* %4, align 4 24 %zzz = add i32 %1, %_msld 25 ret i32 %zzz 26} 27