repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git]
/
test
/
CodeGen
/
PowerPC
/
big-endian-store-forward.ll
blob
1125a229005ffc141548c17e2921d3e5e1860831
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
6
define 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
}