repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
PowerPC
/
big-endian-store-forward.ll
blob
e139d3c9a9df0eae6ff0c0a8285a89baebf4872d
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, ptr %p32
12
%tmp = load i8, ptr %p32
13
store i8 %tmp, ptr @g
14
ret void
15
}