You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
644 B
26 lines
644 B
4 months ago
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
||
|
|
||
|
@g = global i128 zeroinitializer, align 8
|
||
|
|
||
|
; CHECK-LABEL: addc:
|
||
|
; CHECK: p[[P0:[0-3]]] = and(p[[P1:[0-9]]],!p[[P1]])
|
||
|
; CHECK: add({{.*}},{{.*}},p[[P0]]):carry
|
||
|
; CHECK: add({{.*}},{{.*}},p[[P0]]):carry
|
||
|
define void @addc(i128 %a0, i128 %a1) #0 {
|
||
|
%v0 = add i128 %a0, %a1
|
||
|
store i128 %v0, i128* @g, align 8
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
; CHECK-LABEL: subc:
|
||
|
; CHECK: p[[P0:[0-3]]] = or(p[[P1:[0-9]]],!p[[P1]])
|
||
|
; CHECK: sub({{.*}},{{.*}},p[[P0]]):carry
|
||
|
; CHECK: sub({{.*}},{{.*}},p[[P0]]):carry
|
||
|
define void @subc(i128 %a0, i128 %a1) #0 {
|
||
|
%v0 = sub i128 %a0, %a1
|
||
|
store i128 %v0, i128* @g, align 8
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
|