mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
47d1aeeb51
llvm-svn: 36086
11 lines
359 B
LLVM
11 lines
359 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 | grep add
|
|
; RUN: llvm-as < %s | llc -march=x86 | not grep adc
|
|
|
|
define i64 @test(i64 %A, i32 %B) {
|
|
%tmp12 = zext i32 %B to i64 ; <i64> [#uses=1]
|
|
%tmp3 = shl i64 %tmp12, 32 ; <i64> [#uses=1]
|
|
%tmp5 = add i64 %tmp3, %A ; <i64> [#uses=1]
|
|
ret i64 %tmp5
|
|
}
|
|
|