aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/lea.ll
blob: 675376b63f42694d91b595ebe2ad907bf4e4b7cf (plain)
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
}