forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure FABS on v2f32 and v4f32 is legal on ARM NEON
This fixes PR14359 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168200 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; RUN: llc < %s -mtriple=armv7-eabi -float-abi=hard -mcpu=cortex-a8 | FileCheck %s | ||
|
||
; CHECK: test: | ||
; CHECK: vabs.f32 q0, q0 | ||
define <4 x float> @test(<4 x float> %a) { | ||
%foo = call <4 x float> @llvm.fabs.v4f32(<4 x float> %a) | ||
ret <4 x float> %foo | ||
} | ||
declare <4 x float> @llvm.fabs.v4f32(<4 x float> %a) | ||
|
||
; CHECK: test2: | ||
; CHECK: vabs.f32 d0, d0 | ||
define <2 x float> @test2(<2 x float> %a) { | ||
%foo = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a) | ||
ret <2 x float> %foo | ||
} | ||
declare <2 x float> @llvm.fabs.v2f32(<2 x float> %a) |