repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
CodeGen
/
Blackfin
/
cycles.ll
blob
6451c747bd709a7f9c377338bbab3dc0c1c9fbba
1
; RUN: llc < %s -march=bfin | FileCheck %s
2
3
declare i64 @llvm.readcyclecounter()
4
5
; CHECK: cycles
6
; CHECK: cycles2
7
define i64 @cyc64() {
8
%tmp.1 = call i64 @llvm.readcyclecounter()
9
ret i64 %tmp.1
10
}
11
12
; CHECK: cycles
13
define i32@cyc32() {
14
%tmp.1 = call i64 @llvm.readcyclecounter()
15
%s = trunc i64 %tmp.1 to i32
16
ret i32 %s
17
}