Sjoerd Meijer | 2fc4cb6 | 2016-10-19 13:43:02 +0000 | [diff] [blame] | 1 | ; Check FP options -fno-trapping-math and -fdenormal-fp-math. They are passed as |
| 2 | ; function attributes, which map on to build attributes ABI_FP_exceptions ABI_FP_denormal. |
| 3 | ; In the backend we have a check to see if all functions have consistent function |
| 4 | ; attributes values. This checks the "default" behaviour when these FP function |
| 5 | ; attributes are not set at all. |
| 6 | |
Mandeep Singh Grang | da99e33 | 2016-10-24 18:57:55 +0000 | [diff] [blame] | 7 | ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 | FileCheck %s |
Sjoerd Meijer | 2fc4cb6 | 2016-10-19 13:43:02 +0000 | [diff] [blame] | 8 | |
| 9 | ; CHECK: .eabi_attribute 20, 1 |
| 10 | ; CHECK: .eabi_attribute 21, 1 |
| 11 | |
| 12 | define i32 @foo_no_fn_attr() local_unnamed_addr #0 { |
| 13 | entry: |
| 14 | ret i32 42 |
| 15 | } |
| 16 | |
| 17 | attributes #0 = { minsize norecurse nounwind optsize readnone } |