diff options
| author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-08-31 14:17:38 +0000 |
|---|---|---|
| committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-08-31 14:17:38 +0000 |
| commit | 46b5b8838759324c25affab9e6d0285898d9ae0a (patch) | |
| tree | 4cdab85bdc7f6372ff9c99fb753d0bdbd27ef48f /llvm/test/CodeGen/ARM | |
| parent | 3042713b4b7a22e8a0c42266668e8eb5cefc4844 (diff) | |
| download | bcm5719-llvm-46b5b8838759324c25affab9e6d0285898d9ae0a.tar.gz bcm5719-llvm-46b5b8838759324c25affab9e6d0285898d9ae0a.zip | |
Clang patch r280064 introduced ways to set the FP exceptions and denormal
types. This is the LLVM counterpart and it adds options that map onto FP
exceptions and denormal build attributes allowing better fp math library
selections.
Differential Revision: https://reviews.llvm.org/D24070
llvm-svn: 280246
Diffstat (limited to 'llvm/test/CodeGen/ARM')
| -rw-r--r-- | llvm/test/CodeGen/ARM/build-attributes.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/build-attributes.ll b/llvm/test/CodeGen/ARM/build-attributes.ll index 53b8fc39a7c..bd0ad02d42e 100644 --- a/llvm/test/CodeGen/ARM/build-attributes.ll +++ b/llvm/test/CodeGen/ARM/build-attributes.ll @@ -61,6 +61,11 @@ ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A17-NOFPU ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a17 -mattr=-vfp2 -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A17-NOFPU-FAST +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -enable-no-trapping-fp-math | FileCheck %s --check-prefix=NO-TRAPPING-MATH +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -denormal-fp-math=ieee | FileCheck %s --check-prefix=DENORMAL-IEEE +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -denormal-fp-math=preserve-sign | FileCheck %s --check-prefix=DENORMAL-PRESERVE-SIGN +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -denormal-fp-math=positive-zero | FileCheck %s --check-prefix=DENORMAL-POSITIVE-ZERO + ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mattr=-neon,+vfp3,+fp16 | FileCheck %s --check-prefix=GENERIC-FPU-VFPV3-FP16 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mattr=-neon,+vfp3,+d16,+fp16 | FileCheck %s --check-prefix=GENERIC-FPU-VFPV3-D16-FP16 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mattr=-neon,+vfp3,+fp-only-sp,+d16 | FileCheck %s --check-prefix=GENERIC-FPU-VFPV3XD @@ -846,6 +851,12 @@ ; CORTEX-A17-NOFPU-FAST-NOT: .eabi_attribute 22 ; CORTEX-A17-NOFPU-FAST: .eabi_attribute 23, 1 +; Test flags -enable-no-trapping-fp-math and -denormal-fp-math: +; NO-TRAPPING-MATH: .eabi_attribute 21, 0 +; DENORMAL-IEEE: .eabi_attribute 20, 1 +; DENORMAL-PRESERVE-SIGN: .eabi_attribute 20, 2 +; DENORMAL-POSITIVE-ZERO: .eabi_attribute 20, 0 + ; CORTEX-M0: .cpu cortex-m0 ; CORTEX-M0: .eabi_attribute 6, 12 ; CORTEX-M0-NOT: .eabi_attribute 7 |

