[PowerPC] Enable use of lxvw4x/stxvw4x in VSX code generation
[oota-llvm.git] / test / CodeGen / PowerPC / unaligned.ll
index 0c59516f1186728d3bba44776bf63895030b7967..64c03cdda35e70f240c5a3f7795ab19557e0296f 100644 (file)
@@ -92,10 +92,14 @@ entry:
 ; CHECK-DAG: stdx
 ; CHECK: stdx
 
+; For VSX on P7, unaligned loads and stores are preferable to aligned
+; stack slots, but lvsl/vperm is better still.  (On P8 lxvw4x is preferable.)
+; Using unaligned stxvw4x is preferable on both machines.
 ; CHECK-VSX: @foo6
-; CHECK-VSX-DAG: ld
-; CHECK-VSX-DAG: ld
-; CHECK-VSX-DAG: stdx
-; CHECK-VSX: stdx
+; CHECK-VSX-DAG: lvsl
+; CHECK-VSX-DAG: lvx
+; CHECK-VSX-DAG: lvx
+; CHECK-VSX: vperm
+; CHECK-VSX: stxvw4x
 }