revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git] / test / CodeGen / Blackfin / cycles.ll
blob6451c747bd709a7f9c377338bbab3dc0c1c9fbba
1 ; RUN: llc < %s -march=bfin | FileCheck %s
3 declare i64 @llvm.readcyclecounter()
5 ; CHECK: cycles
6 ; CHECK: cycles2
7 define i64 @cyc64() {
8         %tmp.1 = call i64 @llvm.readcyclecounter()
9         ret i64 %tmp.1
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