comparison test/CodeGen/ARM/shifter_operand.ll @ 100:7d135dc70f03

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents afa8332a0e37
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
96:6418606d0ead 100:7d135dc70f03
222 %arrayidx = getelementptr inbounds i8, i8* %x, i32 %mul 222 %arrayidx = getelementptr inbounds i8, i8* %x, i32 %mul
223 %0 = load i8, i8* %arrayidx, align 1 223 %0 = load i8, i8* %arrayidx, align 1
224 %conv = zext i8 %0 to i32 224 %conv = zext i8 %0 to i32
225 ret i32 %conv 225 ret i32 %conv
226 } 226 }
227
228
229 define void @test_well_formed_dag(i32 %in1, i32 %in2, i32* %addr) {
230 ; CHECK-LABEL: test_well_formed_dag:
231 ; CHECK-ARM: movw [[SMALL_CONST:r[0-9]+]], #675
232 ; CHECK-ARM: mul [[SMALL_PROD:r[0-9]+]], r0, [[SMALL_CONST]]
233 ; CHECK-ARM: add {{r[0-9]+}}, r1, [[SMALL_PROD]], lsl #7
234
235 %mul.small = mul i32 %in1, 675
236 store i32 %mul.small, i32* %addr
237 %mul.big = mul i32 %in1, 86400
238 %add = add i32 %in2, %mul.big
239 store i32 %add, i32* %addr
240 ret void
241 }