[PATCH] D21504: [X86] add _mm_loadu_si64
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 19 07:28:43 PDT 2016
RKSimon added a subscriber: RKSimon.
================
Comment at: tools/clang/test/CodeGen/sse2-builtins.c:1527
@@ +1526,3 @@
+ // CHECK: load i64, i64* %__u
+ // CHECK: insertelement <2 x i64> undef, i64 %4, i32 0
+ // CHECK: insertelement <2 x i64> %{{.*}}, i64 0, i32 1
----------------
Replace the hardcoded %4 argument with a general pattern match
================
Comment at: tools/clang/test/CodeGen/sse2-builtins.c:1530
@@ +1529,3 @@
+ // CHECK: store <2 x i64> %{{.*}}, <2 x i64>* %{{.*}}, align 16
+ // CHECK: load <2 x i64>, <2 x i64>* %{{.*}}, align 16
+ return _mm_loadu_si64(A);
----------------
Is the store/load necessary? This appears to be just the -O0 stack behaviour
Repository:
rL LLVM
http://reviews.llvm.org/D21504
More information about the cfe-commits
mailing list