llvm-project/llvm/test/CodeGen/PowerPC/unsafe-math.ll

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
360 B
LLVM
Raw Normal View History

; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | grep fmul | count 2
; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- -enable-unsafe-fp-math | \
; RUN: grep fmul | count 1
2007-01-09 07:03:19 +08:00
2010-11-15 06:22:14 +08:00
define double @foo(double %X) nounwind {
%tmp1 = fmul double %X, 1.23
%tmp2 = fmul double %tmp1, 4.124
2007-01-09 07:03:19 +08:00
ret double %tmp2
}