blob: 17fe374e01ecc45c96169d1ce7645c6ede60b282 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 | not grep and
Dan Gohman11ba3b12008-07-30 18:09:17 +00002
3; These tests differ from the ones in zext-inreg-0.ll in that
4; on x86-64 they do require and instructions.
5
6; These should use movzbl instead of 'and 255'.
7; This related to not having ZERO_EXTEND_REG node.
8
Dan Gohman865db452008-08-07 02:23:06 +00009define i64 @l(i64 %d) nounwind {
10 %e = add i64 %d, 1
11 %retval = and i64 %e, 1099511627775
12 ret i64 %retval
13}
14define i64 @m(i64 %d) nounwind {
Dan Gohman11ba3b12008-07-30 18:09:17 +000015 %e = add i64 %d, 1
16 %retval = and i64 %e, 281474976710655
17 ret i64 %retval
18}