comparison test/CodeGen/AArch64/fast-isel-intrinsic.ll @ 83:60c9769439b8

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents
children
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
1 ; RUN: llc -mtriple=aarch64-apple-darwin -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple=aarch64-apple-darwin -fast-isel -verify-machineinstrs < %s | FileCheck %s
3
4 define float @fabs_f32(float %a) {
5 ; CHECK-LABEL: fabs_f32
6 ; CHECK: fabs s0, s0
7 %1 = call float @llvm.fabs.f32(float %a)
8 ret float %1
9 }
10
11 define double @fabs_f64(double %a) {
12 ; CHECK-LABEL: fabs_f64
13 ; CHECK: fabs d0, d0
14 %1 = call double @llvm.fabs.f64(double %a)
15 ret double %1
16 }
17
18 declare double @llvm.fabs.f64(double)
19 declare float @llvm.fabs.f32(float)