Skip to content

Commit 5879efe

Browse files
committed
add a note, move an altivec todo to the altivec list.
llvm-svn: 27654
1 parent 92cf71f commit 5879efe

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

llvm/lib/Target/PowerPC/README.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,12 +551,11 @@ void func(unsigned int *ret, float dx, float dy, float dz, float dw) {
551551

552552
===-------------------------------------------------------------------------===
553553

554-
extract_vector_elt of an arbitrary constant vector can be done with the
555-
following instructions:
554+
Complete the signed i32 to FP conversion code using 64-bit registers
555+
transformation, good for PI. See PPCISelLowering.cpp, this comment:
556556

557-
vTemp = vec_splat(v0,2); // 2 is the element the src is in.
558-
vec_ste(&destloc,0,vTemp);
557+
// FIXME: disable this lowered code. This generates 64-bit register values,
558+
// and we don't model the fact that the top part is clobbered by calls. We
559+
// need to flag these together so that the value isn't live across a call.
560+
//setOperationAction(ISD::SINT_TO_FP, MVT::i32, Custom);
559561

560-
We can do an arbitrary non-constant value by using lvsr/perm/ste.
561-
562-
===-------------------------------------------------------------------------===

llvm/lib/Target/PowerPC/README_ALTIVEC.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,13 @@ C = vector_shuffle A, B, <0, 1, 2, 4>
138138
-> C = vsldoi A, B, 4
139139

140140
//===----------------------------------------------------------------------===//
141+
142+
extract_vector_elt of an arbitrary constant vector can be done with the
143+
following instructions:
144+
145+
vTemp = vec_splat(v0,2); // 2 is the element the src is in.
146+
vec_ste(&destloc,0,vTemp);
147+
148+
We can do an arbitrary non-constant value by using lvsr/perm/ste.
149+
150+
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)