diff options
| -rw-r--r-- | llvm/test/Transforms/InstCombine/fneg.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/fneg.ll b/llvm/test/Transforms/InstCombine/fneg.ll index 31d72b2a8d9..6c1fb119d78 100644 --- a/llvm/test/Transforms/InstCombine/fneg.ll +++ b/llvm/test/Transforms/InstCombine/fneg.ll @@ -3,6 +3,18 @@ declare void @use(float) +define float @fneg_fneg(float %a) { +; +; CHECK-LABEL: @fneg_fneg( +; CHECK-NEXT: [[F:%.*]] = fneg float [[A:%.*]] +; CHECK-NEXT: [[R:%.*]] = fneg float [[F]] +; CHECK-NEXT: ret float [[R]] +; + %f = fneg float %a + %r = fneg float %f + ret float %r +} + ; -(X * C) --> X * (-C) define float @fmul_fsub(float %x) { |

