diff options
author | Kevin B. Smith <kevin.b.smith@intel.com> | 2016-06-15 18:18:05 +0000 |
---|---|---|
committer | Kevin B. Smith <kevin.b.smith@intel.com> | 2016-06-15 18:18:05 +0000 |
commit | acbda9ef300371494e00125e54cb95b2a89e5f16 (patch) | |
tree | c6d5b66bfceb8122cb138cdf168ffb29d1b4df2c /llvm/test | |
parent | 3128b10cdc5c83e79aad7fa3600445c494170498 (diff) | |
download | bcm5719-llvm-acbda9ef300371494e00125e54cb95b2a89e5f16.tar.gz bcm5719-llvm-acbda9ef300371494e00125e54cb95b2a89e5f16.zip |
[X86]: Updated r272801 to promote 16 bit compares with immediate operand
to 32 bits. This is in response to a comment by Eli Friedman.
llvm-svn: 272814
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/X86/memcmp.ll | 3 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/x86-shrink-wrapping.ll | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/memcmp.ll b/llvm/test/CodeGen/X86/memcmp.ll index 410741ba4d3..51ce5dc8960 100644 --- a/llvm/test/CodeGen/X86/memcmp.ll +++ b/llvm/test/CodeGen/X86/memcmp.ll @@ -41,7 +41,8 @@ bb: ; preds = %entry return: ; preds = %entry ret void ; CHECK-LABEL: memcmp2a: -; CHECK: cmpw $28527, (% +; CHECK: movzwl +; CHECK-NEXT: cmpl $28527, } diff --git a/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll b/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll index df45e14e91a..5b6e773fe5d 100644 --- a/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll +++ b/llvm/test/CodeGen/X86/x86-shrink-wrapping.ll @@ -520,7 +520,8 @@ declare hidden fastcc %struct.temp_slot* @find_temp_slot_from_address(%struct.rt ; CHECK: testq %rdi, %rdi ; CHECK-NEXT: je [[CLEANUP:LBB[0-9_]+]] ; -; CHECK: cmpw $66, (%rdi) +; CHECK: movzwl (%rdi), [[BF_LOAD:%e[a-z]+]] +; CHECK-NEXT: cmpl $66, [[BF_LOAD]] ; CHECK-NEXT: jne [[CLEANUP]] ; ; CHECK: movq 8(%rdi), %rdi |