1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=aarch64-- | FileCheck %s
4 define i32 @PR39657(i8* %p, i64 %x) {
5 ; CHECK-LABEL: PR39657:
7 ; CHECK-NEXT: mvn x8, x1
8 ; CHECK-NEXT: ldr w0, [x0, x8, lsl #2]
11 %mul = xor i64 %sh, -4
12 %add.ptr = getelementptr inbounds i8, i8* %p, i64 %mul
13 %bc = bitcast i8* %add.ptr to i32*
14 %load = load i32, i32* %bc, align 4