mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Cleanup vector logical ops in AVX and add use int versions for simple
v2i64 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -159,3 +159,21 @@ entry:
|
||||
%2 = bitcast <8 x i32> %and.i to <8 x float>
|
||||
ret <8 x float> %2
|
||||
}
|
||||
|
||||
;;; Test that basic 2 x i64 logic use the integer version on AVX
|
||||
|
||||
; CHECK: vpandn %xmm
|
||||
define <2 x i64> @vpandn(<2 x i64> %a, <2 x i64> %b) nounwind uwtable readnone ssp {
|
||||
entry:
|
||||
%y = xor <2 x i64> %a, <i64 -1, i64 -1>
|
||||
%x = and <2 x i64> %a, %y
|
||||
ret <2 x i64> %x
|
||||
}
|
||||
|
||||
; CHECK: vpand %xmm
|
||||
define <2 x i64> @vpand(<2 x i64> %a, <2 x i64> %b) nounwind uwtable readnone ssp {
|
||||
entry:
|
||||
%x = and <2 x i64> %a, %b
|
||||
ret <2 x i64> %x
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user