blob: 6343310a3c02b7112b1e5f51c56e29365d5ded60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
; 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)
|