[ 
https://issues.apache.org/jira/browse/ARROW-3701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16676963#comment-16676963
 ] 

Antoine Pitrou commented on ARROW-3701:
---------------------------------------

> Is this documented somewhere?

I don't know. That was the result of testing some years ago. That said, it 
seems better supported nowadays. If you take the following IR:
{code}
define i128 @increment(i128 %a) {
    %result = add i128 %a, 1
    ret i128 %result
}

define i128 @square(i128 %a) {
    %result = mul i128 %a, %a
    ret i128 %result
}

define i128 @divide(i128 %a, i128 %b) {
    %result = udiv i128 %a, %b
    ret i128 %result
}
{code}

Then compiling it seems to work fine for several targets I tried it with:
{code}
llc-6.0 -O3 -march=x86-64 testfile.ir
{code}


> [Gandiva] Add support for decimal operations
> --------------------------------------------
>
>                 Key: ARROW-3701
>                 URL: https://issues.apache.org/jira/browse/ARROW-3701
>             Project: Apache Arrow
>          Issue Type: Task
>          Components: Gandiva
>            Reporter: Pindikura Ravindra
>            Assignee: Pindikura Ravindra
>            Priority: Major
>
> To begin with, will add support for 128-bit decimals. There are two parts :
>  # llvm_generator needs to understand decimal types (value, precision, scale)
>  # code decimal operations : add/subtract/multiply/divide/mod/..
>  ** This will be c++ code that can be pre-compiled to emit IR code



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to