diff options
author | James Molloy <james.molloy@arm.com> | 2015-08-17 19:37:12 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-08-17 19:37:12 +0000 |
commit | 9daba6f571437eb90a0fdf477f33cf0cfef9c58b (patch) | |
tree | adca0b11c460906a756e2f16f513ad3c247d3e1a /test/CodeGen/ARM/neon_minmax.ll | |
parent | dcf748827b3d1b243cf36a62efc763ebd9d5ca44 (diff) |
[ARM] Fix crash when targetting CPU without NEON
We emulate a scalar vmin/vmax with NEON instructions as they don't exist in the VFP ISA. So only mark these as legal when NEON is available.
Found here: https://code.google.com/p/chromium/issues/detail?id=521671
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/neon_minmax.ll')
-rw-r--r-- | test/CodeGen/ARM/neon_minmax.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/neon_minmax.ll b/test/CodeGen/ARM/neon_minmax.ll index 84e4b303c16..883522a829a 100644 --- a/test/CodeGen/ARM/neon_minmax.ll +++ b/test/CodeGen/ARM/neon_minmax.ll @@ -1,4 +1,5 @@ ; RUN: llc -mtriple=arm-eabi -mcpu=swift %s -o - | FileCheck %s +; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 -mattr=-neon %s -o - define float @fmin_ole(float %x) nounwind { ;CHECK-LABEL: fmin_ole: |