summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/lea.ll
blob: dcbf73ea317acbe4b6652013710bce4d5749f053 (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | llc -march=x86
; RUN: llvm-as < %s | llc -march=x86 | not grep orl
int %test(int %x) {
	%tmp1 = shl int %x, ubyte 3
	%tmp2 = add int %tmp1, 7
	ret int %tmp2
}