2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep orl
|
2006-05-30 06:53:55 +00:00
|
|
|
int %test(int %x) {
|
|
|
|
%tmp1 = shl int %x, ubyte 3
|
|
|
|
%tmp2 = add int %tmp1, 7
|
|
|
|
ret int %tmp2
|
|
|
|
}
|