1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/ExecutionEngine/test-shift.ll
Tanya Lattner bb2cd15df7 Adding RUN lines.
llvm-svn: 17536
2004-11-06 23:32:43 +00:00

41 lines
923 B
LLVM

; RUN: llvm-as -f %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; test shifts
int %main() {
%shamt = add ubyte 0, 1
; Left shifts...
%t1 = shl int 1, ubyte %shamt
%t2 = shl int 1, ubyte 4
%t1 = shl uint 1, ubyte %shamt
%t2 = shl uint 1, ubyte 5
;%t1 = shl long 1, ubyte %shamt
%t2 = shl long 1, ubyte 4
;%t1 = shl ulong 1, ubyte %shamt
%t2 = shl ulong 1, ubyte 5
; Right shifts...
%tr1 = shr int 1, ubyte %shamt
%tr2 = shr int 1, ubyte 4
%tr1 = shr uint 1, ubyte %shamt
%tr2 = shr uint 1, ubyte 5
;%tr1 = shr long 1, ubyte %shamt
%tr1 = shr long 1, ubyte 4
%tr2 = shr long 1, ubyte %shamt
%tr3 = shl long 1, ubyte 4
%tr4 = shl long 1, ubyte %shamt
;%t1 = shr ulong 1, ubyte %shamt
%tr1 = shr ulong 1, ubyte 5
%tr2 = shr ulong 1, ubyte %shamt
%tr3 = shl ulong 1, ubyte 5
%tr4 = shl ulong 1, ubyte %shamt
ret int 0
}