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
/
2004-03-16-AsmRegisterCrash.c
blob
8e6ec67c5c2ad6325bf18f2ec5b163a42ea623a2
1
// RUN: %clang_cc1 -triple armv7-unknown-unknown %s -o /dev/null
2
// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -o /dev/null
3
4
int
foo
(
void
) {
5
#ifdef __arm__
6
register
int
X
__asm__
(
"r1"
);
7
#else
8
register
int
X
__asm__
(
"ebx"
);
9
#endif
10
return
X
;
11
}