blob: 72cc0f63b4c63bcac687fe1b5202ff22b1bb3032 [file] [log] [blame]
Chris Lattner53546d82007-03-04 20:39:47 +00001; RUN: llvm-as < %s | llc &&
2; RUN: llvm-as < %s | llc -march=x86 | grep 'add' &&
3; RUN: llvm-as < %s | llc -march=x86 | not grep 'adc'
4
5define i64 @test(i64 %A, i32 %B) {
6 %tmp12 = zext i32 %B to i64 ; <i64> [#uses=1]
7 %tmp3 = shl i64 %tmp12, 32 ; <i64> [#uses=1]
8 %tmp5 = add i64 %tmp3, %A ; <i64> [#uses=1]
9 ret i64 %tmp5
10}
11