annotate test/CodeGen/Hexagon/readcyclecounter.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc -march=hexagon < %s | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; CHECK-LABEL: test_readcyclecounter
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; CHECK: r1:0 = c15:14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 define i64 @test_readcyclecounter() nounwind {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 %t0 = call i64 @llvm.readcyclecounter()
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ret i64 %t0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 declare i64 @llvm.readcyclecounter()