diff options
Diffstat (limited to 'test/CodeGen/X86/2004-03-30-Select-Max.ll')
-rw-r--r-- | test/CodeGen/X86/2004-03-30-Select-Max.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2004-03-30-Select-Max.ll b/test/CodeGen/X86/2004-03-30-Select-Max.ll new file mode 100644 index 0000000..b6631b6 --- /dev/null +++ b/test/CodeGen/X86/2004-03-30-Select-Max.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=x86 | not grep {j\[lgbe\]} + +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 +} + |