xref: /llvm-project/llvm/test/Transforms/Reassociate/pr42349.ll (revision 211cf8a384ebb29787367c8fd5858e2a5ed3c10f)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -passes=reassociate -S | FileCheck %s
3
4define  float @wibble(float %tmp6) #0 {
5; CHECK-LABEL: @wibble(
6; CHECK-NEXT:  bb:
7; CHECK-NEXT:    [[TMP7:%.*]] = fmul float [[TMP6:%.*]], -1.000000e+00
8; CHECK-NEXT:    [[TMP9:%.*]] = fmul fast float [[TMP6]], 0xFFF0000000000000
9; CHECK-NEXT:    ret float [[TMP9]]
10;
11bb:
12  %tmp7 = fsub float -0.000000e+00, %tmp6
13  %tmp9 = fmul fast float %tmp7, 0x7FF0000000000000
14  ret float %tmp9
15}
16
17attributes #0 = { "use-soft-float"="false" }
18