diff options
-rw-r--r-- | test/CodeGen/X86/cmov.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/X86/cmov.ll b/test/CodeGen/X86/cmov.ll index d96babb..f3c9a7a 100644 --- a/test/CodeGen/X86/cmov.ll +++ b/test/CodeGen/X86/cmov.ll @@ -33,6 +33,10 @@ entry: } +; x86's 32-bit cmov doesn't clobber the high 32 bits of the destination +; if the condition is false. An explicit zero-extend (movl) is needed +; after the cmov. + declare void @bar(i64) nounwind define void @test3(i64 %a, i64 %b, i1 %p) nounwind { |