add a case
authorChris Lattner <sabre@nondot.org>
Tue, 18 Oct 2005 06:30:51 +0000 (06:30 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Oct 2005 06:30:51 +0000 (06:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23785 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/README.txt

index 4db59ef7bb29824b2c0a7a8436bd341bb2e50903..16117de5bf93dbc6437e0c2e80044b15b01e0c21 100644 (file)
@@ -24,6 +24,9 @@ _foo:
         rlwinm r3, r2, 0, 16, 31
         blr
 
         rlwinm r3, r2, 0, 16, 31
         blr
 
+and:
+  extern int X, Y; int* test(int C) { return C? &X : &Y; }
+as one load when using --enable-pic.
 
 * Support 'update' load/store instructions.  These are cracked on the G5, but
   are still a codesize win.
 
 * Support 'update' load/store instructions.  These are cracked on the G5, but
   are still a codesize win.