mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
865db4566e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54443 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
526 B
LLVM
19 lines
526 B
LLVM
; 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 @l(i64 %d) nounwind {
|
|
%e = add i64 %d, 1
|
|
%retval = and i64 %e, 1099511627775
|
|
ret i64 %retval
|
|
}
|
|
define i64 @m(i64 %d) nounwind {
|
|
%e = add i64 %d, 1
|
|
%retval = and i64 %e, 281474976710655
|
|
ret i64 %retval
|
|
}
|