source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/fsubs.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: 678 bytes
Line 
1; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - \
2; RUN:  | FileCheck %s -check-prefix=VFP2
3
4; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - \
5; RUN:  | FileCheck %s -check-prefix=NFP1
6
7; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 --enable-unsafe-fp-math %s -o - \
8; RUN:  | FileCheck %s -check-prefix=NFP1U
9
10; RUN: llc -mtriple=arm-darwin -mcpu=cortex-a8 %s -o - \
11; RUN:  | FileCheck %s -check-prefix=NFP1U
12
13; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - \
14; RUN:  | FileCheck %s -check-prefix=NFP0
15
16define float @test(float %a, float %b) {
17entry:
18        %0 = fsub float %a, %b
19        ret float %0
20}
21
22; VFP2: vsub.f32        s
23; NFP1U: vsub.f32       d
24; NFP1: vsub.f32        s
25; NFP0: vsub.f32        s
Note: See TracBrowser for help on using the repository browser.