mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
fa5a91a71e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48627 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
831 B
LLVM
21 lines
831 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep psllq | grep 32
|
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep psrad
|
|
|
|
define i64 @t1(<1 x i64> %mm1) nounwind {
|
|
entry:
|
|
%tmp6 = tail call <1 x i64> @llvm.x86.mmx.psll.q( <1 x i64> %mm1, <1 x i64> <i64 32> ) ; <<1 x i64>> [#uses=1]
|
|
%retval1112 = bitcast <1 x i64> %tmp6 to i64 ; <i64> [#uses=1]
|
|
ret i64 %retval1112
|
|
}
|
|
|
|
declare <1 x i64> @llvm.x86.mmx.psll.q(<1 x i64>, <1 x i64>) nounwind readnone
|
|
|
|
define i64 @t2(<2 x i32> %mm1, <2 x i32> %mm2) nounwind {
|
|
entry:
|
|
%tmp7 = tail call <2 x i32> @llvm.x86.mmx.psra.d( <2 x i32> %mm1, <2 x i32> %mm2 ) nounwind readnone ; <<2 x i32>> [#uses=1]
|
|
%retval1112 = bitcast <2 x i32> %tmp7 to i64 ; <i64> [#uses=1]
|
|
ret i64 %retval1112
|
|
}
|
|
|
|
declare <2 x i32> @llvm.x86.mmx.psra.d(<2 x i32>, <2 x i32>) nounwind readnone
|