aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2004-03-30-Select-Max.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2004-03-30-Select-Max.llx')
-rw-r--r--test/CodeGen/X86/2004-03-30-Select-Max.llx11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/CodeGen/X86/2004-03-30-Select-Max.llx b/test/CodeGen/X86/2004-03-30-Select-Max.llx
index bd7ab47..5021fd8 100644
--- a/test/CodeGen/X86/2004-03-30-Select-Max.llx
+++ b/test/CodeGen/X86/2004-03-30-Select-Max.llx
@@ -1,7 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {j\[lgbe\]}
+; RUN: llvm-as < %s | llc -march=x86 | not grep {j\[lgbe\]}
-int %max(int %A, int %B) {
- %gt = setgt int %A, %B
- %R = select bool %gt, int %A, int %B
- ret int %R
+define i32 @max(i32 %A, i32 %B) {
+ %gt = icmp sgt i32 %A, %B ; <i1> [#uses=1]
+ %R = select i1 %gt, i32 %A, i32 %B ; <i32> [#uses=1]
+ ret i32 %R
}
+