1 ; RUN: llc < %s -mcpu=corei7 -march=x86-64 -mattr=+sse2 | FileCheck %s
2 ; Verify that floating-point operations inside 'optnone' functions
3 ; are not optimized even if unsafe-fp-math is set.
5 define float @foo(float %x) #0 {
7 %add = fadd fast float %x, %x
8 %add1 = fadd fast float %add, %x
18 define float @fooWithOptnone(float %x) #1 {
20 %add = fadd fast float %x, %x
21 %add1 = fadd fast float %add, %x
25 ; CHECK-LABEL: @fooWithOptnone
34 attributes #0 = { "unsafe-fp-math"="true" }
35 attributes #1 = { noinline optnone "unsafe-fp-math"="true" }