mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
12 lines
295 B
LLVM
12 lines
295 B
LLVM
; RUN: llc < %s -march=x86 -fast-isel -fast-isel-abort
|
|
; RUN: llc < %s -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
|
|
}
|