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 | 974838f2943a45d693b749aacba5f510b819ee6f (patch) | |
tree | 34d39b7bb98f5c8a8de305efa50c14bd585595b4 /llvm/test/CodeGen/ARM/neon_minmax.ll | |
parent | 8b7c0398b6a30d40de29e6f982a766c5016fc544 (diff) | |
download | bcm5719-llvm-974838f2943a45d693b749aacba5f510b819ee6f.tar.gz bcm5719-llvm-974838f2943a45d693b749aacba5f510b819ee6f.zip |
[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
llvm-svn: 245231
Diffstat (limited to 'llvm/test/CodeGen/ARM/neon_minmax.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/neon_minmax.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/neon_minmax.ll b/llvm/test/CodeGen/ARM/neon_minmax.ll index 84e4b303c16..883522a829a 100644 --- a/llvm/test/CodeGen/ARM/neon_minmax.ll +++ b/llvm/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: |