blob: 8003de262d2cfaa00f20802925ad37096d3c8ce1 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86-64 | grep {leal.*-2(\[%\]rdi,\[%\]rdi)}
Dan Gohman3dffbbf2009-07-22 23:26:55 +00002
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