mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[x86] add fabs test for vector intrinsic to potential libcall bug; NFC
This is a negative test for x86 because it has custom lowering for fabs. llvm-svn: 339791
This commit is contained in:
parent
cbff67e672
commit
8e2119de32
@ -21,6 +21,7 @@ declare <3 x double> @llvm.sin.v3f64(<3 x double>)
|
||||
; Some of these have custom lowering, so those cases won't have
|
||||
; libcalls.
|
||||
|
||||
declare <2 x float> @llvm.fabs.v2f32(<2 x float>)
|
||||
declare <2 x float> @llvm.ceil.v2f32(<2 x float>)
|
||||
declare <2 x float> @llvm.cos.v2f32(<2 x float>)
|
||||
declare <2 x float> @llvm.exp.v2f32(<2 x float>)
|
||||
@ -283,6 +284,15 @@ define <3 x double> @sin_v3f64(<3 x double> %x) nounwind {
|
||||
ret <3 x double> %r
|
||||
}
|
||||
|
||||
define <2 x float> @fabs_v2f32(<2 x float> %x) nounwind {
|
||||
; CHECK-LABEL: fabs_v2f32:
|
||||
; CHECK: # %bb.0:
|
||||
; CHECK-NEXT: vandps {{.*}}(%rip), %xmm0, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
%r = call <2 x float> @llvm.fabs.v2f32(<2 x float> %x)
|
||||
ret <2 x float> %r
|
||||
}
|
||||
|
||||
define <2 x float> @ceil_v2f32(<2 x float> %x) nounwind {
|
||||
; CHECK-LABEL: ceil_v2f32:
|
||||
; CHECK: # %bb.0:
|
||||
|
Loading…
Reference in New Issue
Block a user