Fix ordering of operands on lowering of atomicrmw min/max nodes on ARM.
[oota-llvm.git] / test / CodeGen / CellSPU / loads.ll
index 4284c22837d38bf89e7374e8feaaf0a5aad20e2c..4771752f5f4c7954b9471c9aa298d45add25bf2d 100644 (file)
@@ -34,7 +34,26 @@ define <4 x i32> @func() {
 }
 
 define <4 x float> @load_undef(){
-       ;CHECK lqd      $3, 0($3)
+       ; CHECK: lqd    $3, 0($3)
        %val = load <4 x float>* undef
        ret <4 x float> %val
 }
+
+;check that 'misaligned' loads that may span two memory chunks
+;have two loads. Don't check for the bitmanipulation, as that 
+;might change with improved algorithms or scheduling 
+define i32 @load_misaligned( i32* %ptr ){
+;CHECK: load_misaligned
+;CHECK: lqd
+;CHECK: lqd
+;CHECK: bi $lr
+  %rv = load i32* %ptr, align 2
+  ret i32 %rv
+}
+
+define <4 x i32> @load_null_vec( ) {
+;CHECK: lqa
+;CHECK: bi $lr
+       %rv = load <4 x i32>* null
+       ret <4 x i32> %rv
+}