mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-16 11:05:54 +00:00
046632f272
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95757 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
255 B
LLVM
14 lines
255 B
LLVM
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
|
; rdar://7570931
|
|
|
|
define i64 @foo(i64 %a, i64 %b) nounwind {
|
|
; CHECK: foo:
|
|
; CHECK: leal
|
|
; CHECK-NOT: movl
|
|
; CHECK: ret
|
|
%c = add i64 %a, %b
|
|
%d = trunc i64 %c to i32
|
|
%e = zext i32 %d to i64
|
|
ret i64 %e
|
|
}
|