blob: a297728aee8975353b671f5dcdbe308203079b08 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86-64 | grep {leal .*), %e.\*} | count 1
Dan Gohmane3d92062008-08-07 02:54:50 +00002
3; Don't eliminate or coalesce away the explicit zero-extension!
Dan Gohman97121ba2009-04-08 00:15:30 +00004; This is currently using an leal because of a 3-addressification detail,
5; though this isn't necessary; The point of this test is to make sure
6; a 32-bit add is used.
Dan Gohmane3d92062008-08-07 02:54:50 +00007
Evan Cheng87d696a2009-04-14 00:32:25 +00008define i64 @foo(i64 %a) nounwind {
Dan Gohmane3d92062008-08-07 02:54:50 +00009 %b = add i64 %a, 4294967295
10 %c = and i64 %b, 4294967295
11 %d = add i64 %c, 1
12 ret i64 %d
13}