]> granicus.if.org Git - clang/commitdiff
Patch by Ana Pazos.
authorJiangning Liu <jiangning.liu@arm.com>
Tue, 3 Dec 2013 05:36:55 +0000 (05:36 +0000)
committerJiangning Liu <jiangning.liu@arm.com>
Tue, 3 Dec 2013 05:36:55 +0000 (05:36 +0000)
Fixed vcopy_laneq_f64 intrinsic implementation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196206 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/arm_neon.td
test/CodeGen/aarch64-neon-copy.c

index 333b822e385c55bf9181e596ec1a7b59a224bbfa..8e7f6f52315d93189a491127da44e12a4fb4bb59 100644 (file)
@@ -859,9 +859,9 @@ def COPY_LANE : IOpInst<"vcopy_lane", "ddidi",
 def COPYQ_LANE : IOpInst<"vcopy_lane", "ddigi",
                         "QcQsQiQlQUcQUsQUiQUlQPcQPsQfQdQPl", OP_COPYQ_LN>;
 def COPY_LANEQ : IOpInst<"vcopy_laneq", "ddiki",
-                     "csilPcPsPlUcUsUiUlf", OP_COPY_LNQ>;
+                     "csilPcPsPlUcUsUiUlfd", OP_COPY_LNQ>;
 def COPYQ_LANEQ : IOpInst<"vcopy_laneq", "ddidi",
-                     "QcQsQiQlQUcQUsQUiQUlQPcQPsQfdQdQPl", OP_COPY_LN>;
+                     "QcQsQiQlQUcQUsQUiQUlQPcQPsQfQdQPl", OP_COPY_LN>;
 
 ////////////////////////////////////////////////////////////////////////////////
 // Set all lanes to same value
index 6bc6f005f36f5a46e20a60354839ec38e614766c..077f7ce91358c378d620df488e1947a6fc0ba71e 100644 (file)
@@ -1227,10 +1227,9 @@ uint64x1_t test_vcopy_laneq_u64(uint64x1_t a, uint64x2_t c) {
 }
 
 // CHECK: test_vcopy_laneq_f64
-float64x1_t test_vcopy_laneq_f64(float64x1_t a, float64x1_t c) {
-  return vcopy_laneq_f64(a, 0, c, 0);
-// CHECK: fmov {{d[0-9]+}}, {{d[0-9]+}}
-// CHECK-NOT: dup {{d[0-9]+}}, {{v[0-9]+}}.d[0]
+float64x1_t test_vcopy_laneq_f64(float64x1_t a, float64x2_t c) {
+  return vcopy_laneq_f64(a, 0, c, 1);
+// CHECK: dup {{d[0-9]+}}, {{v[0-9]+}}.d[1]
 }
 
 // CHECK: test_vcopy_laneq_p64