mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
b2282508d3
intrinsic to use f32/f64 types, rather than their vector equivalents. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196965 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
669 B
LLVM
21 lines
669 B
LLVM
; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s
|
|
|
|
define float @test_vabds_f32(float %a, float %b) {
|
|
; CHECK-LABEL: test_vabds_f32
|
|
; CHECK: fabd {{s[0-9]+}}, {{s[0-9]+}}, {{s[0-9]+}}
|
|
entry:
|
|
%0 = call float @llvm.aarch64.neon.vabd.f32(float %a, float %a)
|
|
ret float %0
|
|
}
|
|
|
|
define double @test_vabdd_f64(double %a, double %b) {
|
|
; CHECK-LABEL: test_vabdd_f64
|
|
; CHECK: fabd {{d[0-9]+}}, {{d[0-9]+}}, {{d[0-9]+}}
|
|
entry:
|
|
%0 = call double @llvm.aarch64.neon.vabd.f64(double %a, double %b)
|
|
ret double %0
|
|
}
|
|
|
|
declare double @llvm.aarch64.neon.vabd.f64(double, double)
|
|
declare float @llvm.aarch64.neon.vabd.f32(float, float)
|