blob: 0dbd4f9c9767a8bd077faa375992de3652b017a5 (
plain) (
blame)
1
2
3
4
5
6
7
|
declare { i$(bit), i1 } @llvm.usub.with.overflow.i$(bit)(i$(bit) %x, i$(bit) %y)
define i$(unit) @extract$(bit+unit)(i$(bit+unit) %x, i$(bit+unit) %shift) {
%t0 = lshr i$(bit+unit) %x, %shift
%t1 = trunc i$(bit+unit) %t0 to i$(unit)
ret i$(unit) %t1
}
|