Merging r261039:
[oota-llvm.git] / test / CodeGen / X86 / compare-add.ll
index 5665ad4829885af6a3b23b24451498d3120c4cb1..358ee59c95a5151140b0e2f2d8d4ddab0e5eb5ad 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86 &&
-; RUN: llvm-as < %s | llc -march=x86 | not grep add
-bool %X(int %X) {
-        %Y = add int %X, 14
-        %Z = setne int %Y, 12345
-        ret bool %Z
+; RUN: llc < %s -march=x86 | not grep add
+
+define i1 @X(i32 %X) {
+        %Y = add i32 %X, 14             ; <i32> [#uses=1]
+        %Z = icmp ne i32 %Y, 12345              ; <i1> [#uses=1]
+        ret i1 %Z
 }