Changes in directory llvm/test/CodeGen/ARM:
addrmode.ll added (r1.1) 2007-03-13-InstrSched.ll updated: 1.1 -> 1.2 --- Log message: ARM isel should match ldr x +/- x * (2^n) to ldr [x, +/- x, lsl #log2(n)]. --- Diffs of the changes: (+17 -1) 2007-03-13-InstrSched.ll | 2 +- addrmode.ll | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) Index: llvm/test/CodeGen/ARM/addrmode.ll diff -c /dev/null llvm/test/CodeGen/ARM/addrmode.ll:1.1 *** /dev/null Wed Mar 14 18:26:50 2007 --- llvm/test/CodeGen/ARM/addrmode.ll Wed Mar 14 18:26:40 2007 *************** *** 0 **** --- 1,16 ---- + ; RUN: llvm-as < %s | llc -march=arm && + ; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep 'asm-printer' | grep 4 + + define i32 @t1(i32 %a) { + %b = mul i32 %a, 9 + %c = inttoptr i32 %b to i32* + %d = load i32* %c + ret i32 %d + } + + define i32 @t2(i32 %a) { + %b = mul i32 %a, -7 + %c = inttoptr i32 %b to i32* + %d = load i32* %c + ret i32 %d + } Index: llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll diff -u llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll:1.1 llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll:1.2 --- llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll:1.1 Tue Mar 13 18:31:47 2007 +++ llvm/test/CodeGen/ARM/2007-03-13-InstrSched.ll Wed Mar 14 18:26:40 2007 @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 -stats 2>&1 | grep 'asm-printer' | grep 57 +; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 -stats 2>&1 | grep 'asm-printer' | grep 53 define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) { newFuncRoot: _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits