xref: /llvm-project/llvm/test/CodeGen/ARM/build-attributes-fn-attr0.ll (revision da99e33ae3d93302a7395f6c2bbe8f69cafc717a)
12fc4cb6fSSjoerd Meijer; Check FP options -fno-trapping-math and -fdenormal-fp-math. They are passed
22fc4cb6fSSjoerd Meijer; as function attributes, which map on to build attributes ABI_FP_exceptions
32fc4cb6fSSjoerd Meijer; ABI_FP_denormal. In the backend we therefore have a check to see if all
42fc4cb6fSSjoerd Meijer; functions have consistent function attributes values. This check also returns
52fc4cb6fSSjoerd Meijer; true when the compilation unit does not have any functions (i.e. the
62fc4cb6fSSjoerd Meijer; attributes are consistent), which is what we check with this regression test.
72fc4cb6fSSjoerd Meijer
8*da99e33aSMandeep Singh Grang; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15  | FileCheck %s
92fc4cb6fSSjoerd Meijer
102fc4cb6fSSjoerd Meijer; CHECK:  .eabi_attribute 20, 2
112fc4cb6fSSjoerd Meijer; CHECK:  .eabi_attribute 21, 0
12