diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-04-28 10:28:32 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-04-28 10:28:32 +0000 |
| commit | 99ed27053d68abf543476feef43abdf72a8d7e7a (patch) | |
| tree | 27cf8bf347fbf9e9dd1e24cbdfa9cc2169e2f2a0 /clang/test/CodeGen/sse2-builtins.c | |
| parent | 836ad03fa55888e84fa1fec70f92aeacf9a92e4c (diff) | |
| download | bcm5719-llvm-99ed27053d68abf543476feef43abdf72a8d7e7a.tar.gz bcm5719-llvm-99ed27053d68abf543476feef43abdf72a8d7e7a.zip | |
[X86][SSE] Add _mm_set_pd1 (PR32827)
Matches _mm_set_ps1 implementation
llvm-svn: 301637
Diffstat (limited to 'clang/test/CodeGen/sse2-builtins.c')
| -rw-r--r-- | clang/test/CodeGen/sse2-builtins.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/sse2-builtins.c b/clang/test/CodeGen/sse2-builtins.c index a140a6ce55b..ca51314d80b 100644 --- a/clang/test/CodeGen/sse2-builtins.c +++ b/clang/test/CodeGen/sse2-builtins.c @@ -951,6 +951,13 @@ __m128d test_mm_set_pd(double A, double B) { return _mm_set_pd(A, B); } +__m128d test_mm_set_pd1(double A) { + // CHECK-LABEL: test_mm_set_pd1 + // CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0 + // CHECK: insertelement <2 x double> %{{.*}}, double %{{.*}}, i32 1 + return _mm_set_pd1(A); +} + __m128d test_mm_set_sd(double A) { // CHECK-LABEL: test_mm_set_sd // CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0 |

