blob: ee0a3d242ca39b52ff13f41be104596a331b98a2 [file] [log] [blame]
Evan Cheng02b985c2007-01-19 09:20:23 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep "ldr.*\[.*]," | wc -l | grep 1
3
4int %test(int %a, int %b, int %c) {
5 %tmp1 = mul int %a, %b
6 %tmp2 = cast int %tmp1 to int*
7 %tmp3 = load int* %tmp2
8 %tmp4 = sub int %tmp1, %c
9 %tmp5 = mul int %tmp4, %tmp3
10 ret int %tmp5
11}