brintos

brintos / llvm-project-archived public Read only

0
0
Text · 722 B · cda3ea0 Raw
20 lines · plain
1; Check FP option -fdenormal-fp-math. This passed as function attribute,2; which map on to build attributes ABI_FP_denormal. In the backend we3; therefore have a check to see if all functions have consistent function4; attributes values.5; Here we check the denormal-fp-math=preserve-sign value.6 7; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15  | FileCheck %s --check-prefix=CHECK8 9; CHECK: .eabi_attribute 20, 210 11define i32 @foo1() local_unnamed_addr #0 {12entry:13  %a = call float @llvm.fma.f32(float 0.0, float 0.0, float 0.0)14  ret i32 4215}16 17declare float @llvm.fma.f32(float, float, float)18 19attributes #0 = { minsize norecurse nounwind optsize readnone "denormal-fp-math"="preserve-sign,preserve-sign"}20