Home | History | Annotate | Download | only in Blackfin
      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 }
     18