blob: c84662de3eb36fdd7591df80346ede9471de0402 [file] [log] [blame]
Dan Gohman41d0b9d2009-07-22 23:26:55 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep {leal.*-2(\[%\]rdi,\[%\]rdi)}
2
3define i32 @foo(i32 %x) nounwind readnone {
4 %t0 = shl i32 %x, 1
5 %t1 = add i32 %t0, -2
6 ret i32 %t1
7}
8