diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-05-17 18:08:27 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-05-17 18:08:27 +0000 |
commit | 38892e5ce11e18e220f60649620fcbc3f2624423 (patch) | |
tree | eefea02299b27a191fe1c2e6f36cba215bec024c | |
parent | ffd349577d0b034f5fbc02e6fb9c7029855cbcce (diff) | |
download | bcm5719-llvm-38892e5ce11e18e220f60649620fcbc3f2624423.tar.gz bcm5719-llvm-38892e5ce11e18e220f60649620fcbc3f2624423.zip |
[ARM] preserve test intent by removing undef
We need to clean up the DAG floating-point undef logic.
This process is similar to how we handled integer undef
logic in https://reviews.llvm.org/D43141.
And as we did there, I'm trying to reduce the patch by
changing tests that would probably become meaningless
once we correct FP undef folding.
Follow-up to:
https://reviews.llvm.org/rL332538
...because that change wasn't enough.
llvm-svn: 332637
-rw-r--r-- | llvm/test/CodeGen/ARM/reg_sequence.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM/reg_sequence.ll b/llvm/test/CodeGen/ARM/reg_sequence.ll index 8be0c7aa442..97bd654af0d 100644 --- a/llvm/test/CodeGen/ARM/reg_sequence.ll +++ b/llvm/test/CodeGen/ARM/reg_sequence.ll @@ -269,16 +269,16 @@ define arm_aapcs_vfpcc float @t9(%0* nocapture, %3* nocapture) nounwind { } ; PR7162 -define arm_aapcs_vfpcc i32 @t10() nounwind { +define arm_aapcs_vfpcc i32 @t10(float %x) nounwind { entry: ; CHECK-LABEL: t10: ; CHECK: vmov.i32 q[[Q0:[0-9]+]], #0x3f000000 ; CHECK: vmul.f32 q8, q8, d[[DREG:[0-1]+]] ; CHECK: vadd.f32 q8, q8, q8 %0 = shufflevector <4 x float> zeroinitializer, <4 x float> undef, <4 x i32> zeroinitializer ; <<4 x float>> [#uses=1] - %1 = insertelement <4 x float> %0, float undef, i32 1 ; <<4 x float>> [#uses=1] - %2 = insertelement <4 x float> %1, float undef, i32 2 ; <<4 x float>> [#uses=1] - %3 = insertelement <4 x float> %2, float undef, i32 3 ; <<4 x float>> [#uses=1] + %1 = insertelement <4 x float> %0, float %x, i32 1 ; <<4 x float>> [#uses=1] + %2 = insertelement <4 x float> %1, float %x, i32 2 ; <<4 x float>> [#uses=1] + %3 = insertelement <4 x float> %2, float %x, i32 3 ; <<4 x float>> [#uses=1] %tmp54.i = bitcast <4 x float> %3 to <2 x double> ; <<2 x double>> [#uses=1] %4 = extractelement <2 x double> %tmp54.i, i32 1 ; <double> [#uses=1] %5 = bitcast double %4 to <2 x float> ; <<2 x float>> [#uses=1] |