mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
CodeGen & Clang work coming next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54161 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
625 B
LLVM
22 lines
625 B
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep shl
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep ashr
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep lshr
|
|
|
|
define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b) nounwind {
|
|
entry:
|
|
%cmp = shl <4 x i32> %a, %b ; <4 x i32> [#uses=1]
|
|
ret <4 x i32> %cmp
|
|
}
|
|
|
|
define <4 x i32> @bar(<4 x i32> %a, <4 x i32> %b) nounwind {
|
|
entry:
|
|
%cmp = lshr <4 x i32> %a, %b ; <4 x i32> [#uses=1]
|
|
ret <4 x i32> %cmp
|
|
}
|
|
|
|
define <4 x i32> @baz(<4 x i32> %a, <4 x i32> %b) nounwind {
|
|
entry:
|
|
%cmp = ashr <4 x i32> %a, %b ; <4 x i32> [#uses=1]
|
|
ret <4 x i32> %cmp
|
|
}
|