repo.or.cz
/
clang
/
acc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add include needed for MSVC.
[clang/acc.git]
/
test
/
CodeGen
/
asm-2.c
blob
f5b378eb101704c40dc9ee008a9af596f0fae478
1
// RUN: clang-cc -emit-llvm %s -o %t -triple i386-pc-linux-gnu -O2 &&
2
// RUN: not grep "load" %t
3
4
// <rdar://problem/6841383>
5
int
cpuid
(
unsigned
data
) {
6
int
a
,
b
;
7
8
asm
(
"xyz"
:
"=a"
(
a
),
"=d"
(
b
) :
"a"
(
data
));
9
return
a
+
b
;
10
}