view test/CodeGen/PowerPC/mul-neg-power-2.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents 95c75e76d11b
children 1172e4bd9c6f
line wrap: on
line source

; RUN: llc < %s -march=ppc32 | not grep mul

define i32 @test1(i32 %a) {
        %tmp.1 = mul i32 %a, -2         ; <i32> [#uses=1]
        %tmp.2 = add i32 %tmp.1, 63             ; <i32> [#uses=1]
        ret i32 %tmp.2
}