repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git]
/
test
/
FrontendC
/
2007-08-01-LoadStoreAlign.c
blob
ef890bf7cfc992570c5e19d83a3f2a7351563b9b
1
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
2
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
3
4
struct
p
{
5
char
a
;
6
int
b
;
7
}
__attribute__
((
packed
));
8
9
struct
p t
= {
1
,
10
};
10
struct
p u
;
11
12
int
main
() {
13
int
tmp
=
t
.
b
;
14
u
.
b
=
tmp
;
15
return
tmp
;
16
17
}