1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/CodeGen/ARM/softfp-fabs-fneg.ll
Sjoerd Meijer 59d415684b [ARM][NFC] codegen tests cleanup: remove dangling check prefixes
I am working on making FileCheck stricter (in D54769 and D53710) so that it
issues diagnostics when there's something wrong with tests.

This is a cleanup for dangling prefixes in the ARM codegen tests, e.g.:

--check-prefixes=A,B

where A occurs in the check file, but B doesn't. This can be innocent if A does
all the required checking, but can also be a bug in that test if it results in
the test actually not checking anything (if A for example only checks a common
label). Test CodeGen/ARM/smml.ll is such an example.

Differential Revision: https://reviews.llvm.org/D54842

llvm-svn: 347487
2018-11-23 10:08:39 +00:00

41 lines
946 B
LLVM

; RUN: llc -mtriple=armv7 < %s | FileCheck %s
; RUN: llc -mtriple=thumbv7 < %s | FileCheck %s
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7--"
define double @f(double %a) {
; CHECK-LABEL: f:
; CHECK: bfc r1, #31, #1
; CHECK-NEXT: bx lr
%x = call double @llvm.fabs.f64(double %a) readnone
ret double %x
}
define float @g(float %a) {
; CHECK-LABEL: g:
; CHECK: bic r0, r0, #-2147483648
; CHECK-NEXT: bx lr
%x = call float @llvm.fabs.f32(float %a) readnone
ret float %x
}
define double @h(double %a) {
; CHECK-LABEL: h:
; CHECK: eor r1, r1, #-2147483648
; CHECK-NEXT: bx lr
%x = fsub nsz double -0.0, %a
ret double %x
}
define float @i(float %a) {
; CHECK-LABEL: i:
; CHECK: eor r0, r0, #-2147483648
; CHECK-NEXT: bx lr
%x = fsub nsz float -0.0, %a
ret float %x
}
declare double @llvm.fabs.f64(double) readnone
declare float @llvm.fabs.f32(float) readnone