mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-14 13:07:31 +00:00
474d3b3f40
ptrtoint and inttoptr in X86FastISel. These casts aren't always handled in the generic FastISel code because X86 sometimes needs custom code to do truncation and zero-extension. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66988 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
315 B
LLVM
13 lines
315 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -fast-isel -fast-isel-abort
|
|
; RUN: llvm-as < %s | llc -march=x86-64 -fast-isel -fast-isel-abort
|
|
|
|
define i8 @t1(i32 %x) signext nounwind {
|
|
%tmp1 = trunc i32 %x to i8
|
|
ret i8 %tmp1
|
|
}
|
|
|
|
define i8 @t2(i16 signext %x) signext nounwind {
|
|
%tmp1 = trunc i16 %x to i8
|
|
ret i8 %tmp1
|
|
}
|