source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/unsafe-fsub.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: 409 bytes
Line 
1; RUN: llc -march=arm -mcpu=cortex-a9 < %s | FileCheck -check-prefix=SAFE %s
2; RUN: llc -march=arm -mcpu=cortex-a9 -enable-unsafe-fp-math < %s | FileCheck -check-prefix=FAST %s
3
4target triple = "armv7-apple-ios"
5
6; SAFE: test
7; FAST: test
8define float @test(float %x, float %y) {
9entry:
10; SAFE: vmul.f32
11; SAFE: vsub.f32
12; FAST: mov r0, #0
13  %0 = fmul float %x, %y
14  %1 = fsub float %0, %0
15  ret float %1
16}
17
18
Note: See TracBrowser for help on using the repository browser.