Dan Gohman | 11ba3b1 | 2008-07-30 18:09:17 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 | not grep and |
2 | |||||
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 | |||||
9 | define i64 @h(i64 %d) nounwind { | ||||
10 | %e = add i64 %d, 1 | ||||
11 | %retval = and i64 %e, 281474976710655 | ||||
12 | ret i64 %retval | ||||
13 | } |