view 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
line wrap: on
line source

; RUN: llc -march=hexagon < %s | FileCheck %s

; CHECK-LABEL: test_readcyclecounter
; CHECK: r1:0 = c15:14
define i64 @test_readcyclecounter() nounwind {
  %t0 = call i64 @llvm.readcyclecounter()
  ret i64 %t0
}

declare i64 @llvm.readcyclecounter()