2013-11-27 01:45:58 +00:00
|
|
|
; 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:
|
2013-12-10 21:33:59 +00:00
|
|
|
%0 = call float @llvm.aarch64.neon.vabd.f32(float %a, float %a)
|
2013-11-27 01:45:58 +00:00
|
|
|
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:
|
2013-12-10 21:33:59 +00:00
|
|
|
%0 = call double @llvm.aarch64.neon.vabd.f64(double %a, double %b)
|
2013-11-27 01:45:58 +00:00
|
|
|
ret double %0
|
|
|
|
}
|
|
|
|
|
2013-12-10 21:33:59 +00:00
|
|
|
declare double @llvm.aarch64.neon.vabd.f64(double, double)
|
|
|
|
declare float @llvm.aarch64.neon.vabd.f32(float, float)
|