diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-06-04 07:30:28 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-06-04 07:30:28 +0000 |
| commit | fe9ad82e440be345e3a54991b6c646b43c4a0a32 (patch) | |
| tree | 26013047e0cedb2900ed17555777d0bca12ce4ef /llvm/test | |
| parent | 97f113e79551484257d040f0bb84b1b8efa06249 (diff) | |
| download | bcm5719-llvm-fe9ad82e440be345e3a54991b6c646b43c4a0a32.tar.gz bcm5719-llvm-fe9ad82e440be345e3a54991b6c646b43c4a0a32.zip | |
[ConstantFolding] Properly support constant folding of vector powi intrinsic. The second argument is not a vector so needs special treatment.
llvm-svn: 304679
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/call.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstSimplify/call.ll b/llvm/test/Transforms/InstSimplify/call.ll index 364fd643691..c7d10e251b4 100644 --- a/llvm/test/Transforms/InstSimplify/call.ll +++ b/llvm/test/Transforms/InstSimplify/call.ll @@ -437,8 +437,7 @@ entry: define <2 x double> @constant_fold_powi_vec() nounwind uwtable ssp { ; CHECK-LABEL: @constant_fold_powi_vec( ; CHECK-NEXT: entry: -; CHECK-NEXT: [[TMP0:%.*]] = call <2 x double> @llvm.powi.v2f64(<2 x double> <double 3.000000e+00, double 5.000000e+00>, i32 2) -; CHECK-NEXT: ret <2 x double> [[TMP0]] +; CHECK-NEXT: ret <2 x double> <double 9.000000e+00, double 2.500000e+01> ; entry: %0 = call <2 x double> @llvm.powi.v2f64(<2 x double> <double 3.00000e+00, double 5.00000e+00>, i32 2) |

