1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs < %s -mattr=-vsx -mtriple=ppc32-- | FileCheck %s
4 define double @foo(double %X) nounwind {
7 ; CHECK-NEXT: lis 3, .LCPI0_0@ha
8 ; CHECK-NEXT: lfd 0, .LCPI0_0@l(3)
9 ; CHECK-NEXT: lis 3, .LCPI0_1@ha
10 ; CHECK-NEXT: lfd 2, .LCPI0_1@l(3)
11 ; CHECK-NEXT: fmul 0, 1, 0
12 ; CHECK-NEXT: fmul 1, 0, 2
14 %tmp1 = fmul double %X, 1.23
15 %tmp2 = fmul double %tmp1, 4.124
19 define double @foo_reassoc(double %X) nounwind {
20 ; CHECK-LABEL: foo_reassoc:
22 ; CHECK-NEXT: lis 3, .LCPI1_0@ha
23 ; CHECK-NEXT: lfd 0, .LCPI1_0@l(3)
24 ; CHECK-NEXT: fmul 1, 1, 0
26 %tmp1 = fmul reassoc double %X, 1.23
27 %tmp2 = fmul reassoc double %tmp1, 4.124