aboutsummaryrefslogtreecommitdiff
blob: 017694dcd7b193f05421dbf8288c30e9b09feab2 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc -mtriple=arm64-eabi -mattr=+jsconv -o - %s | FileCheck %s

define i32 @test_jcvt(double %v) {
; CHECK-LABEL: test_jcvt:
; CHECK: fjcvtzs w0, d0
  %val = call i32 @llvm.aarch64.fjcvtzs(double %v)
  ret i32 %val
}

declare i32 @llvm.aarch64.fjcvtzs(double)