aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/f16c-intrinsics.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-13 19:58:01 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-13 19:58:01 +0000
commit050e163ae8b4bb6eb252b59e2f8f36e68ae9239d (patch)
tree7376a0c71aad05d327e5b1dcbceb3311a10f9f29 /test/CodeGen/X86/f16c-intrinsics.ll
parent8a6c1c25bce0267ee4072bd7b786b921e8a66a35 (diff)
downloadsrc-050e163ae8b4bb6eb252b59e2f8f36e68ae9239d.tar.gz
src-050e163ae8b4bb6eb252b59e2f8f36e68ae9239d.zip
Vendor import of llvm trunk r257626:vendor/llvm/llvm-trunk-r257626
Notes
Notes: svn path=/vendor/llvm/dist/; revision=293838 svn path=/vendor/llvm/llvm-trunk-r257626/; revision=293839; tag=vendor/llvm/llvm-trunk-r257626
Diffstat (limited to 'test/CodeGen/X86/f16c-intrinsics.ll')
-rw-r--r--test/CodeGen/X86/f16c-intrinsics.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/f16c-intrinsics.ll b/test/CodeGen/X86/f16c-intrinsics.ll
index 485592aeac38..a78022ac5505 100644
--- a/test/CodeGen/X86/f16c-intrinsics.ll
+++ b/test/CodeGen/X86/f16c-intrinsics.ll
@@ -61,6 +61,18 @@ define <4 x float> @test_x86_vcvtps2ph_128_scalar(i64* %ptr) {
ret <4 x float> %res
}
+define <4 x float> @test_x86_vcvtps2ph_128_scalar2(i64* %ptr) {
+; CHECK-LABEL: test_x86_vcvtps2ph_128_scalar2:
+; CHECK-NOT: vmov
+; CHECK: vcvtph2ps (%
+
+ %load = load i64, i64* %ptr
+ %ins = insertelement <2 x i64> undef, i64 %load, i32 0
+ %bc = bitcast <2 x i64> %ins to <8 x i16>
+ %res = tail call <4 x float> @llvm.x86.vcvtph2ps.128(<8 x i16> %bc)
+ ret <4 x float> %res
+}
+
define void @test_x86_vcvtps2ph_256_m(<8 x i16>* nocapture %d, <8 x float> %a) nounwind {
entry:
; CHECK-LABEL: test_x86_vcvtps2ph_256_m: