parent
d54845f530
commit
603677549f
|
@ -1,4 +1,4 @@
|
||||||
; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -disable-pattern-isel=0 | grep sh[lr]d | wc -l | grep 4
|
; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -disable-pattern-isel=0 | grep sh[lr]d | wc -l | grep 5
|
||||||
|
|
||||||
long %test1(long %X, ubyte %C) {
|
long %test1(long %X, ubyte %C) {
|
||||||
%Y = shl long %X, ubyte %C
|
%Y = shl long %X, ubyte %C
|
||||||
|
@ -20,3 +20,11 @@ uint %test4(uint %A, uint %B, ubyte %C) {
|
||||||
%Z = or uint %Y, %X
|
%Z = or uint %Y, %X
|
||||||
ret uint %Z
|
ret uint %Z
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ushort %test5(ushort %A, ushort %B, ubyte %C) {
|
||||||
|
%X = shl ushort %A, ubyte %C
|
||||||
|
%Cv = sub ubyte 16, %C
|
||||||
|
%Y = shr ushort %B, ubyte %Cv
|
||||||
|
%Z = or ushort %Y, %X
|
||||||
|
ret ushort %Z
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue