1; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
2
3; The load is to the high byte of the 2-byte store
4@g = global i8 -75
5
6define void @f(i16 %v) {
7; CHECK-LABEL: f
8; CHECK: sth 3, -2(1)
9; CHECK: lbz 3, -2(1)
10  %p32 = alloca i16
11  store i16 %v, i16* %p32
12  %p16 = bitcast i16* %p32 to i8*
13  %tmp = load i8, i8* %p16
14  store i8 %tmp, i8* @g
15  ret void
16}
17