Commit 2045e7be authored by Bill Wendling's avatar Bill Wendling
Browse files

Merging r196206:

------------------------------------------------------------------------
r196206 | jiangning | 2013-12-02 21:36:55 -0800 (Mon, 02 Dec 2013) | 4 lines

Patch by Ana Pazos.

Fixed vcopy_laneq_f64 intrinsic implementation.

------------------------------------------------------------------------

llvm-svn: 196233
parent 058803ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -839,9 +839,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
+3 −4
Original line number Diff line number Diff line
@@ -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