1 ; RUN: llc -verify-machineinstrs <%s | FileCheck %s
2 target datalayout = "e-m:e-i64:64-n32:64"
3 target triple = "powerpc64le-unknown-linux-gnu"
7 %typ = type { i32, i32 }
9 ; On release builds, it doesn't crash, spewing nonsense instead.
10 ; To make sure it works, check that rldicl is still alive.
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.
16 ; Function Attrs: uwtable
17 define signext i32 @_Z8access_pP1Tc(ptr %p, i8 zeroext %type) {
18 %b = getelementptr inbounds %typ, ptr %p, i64 0, i32 1
19 %1 = load i32, ptr %b, align 4
20 %2 = ptrtoint ptr %b to i64
21 %3 = and i64 %2, -35184372088833
22 %4 = inttoptr i64 %3 to ptr
23 %_msld = load i32, ptr %4, align 4
24 %zzz = add i32 %1, %_msld