Fix ordering of operands on lowering of atomicrmw min/max nodes on ARM.
[oota-llvm.git] / test / CodeGen / CellSPU / sext128.ll
index 71962a942587cab1dd912dc401337d76fa0c9923..6ae9aa51202fd839ebaf39ccac70f43ca3f71991 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -o - %s | llc -march=cellspu | FileCheck %s 
+; RUN: llc < %s -march=cellspu | FileCheck %s 
 
 ; ModuleID = 'sext128.bc'
 target datalayout = "E-p:32:32:128-i1:8:128-i8:8:128-i16:16:128-i32:32:128-i64:32:128-f32:32:128-f64:64:128-v64:128:128-v128:128:128-a0:0:128-s0:128:128"
@@ -12,8 +12,9 @@ entry:
 ; CHECK:       long    269488144
 ; CHECK:       long    66051
 ; CHECK:       long    67438087
-; CHECK:       rotmai
+; CHECK-NOT: rotqmbyi
 ; CHECK:       lqa
+; CHECK:       rotmai
 ; CHECK:       shufb
 }
 
@@ -25,8 +26,9 @@ entry:
 ; CHECK:       long    269488144
 ; CHECK:       long    269488144
 ; CHECK:       long    66051
-; CHECK:       rotmai
+; CHECK-NOT: rotqmbyi
 ; CHECK:       lqa
+; CHECK:       rotmai
 ; CHECK:       shufb
 }
 
@@ -39,9 +41,31 @@ entry:
 ; CHECK:       long    269488144
 ; CHECK:       long    269488144
 ; CHECK:       long    66051
-; CHECK:       rotmai
+; CHECK-NOT: rotqmbyi
 ; CHECK:       lqa
+; CHECK:       rotmai
 ; CHECK:       shufb
 }
 
 declare i32 @myfunc(float)
+
+define i128 @func1(i8 %u) {
+entry:
+; CHECK: xsbh
+; CHECK: xshw
+; CHECK: rotmai
+; CHECK: shufb
+; CHECK: bi $lr
+      %0 = sext i8 %u to i128
+      ret i128 %0
+}
+
+define i128 @func2(i16 %u) {
+entry:
+; CHECK: xshw
+; CHECK: rotmai
+; CHECK: shufb
+; CHECK: bi $lr
+      %0 = sext i16 %u to i128
+      ret i128 %0
+}