2016-09-09 22:16:51 +08:00
|
|
|
; RUN: llc %s -O0 -march=sparc -mattr=replacefmuls -o - | FileCheck %s
|
2016-06-19 19:03:28 +08:00
|
|
|
|
2016-09-09 22:16:51 +08:00
|
|
|
; CHECK-LABEL: test_replace_fmuls
|
|
|
|
; CHECK: fsmuld %f1, %f0, %f2
|
|
|
|
; CHECK: fdtos %f2, %f0
|
|
|
|
; NOFIX-LABEL: test_replace_fmuls
|
|
|
|
; NOFIX: fmuls %f1, %f0, %f0
|
|
|
|
define float @test_replace_fmuls(float %a, float %b) {
|
2016-06-19 19:03:28 +08:00
|
|
|
entry:
|
2016-09-09 22:16:51 +08:00
|
|
|
%mul = fmul float %a, %b
|
2016-06-19 19:03:28 +08:00
|
|
|
|
2016-09-09 22:16:51 +08:00
|
|
|
ret float %mul
|
2016-06-19 19:03:28 +08:00
|
|
|
}
|