summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-12-11 22:32:38 +0000
committerCraig Topper <craig.topper@gmail.com>2016-12-11 22:32:38 +0000
commit7fc6d34ed1fce99505713c5b09b3701aaac9d60e (patch)
treee6b521e82fdf3fec5b26e8adf13a8dbcb9c78c03 /llvm/test/Transforms
parent3f530938f6a1b40437abedf7aa89e0c7e82b827b (diff)
downloadbcm5719-llvm-7fc6d34ed1fce99505713c5b09b3701aaac9d60e.tar.gz
bcm5719-llvm-7fc6d34ed1fce99505713c5b09b3701aaac9d60e.zip
[InstCombine][XOP] The instructions for the scalar frcz intrinsics are defined to put 0 in the upper bits, not pass bits through like other intrinsics. So we should return a zero vector instead.
llvm-svn: 289411
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/InstCombine/x86-xop.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/x86-xop.ll b/llvm/test/Transforms/InstCombine/x86-xop.ll
index 015d511ac4d..d987c757da5 100644
--- a/llvm/test/Transforms/InstCombine/x86-xop.ll
+++ b/llvm/test/Transforms/InstCombine/x86-xop.ll
@@ -17,7 +17,7 @@ define double @test_vfrcz_sd_0(double %a) {
define double @test_vfrcz_sd_1(double %a) {
; CHECK-LABEL: @test_vfrcz_sd_1(
-; CHECK-NEXT: ret double 1.000000e+00
+; CHECK-NEXT: ret double 0.000000e+00
;
%1 = insertelement <2 x double> undef, double %a, i32 0
%2 = insertelement <2 x double> %1, double 1.000000e+00, i32 1
@@ -44,7 +44,7 @@ define float @test_vfrcz_ss_0(float %a) {
define float @test_vfrcz_ss_3(float %a) {
; CHECK-LABEL: @test_vfrcz_ss_3(
-; CHECK-NEXT: ret float 3.000000e+00
+; CHECK-NEXT: ret float 0.000000e+00
;
%1 = insertelement <4 x float> undef, float %a, i32 0
%2 = insertelement <4 x float> %1, float 1.000000e+00, i32 1
OpenPOWER on IntegriCloud