diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/2004-03-30-Select-Max.llx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2004-03-30-Select-Max.llx b/test/CodeGen/X86/2004-03-30-Select-Max.llx new file mode 100644 index 0000000..292762a --- /dev/null +++ b/test/CodeGen/X86/2004-03-30-Select-Max.llx @@ -0,0 +1,7 @@ +; 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 +} |