mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
new testcase, corresponds to:
long long test(long long A, unsigned B) { return (A + ((long long)B << 32)); } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bcf2484450
commit
53546d8ab4
11
test/CodeGen/Generic/addc-fold2.ll
Normal file
11
test/CodeGen/Generic/addc-fold2.ll
Normal file
@ -0,0 +1,11 @@
|
||||
; RUN: llvm-as < %s | llc &&
|
||||
; 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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user