forked from OSchip/llvm-project
Add missing build attribute regression tests for Cortex-A8
Differential Revision: http://reviews.llvm.org/D16576 llvm-svn: 258923
This commit is contained in:
parent
e86f252209
commit
0140f45964
|
@ -36,6 +36,12 @@
|
|||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-neon,+d16 | FileCheck %s --check-prefix=CORTEX-A5-NONEON
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A5-NOFPU
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-vfp2 -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A5-NOFPU-FAST
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A8-SOFT
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 -float-abi=soft -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A8-SOFT-FAST
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-A8-HARD
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 -float-abi=hard -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A8-HARD-FAST
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 -enable-sign-dependent-rounding-fp-math | FileCheck %s --check-prefix=DYN-ROUNDING
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a8 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A8-SOFT
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A9-SOFT
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft -enable-unsafe-fp-math -disable-fp-elim -enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast | FileCheck %s --check-prefix=CORTEX-A9-SOFT-FAST
|
||||
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-A9-HARD
|
||||
|
@ -517,7 +523,7 @@
|
|||
; CORTEX-A5-DEFAULT: .eabi_attribute 68, 1
|
||||
|
||||
; CORTEX-A5-DEFAULT-FAST-NOT: .eabi_attribute 19
|
||||
;; The A5 defaults to a VFPv4 FPU, so it flushed preserving sign when -ffast-math
|
||||
;; The A5 defaults to a VFPv4 FPU, so it flushed preserving the sign when -ffast-math
|
||||
;; is given.
|
||||
; CORTEX-A5-DEFAULT-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A5-DEFAULT-FAST-NOT: .eabi_attribute 21
|
||||
|
@ -574,6 +580,28 @@
|
|||
; CORTEX-A5-NOFPU-FAST-NOT: .eabi_attribute 22
|
||||
; CORTEX-A5-NOFPU-FAST: .eabi_attribute 23, 1
|
||||
|
||||
; CORTEX-A8-SOFT: .cpu cortex-a8
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 6, 10
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 7, 65
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 8, 1
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 9, 2
|
||||
; CORTEX-A8-SOFT: .fpu neon
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 19
|
||||
;; We default to IEEE 754 compliance
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 20, 1
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 21, 1
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 22
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 23, 3
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 24, 1
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 25, 1
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 27
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 28
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 36, 1
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 38, 1
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 42, 1
|
||||
; CORTEX-A8-SOFT-NOT: .eabi_attribute 44
|
||||
; CORTEX-A8-SOFT: .eabi_attribute 68, 1
|
||||
|
||||
; CORTEX-A9-SOFT: .cpu cortex-a9
|
||||
; CORTEX-A9-SOFT: .eabi_attribute 6, 10
|
||||
; CORTEX-A9-SOFT: .eabi_attribute 7, 65
|
||||
|
@ -596,14 +624,39 @@
|
|||
; CORTEX-A9-SOFT-NOT: .eabi_attribute 44
|
||||
; CORTEX-A9-SOFT: .eabi_attribute 68, 1
|
||||
|
||||
; CORTEX-A8-SOFT-FAST-NOT: .eabi_attribute 19
|
||||
; CORTEX-A9-SOFT-FAST-NOT: .eabi_attribute 19
|
||||
;; The A9 defaults to a VFPv3 FPU, so it flushes preseving sign when
|
||||
;; The A9 defaults to a VFPv3 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-A8-SOFT-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A9-SOFT-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A5-SOFT-FAST-NOT: .eabi_attribute 21
|
||||
; CORTEX-A5-SOFT-FAST-NOT: .eabi_attribute 22
|
||||
; CORTEX-A5-SOFT-FAST: .eabi_attribute 23, 1
|
||||
|
||||
; CORTEX-A8-HARD: .cpu cortex-a8
|
||||
; CORTEX-A8-HARD: .eabi_attribute 6, 10
|
||||
; CORTEX-A8-HARD: .eabi_attribute 7, 65
|
||||
; CORTEX-A8-HARD: .eabi_attribute 8, 1
|
||||
; CORTEX-A8-HARD: .eabi_attribute 9, 2
|
||||
; CORTEX-A8-HARD: .fpu neon
|
||||
; CORTEX-A8-HARD-NOT: .eabi_attribute 19
|
||||
;; We default to IEEE 754 compliance
|
||||
; CORTEX-A8-HARD: .eabi_attribute 20, 1
|
||||
; CORTEX-A8-HARD: .eabi_attribute 21, 1
|
||||
; CORTEX-A8-HARD-NOT: .eabi_attribute 22
|
||||
; CORTEX-A8-HARD: .eabi_attribute 23, 3
|
||||
; CORTEX-A8-HARD: .eabi_attribute 24, 1
|
||||
; CORTEX-A8-HARD: .eabi_attribute 25, 1
|
||||
; CORTEX-A8-HARD-NOT: .eabi_attribute 27
|
||||
; CORTEX-A8-HARD: .eabi_attribute 28, 1
|
||||
; CORTEX-A8-HARD-NOT: .eabi_attribute 36, 1
|
||||
; CORTEX-A8-HARD: .eabi_attribute 38, 1
|
||||
; CORTEX-A8-HARD-NOT: .eabi_attribute 42, 1
|
||||
; CORTEX-A8-HARD: .eabi_attribute 68, 1
|
||||
|
||||
|
||||
|
||||
; CORTEX-A9-HARD: .cpu cortex-a9
|
||||
; CORTEX-A9-HARD: .eabi_attribute 6, 10
|
||||
; CORTEX-A9-HARD: .eabi_attribute 7, 65
|
||||
|
@ -625,8 +678,16 @@
|
|||
; CORTEX-A9-HARD: .eabi_attribute 42, 1
|
||||
; CORTEX-A9-HARD: .eabi_attribute 68, 1
|
||||
|
||||
; CORTEX-A8-HARD-FAST-NOT: .eabi_attribute 19
|
||||
;; The A8 defaults to a VFPv3 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-A8-HARD-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A8-HARD-FAST-NOT: .eabi_attribute 21
|
||||
; CORTEX-A8-HARD-FAST-NOT: .eabi_attribute 22
|
||||
; CORTEX-A8-HARD-FAST: .eabi_attribute 23, 1
|
||||
|
||||
; CORTEX-A9-HARD-FAST-NOT: .eabi_attribute 19
|
||||
;; The A9 defaults to a VFPv3 FPU, so it flushes preseving sign when
|
||||
;; The A9 defaults to a VFPv3 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-A9-HARD-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A9-HARD-FAST-NOT: .eabi_attribute 21
|
||||
|
@ -652,7 +713,7 @@
|
|||
; CORTEX-A12-DEFAULT: .eabi_attribute 68, 3
|
||||
|
||||
; CORTEX-A12-DEFAULT-FAST-NOT: .eabi_attribute 19
|
||||
;; The A12 defaults to a VFPv3 FPU, so it flushes preseving sign when
|
||||
;; The A12 defaults to a VFPv3 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-A12-DEFAULT-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A12-HARD-FAST-NOT: .eabi_attribute 21
|
||||
|
@ -709,7 +770,7 @@
|
|||
; CORTEX-A15: .eabi_attribute 68, 3
|
||||
|
||||
; CORTEX-A15-FAST-NOT: .eabi_attribute 19
|
||||
;; The A15 defaults to a VFPv3 FPU, so it flushes preseving sign when
|
||||
;; The A15 defaults to a VFPv3 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-A15-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A15-FAST-NOT: .eabi_attribute 21
|
||||
|
@ -735,7 +796,7 @@
|
|||
; CORTEX-A17-DEFAULT: .eabi_attribute 68, 3
|
||||
|
||||
; CORTEX-A17-FAST-NOT: .eabi_attribute 19
|
||||
;; The A17 defaults to a VFPv3 FPU, so it flushes preseving sign when
|
||||
;; The A17 defaults to a VFPv3 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-A17-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-A17-FAST-NOT: .eabi_attribute 21
|
||||
|
@ -981,7 +1042,7 @@
|
|||
; CORTEX-M4-SOFT-NOT: .eabi_attribute 68
|
||||
|
||||
; CORTEX-M4-SOFT-FAST-NOT: .eabi_attribute 19
|
||||
;; The M4 defaults to a VFPv4 FPU, so it flushes preseving sign when
|
||||
;; The M4 defaults to a VFPv4 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-M4-SOFT-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-M4-SOFT-FAST-NOT: .eabi_attribute 21
|
||||
|
@ -1011,7 +1072,7 @@
|
|||
; CORTEX-M4-HARD-NOT: .eabi_attribute 68
|
||||
|
||||
; CORTEX-M4-HARD-FAST-NOT: .eabi_attribute 19
|
||||
;; The M4 defaults to a VFPv4 FPU, so it flushes preseving sign when
|
||||
;; The M4 defaults to a VFPv4 FPU, so it flushes preserving the sign when
|
||||
;; -ffast-math is specified.
|
||||
; CORTEX-M4-HARD-FAST: .eabi_attribute 20, 2
|
||||
; CORTEX-M4-HARD-FAST-NOT: .eabi_attribute 21
|
||||
|
|
Loading…
Reference in New Issue