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
/
ASTMerge
/
asm
/
Inputs
/
asm-function.cpp
blob
1b8783354fcebd89db8646ac475547f8492d3447
1
2
unsigned char
asmFunc
(
unsigned char
a
,
unsigned char
b
) {
3
unsigned int
la
=
a
;
4
unsigned int
lb
=
b
;
5
unsigned int
bigres
;
6
unsigned char
res
;
7
__asm__
(
"0:
\n
1:
\n
"
: [
bigres
]
"=la"
(
bigres
) : [
la
]
"0"
(
la
), [
lb
]
"c"
(
lb
) :
8
"edx"
,
"cc"
);
9
res
=
bigres
;
10
return
res
;
11
}
12
13
int
asmFunc2
(
int
i
) {
14
int
res
;
15
asm
(
"mov %1, %0
\t\n
"
16
"inc %0 "
17
:
"=r"
(
res
)
18
:
"r"
(
i
)
19
:
"cc"
);
20
return
res
;
21
}