source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/fnmuls.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 625 bytes
Line 
1; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - | FileCheck %s
2; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s
3; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s
4; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 %s -o - | FileCheck %s
5
6define arm_aapcs_vfpcc float @test1(float %a, float %b) nounwind {
7; CHECK: vnmul.f32 s0, s0, s1
8entry:
9        %0 = fmul float %a, %b
10        %1 = fsub float -0.0, %0
11        ret float %1
12}
13
14define arm_aapcs_vfpcc float @test2(float %a, float %b) nounwind {
15; CHECK: vnmul.f32 s0, s0, s1
16entry:
17        %0 = fmul float %a, %b
18        %1 = fmul float -1.0, %0
19        ret float %1
20}
21
Note: See TracBrowser for help on using the repository browser.