New test case.
[oota-llvm.git] / test / CodeGen / ARM / mvn.ll
index fc788b80fdcd53031423cd6497955d2ed531be2a..3f4a6f71d6565e4b1bfbe51964923d565fd0762a 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 8
+; END.
 
-;int %f1() {
-;entry:
-;      ret int -1
-;}
+int %f1() {
+entry:
+       ret int -1
+}
 
 int %f2(int %a) {
 entry:
@@ -12,12 +12,12 @@ entry:
        ret int %tmpnot
 }
 
-;int %f3(int %a) {
-;entry:
-;      %tmp1 = shl int %a, ubyte 2             ; <int> [#uses=1]
-;      %tmp1not = xor int %tmp1, -1            ; <int> [#uses=1]
-;      ret int %tmp1not
-;}
+int %f3(int %a) {
+entry:
+       %tmp1 = shl int %a, ubyte 2             ; <int> [#uses=1]
+       %tmp1not = xor int %tmp1, -1            ; <int> [#uses=1]
+       ret int %tmp1not
+}
 
 int %f4(int %a, ubyte %b) {
 entry:
@@ -26,12 +26,12 @@ entry:
        ret int %tmp3not
 }
 
-;uint %f5(uint %a) {
-;entry:
-;      %tmp1 = lshr uint %a, ubyte 2           ; <uint> [#uses=1]
-;      %tmp1not = xor uint %tmp1, 4294967295           ; <uint> [#uses=1]
-;      ret uint %tmp1not
-;}
+uint %f5(uint %a) {
+entry:
+       %tmp1 = lshr uint %a, ubyte 2           ; <uint> [#uses=1]
+       %tmp1not = xor uint %tmp1, 4294967295           ; <uint> [#uses=1]
+       ret uint %tmp1not
+}
 
 uint %f6(uint %a, ubyte %b) {
 entry:
@@ -40,12 +40,12 @@ entry:
        ret uint %tmp2not
 }
 
-;int %f7(int %a) {
-;entry:
-;      %tmp1 = ashr int %a, ubyte 2            ; <int> [#uses=1]
-;      %tmp1not = xor int %tmp1, -1            ; <int> [#uses=1]
-;      ret int %tmp1not
-;}
+int %f7(int %a) {
+entry:
+       %tmp1 = ashr int %a, ubyte 2            ; <int> [#uses=1]
+       %tmp1not = xor int %tmp1, -1            ; <int> [#uses=1]
+       ret int %tmp1not
+}
 
 int %f8(int %a, ubyte %b) {
 entry:
@@ -53,3 +53,20 @@ entry:
        %tmp3not = xor int %tmp3, -1            ; <int> [#uses=1]
        ret int %tmp3not
 }
+
+int %f9() {
+entry:
+        %tmp4845 = add int 0, 0
+        br  label %cond_true4848
+
+cond_true4848:          ; preds = %bb4835
+        %tmp4851 = sub int -3, 0                ; <int> [#uses=1]
+        %abc = add int %tmp4851, %tmp4845
+        ret int %abc
+}
+
+bool %f10(int %a) {
+entry:
+        %tmp102 = seteq int -2, %a              ; <bool> [#uses=1]
+        ret bool %tmp102
+}