Mercurial > hg > CbC > CbC_llvm
view llvm/test/Transforms/Reassociate/negation1.ll @ 225:f7655407a6ba
remove unnecessary files
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Jul 2021 03:48:36 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line source
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s ; Test that we can turn things like A*B + X - A*B -> X. define i32 @test1(i32 %a, i32 %b, i32 %x) { ; CHECK-LABEL: @test1( ; CHECK-NEXT: ret i32 [[X:%.*]] ; %c = mul i32 %a, %b %d = add i32 %c, %x %c1 = mul i32 %a, %b %f = sub i32 %d, %c1 ret i32 %f }