From 974838f2943a45d693b749aacba5f510b819ee6f Mon Sep 17 00:00:00 2001 From: James Molloy Date: Mon, 17 Aug 2015 19:37:12 +0000 Subject: [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 --- llvm/test/CodeGen/ARM/neon_minmax.ll | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/test/CodeGen/ARM/neon_minmax.ll') 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: -- cgit v1.2.3