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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
arc
/
struct-align.c
blob
e509a49759427889a1f028e09289e7dcd36d1f9f
1
// RUN: %clang_cc1 -triple arc-unknown-unknown %s -emit-llvm -o - \
2
// RUN: | FileCheck %s
3
4
// 64-bit fields need only be 32-bit aligned for arc.
5
6
typedef
struct
{
7
int
aa
;
8
double
bb
;
9
}
s1
;
10
11
// CHECK: define{{.*}} i32 @f1
12
// CHECK: ret i32 12
13
int
f1
(
void
) {
14
return sizeof
(
s1
);
15
}
16
17
typedef
struct
{
18
int
aa
;
19
long long
bb
;
20
}
s2
;
21
// CHECK: define{{.*}} i32 @f2
22
// CHECK: ret i32 12
23
int
f2
(
void
) {
24
return sizeof
(
s2
);
25
}
26