llvm.org GIT mirror llvm / release_22 test / CodeGen / X86 / lea.ll
release_22

Tree @release_22 (Download .tar.gz)

lea.ll @release_22raw · history · blame

1
2
3
4
5
6
7
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep orl
int %test(int %x) {
	%tmp1 = shl int %x, ubyte 3
	%tmp2 = add int %tmp1, 7
	ret int %tmp2
}