mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
27b1252c13
This changes the tests that were targeting ARM EABI to explicitly specify the environment rather than relying on the default. This breaks with the new Windows on ARM support when running the tests on Windows where the default environment is no longer EABI. Take the opportunity to avoid a pointless redirect (helps when trying to debug with providing a command line invocation which can be copy and pasted) and removing a few greps in favour of FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205541 91177308-0d34-0410-b5e6-96231b3b80d8
73 lines
2.0 KiB
LLVM
73 lines
2.0 KiB
LLVM
; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=VFP2
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=NFP0
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=CORTEXA8
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 --enable-unsafe-fp-math %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=CORTEXA8U
|
|
|
|
; RUN: llc -mtriple=arm-darwin -mcpu=cortex-a8 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=CORTEXA8U
|
|
|
|
; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 %s -o - \
|
|
; RUN: | FileCheck %s -check-prefix=CORTEXA9
|
|
|
|
define float @test1(float* %a) {
|
|
entry:
|
|
%0 = load float* %a, align 4 ; <float> [#uses=2]
|
|
%1 = fsub float -0.000000e+00, %0 ; <float> [#uses=2]
|
|
%2 = fpext float %1 to double ; <double> [#uses=1]
|
|
%3 = fcmp olt double %2, 1.234000e+00 ; <i1> [#uses=1]
|
|
%retval = select i1 %3, float %1, float %0 ; <float> [#uses=1]
|
|
ret float %retval
|
|
}
|
|
; VFP2-LABEL: test1:
|
|
; VFP2: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
; NFP1-LABEL: test1:
|
|
; NFP1: vneg.f32 d{{.*}}, d{{.*}}
|
|
|
|
; NFP0-LABEL: test1:
|
|
; NFP0: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
; CORTEXA8-LABEL: test1:
|
|
; CORTEXA8: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
; CORTEXA8U-LABEL: test1:
|
|
; CORTEXA8U: vneg.f32 d{{.*}}, d{{.*}}
|
|
|
|
; CORTEXA9-LABEL: test1:
|
|
; CORTEXA9: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
define float @test2(float* %a) {
|
|
entry:
|
|
%0 = load float* %a, align 4 ; <float> [#uses=2]
|
|
%1 = fmul float -1.000000e+00, %0 ; <float> [#uses=2]
|
|
%2 = fpext float %1 to double ; <double> [#uses=1]
|
|
%3 = fcmp olt double %2, 1.234000e+00 ; <i1> [#uses=1]
|
|
%retval = select i1 %3, float %1, float %0 ; <float> [#uses=1]
|
|
ret float %retval
|
|
}
|
|
; VFP2-LABEL: test2:
|
|
; VFP2: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
; NFP1-LABEL: test2:
|
|
; NFP1: vneg.f32 d{{.*}}, d{{.*}}
|
|
|
|
; NFP0-LABEL: test2:
|
|
; NFP0: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
; CORTEXA8-LABEL: test2:
|
|
; CORTEXA8: vneg.f32 s{{.*}}, s{{.*}}
|
|
|
|
; CORTEXA8U-LABEL: test2:
|
|
; CORTEXA8U: vneg.f32 d{{.*}}, d{{.*}}
|
|
|
|
; CORTEXA9-LABEL: test2:
|
|
; CORTEXA9: vneg.f32 s{{.*}}, s{{.*}}
|
|
|