diff options
Diffstat (limited to 'test/CodeGen/X86/zext-inreg-1.ll')
-rw-r--r-- | test/CodeGen/X86/zext-inreg-1.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/zext-inreg-1.ll b/test/CodeGen/X86/zext-inreg-1.ll new file mode 100644 index 0000000..6a678b2 --- /dev/null +++ b/test/CodeGen/X86/zext-inreg-1.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=x86 | not grep and + +; These tests differ from the ones in zext-inreg-0.ll in that +; on x86-64 they do require and instructions. + +; These should use movzbl instead of 'and 255'. +; This related to not having ZERO_EXTEND_REG node. + +define i64 @h(i64 %d) nounwind { + %e = add i64 %d, 1 + %retval = and i64 %e, 281474976710655 + ret i64 %retval +} |