2018-06-15 04:54:13 +08:00
|
|
|
; RUN: llc -mtriple=arm-eabi -mattr=+v6,+vfp2 %s -o - | FileCheck %s -check-prefix STRICT
|
2007-05-03 08:31:40 +08:00
|
|
|
|
2018-06-15 04:54:13 +08:00
|
|
|
; RUN: llc -mtriple=arm-eabi -mattr=+v6,+vfp2 -enable-unsafe-fp-math %s -o - | FileCheck %s -check-prefix UNSAFE
|
2007-05-03 08:31:40 +08:00
|
|
|
|
|
|
|
define double @t1(double %a, double %b) {
|
2018-06-15 04:54:13 +08:00
|
|
|
; STRICT: vnmul.f64
|
|
|
|
;
|
|
|
|
; UNSAFE: vnmul.f64
|
2007-05-03 08:31:40 +08:00
|
|
|
entry:
|
2009-06-05 06:49:04 +08:00
|
|
|
%tmp2 = fsub double -0.000000e+00, %a ; <double> [#uses=1]
|
|
|
|
%tmp4 = fmul double %tmp2, %b ; <double> [#uses=1]
|
2007-05-03 08:31:40 +08:00
|
|
|
ret double %tmp4
|
|
|
|
}
|
|
|
|
|
2014-04-04 00:01:44 +08:00
|
|
|
|